User email validation broken
-
Getting those errors in debug.log
[29-Nov-2022 12:31:17 UTC] PHP Warning: Attempt to read property "user_email" on bool in /var/www/html/wp-content/plugins/acf-extended/includes/modules/forms-action-user.php on line 342 [29-Nov-2022 12:31:17 UTC] PHP Warning: Attempt to read property "user_email" on bool in /var/www/html/wp-content/plugins/acf-extended/includes/modules/forms-action-user.php on line 344When I add a
error_log("$target: $user_email !== {$target_user->user_email}");`On line 344 of includes/modules/forms-action-user.php I got:
[29-Nov-2022 12:31:17 UTC] : c@c.cc !==Seems like $target is falsy and therefore comparing fails, which results in wrong validation messages.
—
PHP 8.0.25
WP 6.1.1
ACFE 0.8.8.10—
Had to rollback to 0.8.8.7, since 0.8.8.8 introduced the built-in user validation, which is causing the shown errors.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘User email validation broken’ is closed to new replies.