{"id":11975780,"date":"2019-09-27T16:01:52","date_gmt":"2019-09-27T16:01:52","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/missing-qr-image-for-authentication\/"},"modified":"2019-09-27T16:01:52","modified_gmt":"2019-09-27T16:01:52","slug":"missing-qr-image-for-authentication","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/missing-qr-image-for-authentication\/","title":{"rendered":"Missing QR image for authentication"},"content":{"rendered":"<p>On a regular single install, I had no issues with this plugin.  However we have recently moved to a multisite install and the image for the QR code (wechat authenticate) does not load and shows a 500 error.<\/p>\n<p>Currently, I&#8217;m testing on a local host, so I know it will not actually authenticate, however I was experiencing the same issue on the live site.  We are also using Amazon s3 to serve regular images and cloudflare CDN (chinese version). Site hosted on amazon in china.<\/p>\n<p>Here is the error:<\/p>\n<p><code>Fatal error: Uncaught Error: Call to undefined method QRcode::png() in \/app\/public\/wp-content\/plugins\/wp-weixin\/inc\/class-wp-weixin-settings.php:995 Stack trace: #0 \/app\/public\/wp-content\/plugins\/wp-weixin\/inc\/class-wp-weixin-settings.php(339): WP_Weixin_Settings::output_get_qrcode(&#039;http:\/\/sandbox3...&#039;, 5, 2, 0) #1 \/app\/public\/wp-content\/plugins\/wp-weixin\/inc\/class-wp-weixin-auth.php(119): WP_Weixin_Settings::get_qrcode(&#039;http:\/\/sandbox3...&#039;) #2 \/app\/public\/wp-includes\/class-wp-hook.php(284): WP_Weixin_Auth-&gt;parse_request() #3 \/app\/public\/wp-includes\/class-wp-hook.php(310): WP_Hook-&gt;apply_filters(&#039;&#039;, Array) #4 \/app\/public\/wp-includes\/plugin.php(531): WP_Hook-&gt;do_action(Array) #5 \/app\/public\/wp-includes\/class-wp.php(387): do_action_ref_array(&#039;parse_request&#039;, Array) #6 \/app\/public\/wp-includes\/class-wp.php(737): WP-&gt;parse_request(&#039;&#039;) #7 \/app\/public\/wp-includes\/functions.php(1105): WP-&gt;main(&#039;&#039;) #8 \/app\/public\/wp-blog-header.php(16): wp() #9 \/app\/public\/index.php(17): require(&#039;\/app\/public\/wp-...&#039;) #10 {main} thrown in \/app\/public\/wp-content\/plugins\/wp-weixin\/inc\/class-wp-weixin-settings.php on line 995<\/code><\/p>\n","protected":false},"template":"","class_list":["post-11975780","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11975780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11975780\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11975780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}