Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter charlottemcclellan

    (@charlottemcclellan)

    Thanks, that pointed me in the right direction.

    A while back I experimented with bypassing on a couple of IP addresses and then decided I didn’t want that and commented out the function my_forcelogin_bypass function from my functions.php file but forgot to comment out the add_filter line. Interesting that PHP 7.4 didn’t crash but 8.1 did.

    Charlotte

    Thread Starter charlottemcclellan

    (@charlottemcclellan)

    Hi,

    With the plugin enabled, when I go to the site I get the message “There has been a critical error on this website”

    If I add /wp-admin to the URL I get the login box and I can login and everything works at this point.

    Enabling WP_DEBUG gives

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "my_forcelogin_bypass" not found or invalid function name in /var/www/mcclellan/wp-includes/class-wp-hook.php:309 Stack trace: #0 /var/www/mcclellan/wp-includes/plugin.php(191): WP_Hook->apply_filters() #1 /var/www/mcclellan/wp-content/plugins/wp-force-login/wp-force-login.php(57): apply_filters() #2 /var/www/mcclellan/wp-includes/class-wp-hook.php(307): v_forcelogin() #3 /var/www/mcclellan/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #4 /var/www/mcclellan/wp-includes/plugin.php(476): WP_Hook->do_action() #5 /var/www/mcclellan/wp-includes/template-loader.php(13): do_action() #6 /var/www/mcclellan/wp-blog-header.php(19): require_once('...') #7 /var/www/mcclellan/index.php(17): require('...') #8 {main} thrown in /var/www/mcclellan/wp-includes/class-wp-hook.php on line 309
    
    There has been a critical error on this website.

    Thanks,
    Charlotte

    Thread Starter charlottemcclellan

    (@charlottemcclellan)

    I discovered that the problem was that with PHP 5.x you did not need the ‘php_ftp’ extension for FTPS connections but starting with PHP 7.x you do. I enabled ‘php_ftp’ and everything is working again.

    Charlotte

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