_eh_pe_details missing
-
Hello
We are receiving errors when refunding customer orders created with this plugin, the order says it succeeded on refunding but it’s actually not the case.
Reviewing the log file we can see the following error happens:
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-content/plugins/eh-paypal-express-checkout/includes/class-paypal-express-api.php:2988 Stack trace: #0 /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-content/plugins/woocommerce/includes/wc-order-functions.php(708): Eh_PayPal_Express_Payment->process_refund() #1 /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-content/plugins/woocommerce/includes/wc-order-functions.php(624): wc_refund_payment() #2 /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(2199): wc_create_refund() #3 /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-includes/class-wp-hook.php(310): WC_AJAX::refund_line_items() #4 /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #5 /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-admin/admin-ajax.php(188): do_action() #7 {main} thrown in /var/www/vhosts/terrahealthessentials.com/httpdocs/wp-content/plugins/eh-paypal-express-checkout/includes/class-paypal-express-api.php on line 2988
So the error indicates that it could not read a property because of “string on string”. Reviewing the code for class-paypal-express-api.php we learn that it wants to retrieve order metadata _eh_pe_details and after checking the database, the order does not have that metadata field at all.
Since we are experiencing this error with most ( all ) of our orders created with this plugin, we urge your help.
Thank youThe page I need help with: [log in to see the link]
- The topic ‘_eh_pe_details missing’ is closed to new replies.