WordPress crashes when saving the vCard entry.
-
Hello, I’m currently working on a website where I need to use your plugin. Right now only you’re plugin fit my need without having to install another plugin dependency to work. It has been great while I’m working on it locally. But then I encountered a problem when using it on production site.
I’m just adding a vCard as normal and used vCard v3 with QR code config on default then filled the information as needed (also did it with meCard and no luck). When I save or update the entry wordpress crashes and get the message “There has been a critical error on this website. Please check your site admin email inbox for instructions.”
I’m not able to see the debug info when I activated WP_DEBUG so I tried disabling your error_reporting(0) to check where the error might be coming from and this is what I’ve got.Fatal error: Uncaught Error: Call to undefined method Endroid\QrCode\Exception\GenerateImageException::get_error_message() in /home/sitename/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/controller/class-wqm-common.php:51 Stack trace: #0 /home/sitename/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/sitename/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/model/class-wqm-qr-code.php(147): WQM_Qr_Code_Generator->generate_qr_code(Object(Endroid\QrCode\QrCode)) #2 /home/sitename/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/model/class-wqm-qr-code.php(93): WQM_Qr_Code_Generator->generate_mecard(false) #3 /home/sitename/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/sitename/public_html/sitename/wp-content/plugins/wp-qrcode-me-v in /home/sitename/public_html/sitename/wp-content/plugins/wp-qrcode-me-v-card/controller/class-wqm-common.php on line 51
I’d tweak this myself but I’m not sure where to look at. I’d appreciate any help. Thank you.
Additional info: I tried downloading the VCF file from the created entry and the VCF file is fine, I can open it with contact apps and the information I filled in are all there. The issue really is with the QR Code Generator but I’m not sure what’s so different with my local environment, and the hosting site since my local environment setup is pretty basic, and the production site runs on a regular hosting service with cPanel and has pretty basic setup as well. File write permissions on uploads folder is open for WordPress.
- The topic ‘WordPress crashes when saving the vCard entry.’ is closed to new replies.