Registration Form Validation in wordpress

Seems like this might be a bug in a plug-in or theme. From the Codex:

The form will not create a new user if any errors are returned. Notice: The function must return the variable $errors in any case (even when there is no error in your logic), otherwise the function may cause this problem: Fatal error: Call to a member function get_error_code() on a non-object.

Deactivate all other plug-ins to find which is causing it. If it’s still persisting, switch the theme to TwentyEeven. Once you’ve identified the culprit, you’ll need to search the code for the error – somewhere they’ll be doing something similar to you, but not returning $errors.

Leave a Comment