• Resolved foxxweb

    (@foxxweb)


    When attempting to login as a valid user I get

    Fatal error: Uncaught Error: Call to a member function has_errors() on string in /var/www/vip5/sites/vip1580822/httpd/htdocs/wp-content/plugins/wp-members/includes/class-wp-members.php:2003 Stack trace: #0 /var/www/vip5/sites/vip1580822/httpd/htdocs/wp-content/plugins/wp-members/includes/class-wp-members-shortcodes.php(1085): WP_Members->has_errors() #1 /var/www/vip5/sites/vip1580822/httpd/htdocs/wp-content/plugins/wp-members/includes/class-wp-members-shortcodes.php(164): WP_Members_Shortcodes->render_pwd_reset(‘loginfailed’, ”) #2 /var/www/vip5/sites/vip1580822/httpd/htdocs/wp-includes/shortcodes.php(355): WP_Members_Shortcodes->forms(Array, ”, ‘wpmem_form’) #3 [internal function]: do_shortcode_tag(Array) #4 /var/www/vip5/sites/vip1580822/httpd/htdocs/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(TABS_P…’, ‘do_shortcode_ta…’, ‘<div class=”wp-…’) #5 /var/www/vip5/sites/vip1580822/httpd/htdocs/wp-includes/class-wp-hook.php(308): do_shortcode(‘<div class=”wp-…’) #6 /var/www/vip5/sites/vip15808 in?/var/www/vip5/sites/vip1580822/httpd/htdocs/wp-content/plugins/wp-members/includes/class-wp-members.php?on line?2003

    I have tried deactivating all other plugins and the problem persists

    • This topic was modified 1 year, 9 months ago by foxxweb.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    If you open the file wp-members/includes/class-wp-members.php and scroll to the very end, you’ll see a function called?has_errors().? The return line is as follows:

    return ( isset( $this->error ) && $this->error->has_errors() ) ? true : false;

    Change it to this:

    return ( is_wp_error( $this->error ) && $this->error->has_errors() ) ? true : false;

    That should solve the issue.

    This actually will be addressed in the 3.4.8 release, due out soon.

    Plugin Author Chad Butler

    (@cbutlerjr)

    This change is included in the 3.4.8 release which is now the production version of the plugin.

    Thread Starter foxxweb

    (@foxxweb)

    That works nicely, thank you for the prompt response!

    • This reply was modified 1 year, 9 months ago by foxxweb.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Members login crash’ is closed to new replies.