Documenting this to help someone else who may be in a similar situation. My customer reported an issue with PW WooCommerce Gift Cards Pro and WP HTML for Woocommerce. For your reference, I included below the WordPress debug information. Though PW’s Gift Card plugin was making the calls, WP HTML for Woocommerce is actually the code that had the issue.
I contacted codemiq’s support, working with Julian there. I provided the repro steps I took to reproduce the issue, and gave Julian access to the customer’s Staging environment. He swiftly identified the issue. He mentioned there being some sort of compatibility issue with PHP v8+, my customer’s website has the latest PHP v8.1.4.
WP HTML for Woocommerce v2.9.13 is now available to those paying for their Pro plugin.
Thank you Julian for the fantastic support and getting my customer back up and running.
WordPress Debug Info
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.9.2
Current theme: Astra (version 3.7.9)
Current plugin: PW WooCommerce Gift Cards Pro (version 1.366)
PHP version 8.1.4
An error of type E_ERROR was caused in line 246 of the file /home/sewisaid/public_html/wp-content/plugins/pw-gift-cards/includes/emails/class-wc-email-pw-gift-card.php. Error message: Uncaught ArgumentCountError: Too few arguments to function WC_Email_PW_Gift_Card::create_object(), 7 passed in /home/sewisaid/public_html/wp-content/plugins/wp-html-mail-woocommerce/includes/class-contenttype-giftcard.php on line 113 and exactly 8 expected in /home/sewisaid/public_html/wp-content/plugins/pw-gift-cards/includes/emails/class-wc-email-pw-gift-card.php:246
#0 /home/sewisaid/public_html/wp-content/plugins/wp-html-mail-woocommerce/includes/class-contenttype-giftcard.php(113): WC_Email_PW_Gift_Card::create_object()
#1 /home/sewisaid/public_html/wp-includes/class-wp-hook.php(307): Haet_MB_ContentType_GiftCard->admin_render_contentelement_template()
#2 /home/sewisaid/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 /home/sewisaid/public_html/wp-includes/plugin.php(474): WP_Hook->do_action()
#4 /home/sewisaid/public_html/wp-content/plugins/wp-html-mail/includes/class-mailbuilder.php(337): do_action()
#5 /home/sewisaid/public_html/wp-admin/includes/template.php(1395): Haet_Mail_Builder->render_mailbuilder_meta_box()
#6 /home/sewisaid/public_html/wp-admin/edit-form-advanced.php(688): do_meta_boxes()
#7 /home/sewisaid/public_html/wp-admin/post.php(206): require(‘/home/sewisaid/…’)
- The topic ‘Compatibility issue with PHP v8+. Expert Support received!’ is closed to new replies.