Fatal Error last Update
-
Hi,
after the latest update of Easy Login WooCommerce, customer registration is currently broken on our WooCommerce shop.
The issue happens both through the Easy Login popup registration and the normal WooCommerce “My Account” registration page.
The AJAX request fails with HTTP 500.
AJAX action:
xoo_el_form_action
Fatal error from debug.log:
Uncaught Error: Class "XooEL\Aff\WP_Error" not found in:
wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/class-xoo-aff-fields.php:1419
Stack trace points to:
XooEL\Aff\Xoo_Aff_Fields->validate_submitted_field_values()
Xoo_El_Form_Handler::process_registration()
Xoo_El_Form_Handler::form_action()
It looks like WP_Error is being called inside the XooEL\Aff namespace without a leading backslash.
Current code seems to use something like:
$errors = new WP_Error();
Because the file is namespaced, PHP tries to load:
XooEL\Aff\WP_Error
instead of the global WordPress class:
\WP_Error
A quick local patch fixes the fatal error:
$errors = new \WP_Error();
Could you please confirm and include this fix in the next update?
This issue started after the latest update, released approximately 7 hours ago.
Thanks.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.