We havent received any complaints related to the version of the PHP used.
You can check to see what is going on by enabling wordpress debugging
1. In your WP-config.php file add the following:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
2. In your theme functions.php add the following function:
if (!function_exists('write_log')) {
function write_log($log) {
if (true === WP_DEBUG) {
if (is_array($log) || is_object($log)) {
error_log(print_r($log, true));
} else {
error_log($log);
}
}
}
}
3. Uncomment the tho lines that contain the following in plugins/woo-instant-notifications/admin/class-wcnotifications-instance.php
$data=$this->object->get_data();
write_log($data);
Then make a test order.
And you can paste the contents of the file /wp-content/debug.log here
we can check
Here you go:
PHP Fatal error: Uncaught Error: Undefined constant “‘woocommerce_email_order_meta’” in /home/test/public_html/wp-content/plugins/woo-instant-notifications/admin/class-wcnotifications-instance.php:523
Stack trace:
#0 /home/test/public_html/wp-content/plugins/woo-instant-notifications/admin/class-wcnotifications-instance.php(322): WCNotifications_Instance->woocommerce_email_order_meta()
#1 /home/test/public_html/wp-content/plugins/woo-instant-notifications/admin/class-wcnotifications-instance.php(106): WCNotifications_Instance->convert_template()
#2 /home/test/public_html/wp-includes/class-wp-hook.php(309): WCNotifications_Instance->trigger()
#3 /home/test/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#4 /home/test/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()
#5 /home/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(170): do_action_ref_array()
#6 /home/test/public_html/wp-includes/class-wp-hook.php(307): WC_Emails::send_transactional_email()
#7 /home/test/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#8 /home/test/public_html/wp-includes/plugin.php(474): WP_Hook->do_action()
#9 /home/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(373): do_action()
#10 /home/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(222): WC_Order->status_transition()
#11 /home/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(334): WC_Order->save()
#12 /home/test/public_html/wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php(326): WC_Order->update_status()
#13 /home/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(982): WC_Gateway_COD->process_payment()
#14 /home/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1206): WC_Checkout->process_order_payment()
#15 /home/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(461): WC_Checkout->process_checkout()
#16 /home/test/public_html/wp-includes/class-wp-hook.php(307): WC_AJAX::checkout()
#17 /home/test/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#18 /home/test/public_html/wp-includes/plugin.php(474): WP_Hook->do_action()
#19 /home/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(90): do_action()
#20 /home/test/public_html/wp-includes/class-wp-hook.php(307): WC_AJAX::do_wc_ajax()
#21 /home/test/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#22 /home/test/public_html/wp-includes/plugin.php(474): WP_Hook->do_action()
#23 /home/test/public_html/wp-includes/template-loader.php(13): do_action()
#24 /home/test/public_html/wp-blog-header.php(19): require_once(‘…’)
#25 /home/test/public_html/index.php(17): require(‘…’)
#26 {main}
thrown in /home/test/public_html/wp-content/plugins/woo-instant-notifications/admin/class-wcnotifications-instance.php on line 523`
-
This reply was modified 4 years, 2 months ago by
roccinio.
You need to comment the line that contains “woocommerce_email_order_meta” shortcode
In class-wcnotifications-instance.php
Then try again placing an order