• Guessing this plugin is not being supported anymore – but just in case it is – it breaks log in/out with PHP 8.0

    2022/02/24 17:42:32 [error] 91402#91402: *3149 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_current_user() in /www/tctc_537/public/wp-content/plugins/disable-user-registration/disable-user-registration.php:190
    Stack trace:
    #0 /www/tctc_537/public/wp-content/plugins/disable-user-registration/disable-user-registration.php(117): Disable_User_Registration->should_block()
    #1 /www/tctc_537/public/wp-includes/class-wp-hook.php(307): Disable_User_Registration->redirect('')
    #2 /www/tctc_537/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #3 /www/tctc_537/public/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #4 /www/tctc_537/public/wp-login.php(493): do_action('login_init')
    #5 {main}
    thrown in /www/tctc_537/public/wp-content/plugins/disable-user-registration/disable-user-registration.php on line 190" while reading response header from upstream, client: 2604:3d08:1784:1f00:1df8:cebe:7d35:7c2f, server: staging-tctc.kinsta.cloud, request: "GET /wp-login.php?action=logout&_wpnonce=04a12d6d0d HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-tctc.sock:", host: "staging-tctc.kinsta.cloud:43957", referrer: "https://staging-tctc.kinsta.cloud/wp-admin/post-new.php"

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

  • The topic ‘Error with PHP8.0’ is closed to new replies.