Support » Plugin: BulletProof Security » Fatal error: …in hud-autofix-whitelist.php on line 595

  • Resolved wookie.cc

    (@wookiecc)


    Hi, since the last update I get the following error:

    Fatal error: Uncaught Error: Call to undefined function bpsPro_autofix_message() in /2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php:595 Stack trace: #0 /2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php(13): bpsPro_HUD_autofix_whitelist_check() #1 /2020/gh_debug/wp-includes/class-wp-hook.php(287): bps_HUD_autofix_whitelist_WP_Dashboard() #2 /2020/gh_debug/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #3 /2020/gh_debug/wp-includes/plugin.php(478): WP_Hook->do_action() #4 /2020/gh_debug/wp-admin/admin-header.php(292): do_action() #5 /2020/gh_debug/wp-admin/plugins.php(603): require_once(‘/kunden/247709_…’) #6 {main} thrown in /2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php on line 595

    on several websites I’ve created. I tried to turn it off and on again. Even with a complete deinstallation and deleting db_tables / cache / backup. Same same. What can I do? Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author AITpro

    (@aitpro)

    This may be a folder permission or ownership problem. Go the BPS System Info page > File|Folder Permissions (CGI or DSO)|Script Owner User ID (UID)|File Owner User ID > check that all > Script Owner User ID (UID) and File Owner User ID match. They should all be the same #/ID. Also check folder permissions to make sure they are correct.

    Also do standard WP troubleshooting steps > deactivate all of your other plugins and test things, if the problem is still happening then switch your theme temporarily to the WordPress twentytwenty theme or another theme.

    • This reply was modified 6 months ago by AITpro.
    Plugin Author AITpro

    (@aitpro)

    Is the issue/problem still occurring or is it resolved?

    Thread Starter wookie.cc

    (@wookiecc)

    Thank you for your reply. Unfortunately the problem still occurs. I changed the theme and switched off all plugins. Still the same issue. Since then I dont have access to the BPS System Info Page, so I cant change anything. Here is the debug.log:

    [17-Nov-2020 01:08:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bpsPro_autofix_message() in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php:595
    Stack trace:
    #0 /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php(13): bpsPro_HUD_autofix_whitelist_check()
    #1 /…/2020/gh_debug/wp-includes/class-wp-hook.php(287): bps_HUD_autofix_whitelist_WP_Dashboard()
    #2 /…/2020/gh_debug/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #3 /…/2020/gh_debug/wp-includes/plugin.php(478): WP_Hook->do_action()
    #4 /…/2020/gh_debug/wp-admin/admin-header.php(292): do_action()
    #5 /…/2020/gh_debug/wp-admin/index.php(111): require_once(‘/kunden/247709_…’)
    #6 {main}
    thrown in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php on line 595
    [17-Nov-2020 01:08:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bpsPro_autofix_message() in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php:595
    Stack trace:
    #0 /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php(13): bpsPro_HUD_autofix_whitelist_check()
    #1 /…/2020/gh_debug/wp-includes/class-wp-hook.php(287): bps_HUD_autofix_whitelist_WP_Dashboard()
    #2 /…/2020/gh_debug/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #3 /…/2020/gh_debug/wp-includes/plugin.php(478): WP_Hook->do_action()
    #4 /…/2020/gh_debug/wp-admin/admin-header.php(292): do_action()
    #5 /…/2020/gh_debug/wp-admin/plugins.php(603): require_once(‘/kunden/247709_…’)
    #6 {main}
    thrown in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php on line 595
    [17-Nov-2020 01:08:30 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bpsPro_autofix_message() in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php:595
    Stack trace:
    #0 /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php(13): bpsPro_HUD_autofix_whitelist_check()
    #1 /…/2020/gh_debug/wp-includes/class-wp-hook.php(287): bps_HUD_autofix_whitelist_WP_Dashboard()
    #2 /…/2020/gh_debug/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #3 /…/2020/gh_debug/wp-includes/plugin.php(478): WP_Hook->do_action()
    #4 /…/2020/gh_debug/wp-admin/admin-header.php(292): do_action()
    #5 /…/2020/gh_debug/wp-admin/plugins.php(603): require_once(‘/kunden/247709_…’)
    #6 {main}
    thrown in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php on line 595
    [17-Nov-2020 01:08:32 UTC] PHP Notice: Trying to access array offset on value of type bool in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/functions.php on line 819
    [17-Nov-2020 01:08:32 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bpsPro_autofix_message() in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php:595
    Stack trace:
    #0 /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php(13): bpsPro_HUD_autofix_whitelist_check()
    #1 /…/2020/gh_debug/wp-includes/class-wp-hook.php(287): bps_HUD_autofix_whitelist_WP_Dashboard()
    #2 /…/2020/gh_debug/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #3 /…/2020/gh_debug/wp-includes/plugin.php(478): WP_Hook->do_action()
    #4 /…/2020/gh_debug/wp-admin/admin-header.php(292): do_action()
    #5 /…/2020/gh_debug/wp-admin/admin.php(287): require_once(‘/kunden/247709_…’)
    #6 {main}
    thrown in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php on line 595
    [17-Nov-2020 01:08:35 UTC] PHP Notice: Trying to access array offset on value of type bool in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/functions.php on line 819
    [17-Nov-2020 01:08:35 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bpsPro_autofix_message() in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php:595
    Stack trace:
    #0 /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php(13): bpsPro_HUD_autofix_whitelist_check()
    #1 /…/2020/gh_debug/wp-includes/class-wp-hook.php(287): bps_HUD_autofix_whitelist_WP_Dashboard()
    #2 /…/2020/gh_debug/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #3 /…/2020/gh_debug/wp-includes/plugin.php(478): WP_Hook->do_action()
    #4 /…/2020/gh_debug/wp-admin/admin-header.php(292): do_action()
    #5 /…/2020/gh_debug/wp-admin/admin.php(287): require_once(‘/kunden/247709_…’)
    #6 {main}
    thrown in /…/2020/gh_debug/wp-content/plugins/bulletproof-security/includes/hud-autofix-whitelist.php on line 595

    Thank you so much for any advice!

    Thread Starter wookie.cc

    (@wookiecc)

    Hello. my earlier theme changes didn’t apply. Now I turned off the Beaver Builder Theme and Plugins and it seems to be the issue. As I turned the Beaver Builder Plugin back on the error occured again.

    Script Owner User ID (UID) and File Owner User ID matched. I will check the file permissions again tomorrow but they looked good.

    • This reply was modified 5 months, 3 weeks ago by wookie.cc.
    Plugin Author AITpro

    (@aitpro)

    Actually it’s a bug in the BPS autofix checking code at code line: 595. I missed it the first time I checked that code because I was checking the BPS Pro HUD autofix file and that code below is correct for BPS Pro, but not for BPS. I’ll fix this in the next BPS plugin version release. For now try this and let me know if it works or not. Go to the BPS Setup Wizard page > Setup Wizard Options tab page > AutoFix (AutoWhitelist|AutoSetup|AutoCleanup) > change the option setting to > AutoFix Off.

    Or if you want to manually edit/fix this bug in this file > bulletproof-security/includes/hud-autofix-whitelist.php > change this code > $autofix_message = bpsPro_autofix_message($autofix_message); to this > $autofix_message = 1;

    Before editing:

    	if ( $beaver_builder_active == 1 || is_plugin_active_for_network( $beaver_builder ) ) {
    		if ( ! preg_match( $admin_ajax_psb, $bps_customcode_two_wpa ) ) {
    			$autofix_message = bpsPro_autofix_message($autofix_message);
    			$debug_wpadmin_PSB .= __('CC wp-admin Text Box 3: Beaver Builder Plugin', 'bulletproof-security').'<br>';
    		}
    	}

    After editing:

    	if ( $beaver_builder_active == 1 || is_plugin_active_for_network( $beaver_builder ) ) {
    		if ( ! preg_match( $admin_ajax_psb, $bps_customcode_two_wpa ) ) {
    			$autofix_message = 1;
    			$debug_wpadmin_PSB .= __('CC wp-admin Text Box 3: Beaver Builder Plugin', 'bulletproof-security').'<br>';
    		}
    	}
    • This reply was modified 5 months, 3 weeks ago by AITpro.
    Thread Starter wookie.cc

    (@wookiecc)

    It works! Thank you.

    Plugin Author AITpro

    (@aitpro)

    BPS 4.4 has been released with the HUD beaver builder check fix. If you chose to turn Off the Setup Wizard AutoFix option on the Setup Wizard Options page then you can safely turn it back On. If you chose to edit this file: bulletproof-security/includes/hud-autofix-whitelist.php then you don’t need to do anything else.

    Thread Starter wookie.cc

    (@wookiecc)

    Cool! I fixed it manually and left everything else as it was. Thank you for your help and the good work!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.