• Resolved Maddest

    (@maddest)


    Hi,

    I’m almost ready to go online with the new directorist plugin, but when testing with another user my WordPress crashes after using the login page.

    I enter the credentials, press login and then WordPress displays a white page with the message:

    There has been a critical error on your website.
    Learn more about debugging in WordPress.

    My website works again, if I delete the browser cache.

    I’ve enabled WP debug and get the following error:

    [09-Jan-2020 17:16:21 UTC] PHP Fatal error: Uncaught Error: Call to a member function add_cap() on null in /www/htdocs/****/wp-content/plugins/directorist/includes/classes/class-user.php:49
    Stack trace:
    #0 /www/htdocs/****/wp-includes/class-wp-hook.php(288): ATBDP_User->allow_contributor_uploads(”)
    #1 /www/htdocs/****/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #2 /www/htdocs/****/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /www/htdocs/****/wp-settings.php(523): do_action(‘init’)
    #4 /www/htdocs/****/wp-config.php(129): require_once(‘/www/htdocs/w00…’)
    #5 /www/htdocs/****/wp-load.php(37): require_once(‘/www/htdocs/w00…’)
    #6 /www/htdocs/****/wp-blog-header.php(13): require_once(‘/www/htdocs/w00…’)
    #7 /www/htdocs/****/index.php(17): require(‘/www/htdocs/w00…’)
    #8 {main}
    thrown in /www/htdocs/****/wp-content/plugins/directorist/includes/classes/class-user.php on line 49

    What is going on here?

    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Maddest

    (@maddest)

    I’ve solved the problem, by setting the WP default role for new users to ‘Customer’. It was set to ‘Subscriber’ and then it won’t work.

    Maybe it’s a small bug in your plugin? It should also work with ‘Subscribers’ or other default roles?

    Hello,
    Glad to know that you’ve fixed the problem, and thank you for informing us about it, it will be fixed in upcoming updates.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress crashes after login’ is closed to new replies.