I’m having problems with the QR code image generator and I’m not entirely sure what is wrong. This error only happens on the hosting server and not my local dev environment (all setup is pretty basic). Upon saving the vcard entry (qr code options default), the site crashes with the message “There has been a critical error on this website. Please check your site admin email inbox for instructions”. When I refresh the page, I can see the vcard entry is being saved and the vcf file is usable, there’s just no QR Code image.
I tried activating WP_Debug and it didn’t help me see anything except for the default error message. But I deactivated error_reporting(0)
on class-wqm-qr-code.php and here is what I’ve got.
Fatal error: Uncaught Error: Call to undefined method Endroid\QrCode\Exception\GenerateImageException::get_error_message() in /home/user/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/controller/class-wqm-common.php:51 Stack trace: #0 /home/user/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/model/class-wqm-qr-code.php(485): WQM_Common::print_error(Object(Endroid\QrCode\Exception\GenerateImageException)) #1 /home/user/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/model/class-wqm-qr-code.php(205): WQM_Qr_Code_Generator->generate_qr_code(Object(Endroid\QrCode\QrCode)) #2 /home/user/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/model/class-wqm-qr-code.php(97): WQM_Qr_Code_Generator->generate_vcard(false) #3 /home/user/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/controller/class-wqm-qr-code-type.php(340): WQM_Qr_Code_Generator->build() #4 /home/user/public_html/sitename/wp-content/plugins/wp-qrcode-me-v- in /home/user/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/controller/class-wqm-common.php on line 51
I would appreciate any help. Thank you.