Deprecated Code – PHP Fatal Error
-
Good Morning,
I am writing to address the following issue we are having with the Kadence WooCommerce Email Designer. To briefly summarize, we were having an issue with emails being sent successfully using the WooCommerce Save & Share Cart. Upon performing a trace using IIS, the following as discovered:
[23-Oct-2019 19:32:45 UTC] The WC_Cart::get_remove_url function is deprecated since version 3.3. Replace with wc_get_cart_remove_url.
[23-Oct-2019 19:32:45 UTC] The WC_Cart::get_item_data function is deprecated since version 3.3. Replace with wc_get_formatted_cart_item_data.
[23-Oct-2019 19:32:45 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Kadence_Woomail_Designer::add_email_header(), 1 passed in C:\inetpub\wwwroot\Carriers\wp-includes\class-wp-hook.php on line 286 and exactly 2 expected in C:\inetpub\wwwroot\Carriers\wp-content\plugins\kadence-woocommerce-email-designer\kadence-woocommerce-email-designer.php:560
Stack trace:
#0 C:\inetpub\wwwroot\Carriers\wp-includes\class-wp-hook.php(286): Kadence_Woomail_Designer->add_email_header(‘ ‘)
#1 C:\inetpub\wwwroot\Carriers\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#2 C:\inetpub\wwwroot\Carriers\wp-includes\plugin.php(453): WP_Hook->do_action(Array)
#3 C:\inetpub\wwwroot\Carriers\wp-content\plugins\woocommerce-email-cart\email-cart.php(1118): do_action(‘woocommerce_ema…’, ‘ ‘)
#4 C:\inetpub\wwwroot\Carriers\wp-content\plugins\woocommerce-email-cart\email-cart.php(303): WC_Email_Cart->format_email(‘<style>\t\t\r\n\t\t/*…’, ‘ ‘)
#5 C:\inetpub\wwwroot\Carriers\wp-content\plugins\woocommerce-email-c in C:\inetpub\wwwroot\Carriers\wp-content\plugins\kadence-woocommerce-email-designer\kadence-woocommerce-email-designer.php on line 560At that point, once I disabled your plugin, the Save & Share Cart Email functionality is now working as expected. Can you please take a look at this when you have an opportunity? We have all of your templates built using your plugin – it would be very beneficial time wise if we can this corrected.
Thank you,
Jake Ebanks
Actsoft, Inc.
Business Intelligence Analyst
The topic ‘Deprecated Code – PHP Fatal Error’ is closed to new replies.