esg450
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [WP Cerber Security, Anti-spam & Malware Scan] 2FA results in 500-errorI was getting this for a while, but posted a fix until this could be fixed on the cerber side on this thread: https://www.ads-software.com/support/topic/2factor-authentification-with-php-8-0-not-working/ .
Essentially just add this in your wp-config.php:
define( 'AUTOSAVE_INTERVAL', 60 );
Found a fix for this. In your wp-config add this line to fix the error:
define( 'AUTOSAVE_INTERVAL', 60 );
Just saw this thread and wanted to post my log as well. Also running PHP 8 on my servers:
[14-Dec-2022 20:35:47 UTC] PHP Fatal error: Uncaught Error: Undefined constant "AUTOSAVE_INTERVAL" in /var/www/public/wp-includes/script-loader.php:1804 Stack trace: #0 /var/www/public/wp-includes/class-wp-hook.php(308): wp_just_in_time_script_localization('') #1 /var/www/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #2 /var/www/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /var/www/public/wp-includes/script-loader.php(2012): do_action('wp_print_script...') #4 /var/www/public/wp-content/plugins/wp-cerber/cerber-2fa.php(472): print_head_scripts() #5 /var/www/public/wp-content/plugins/wp-cerber/cerber-2fa.php(349): CRB_2FA::show_2fa_page() #6 /var/www/public/wp-content/plugins/wp-cerber/cerber-load.php(1732): CRB_2FA::restrict_and_verify(1) #7 /var/www/public/wp-content/plugins/wp-cerber/cerber-load.php(1700): cerber_restrict_user(1) #8 /var/www/public/wp-includes/class-wp-hook.php(308): {closure}('') #9 /var/www/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #10 /var/www/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /var/www/public/wp-includes/pluggable.php(48): do_action('set_current_use...') #12 /var/www/public/wp-includes/user.php(3610): wp_set_current_user(1) #13 /var/www/public/wp-includes/pluggable.php(70): _wp_get_current_user() #14 /var/www/public/wp-includes/capabilities.php(873): wp_get_current_user() #15 /var/www/public/wp-content/plugins/enable-media-replace/classes/emr-plugin.php(45): current_user_can('upload_files') #16 /var/www/public/wp-includes/class-wp-hook.php(308): EnableMediaReplace\EnableMediaReplacePlugin->runtime('') #17 /var/www/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #18 /var/www/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #19 /var/www/public/wp-settings.php(480): do_action('plugins_loaded') #20 /var/www/public/wp-config.php(143): require_once('/var/www/public...') #21 /var/www/public/wp-load.php(50): require_once('/var/www/public...') #22 /var/www/public/wp-blog-header.php(13): require_once('/var/www/public...') #23 /var/www/public/index.php(17): require('/var/www/public...') #24 {main} thrown in /var/www/public/wp-includes/script-loader.php on line 1804
Viewing 3 replies - 1 through 3 (of 3 total)