Plugin Author
AITpro
(@aitpro)
Safe Mode has been deprecated in PHP 5.3 and removed as of PHP 5.4. So not sure why your host would still want to use that directive since PHP is no longer using that directive anymore.
http://php.net/manual/en/features.safe-mode.php
Warning
This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
Thanks for catching that old link. The simple solution would be to turn the Safe Mode check into a Dismiss Notice or just get rid of that ancient check in BPS since no one should be using Safe Mode anymore these days. I don’t think having Safe Mode turned On actually causes any problems, but it has been years since I looked at that. This statement seems to imply that Safe Mode could cause this problem: “If you see errors that BPS was unable to automatically create the backup folders this is probably the reason why.” Since Safe Mode never really worked anyway I think it is probably ok to leave it turned On. We will either get rid of that ancient Safe Mode check or turn it into a Dismiss Notice in BPS .54.
Safe Mode Check
WARNING! BPS has detected that Safe Mode is set to On in your php.ini file.
If you see errors that BPS was unable to automatically create the backup folders this is probably the reason why.
Safe Mode is a thing of the past that never really worked any way. If you have safe mode set to On in your php.ini file you should set it to Off. If your web host has safe mode set to On and does not allow you to change this then just remove the error message by commenting out the Safe Mode function check in the options.php file. Safe Mode will effect the PHP mkdir function that creates directories so you may need to manually create folders is you have Safe Mode set to On.
To manually remove this error check do these steps:
1. Open and edit this BPS file: /bulletproof-security/includes/hud-dismiss-functions.php.
2. Comment out the bps_check_safemode() function with 2 forward slashes at Code Line: 16 as shown in the code below.
// HUD Alerts in WP Dashboard
function bps_HUD_WP_Dashboard() {
if ( current_user_can('manage_options') ) {
$plugin_var_w3tc = 'w3-total-cache/w3-total-cache.php';
$plugin_var_wpsc = 'wp-super-cache/wp-cache.php';
echo bps_check_php_version_error();
//echo bps_check_safemode();
echo bps_check_permalinks_error();
echo bps_check_iis_supports_permalinks();
echo bps_hud_check_bpsbackup();
echo bpsPro_bonus_custom_code_dismiss_notices();
echo bps_hud_PhpiniHandlerCheck();
echo bps_hud_check_sucuri();
echo bps_hud_check_wordpress_firewall2();
echo bps_hud_broken_link_checker();
echo bps_hud_check_jetpack();
echo bps_hud_check_woocommerce();
echo bps_hud_BPSQSE_old_code_check();
echo @bps_w3tc_htaccess_check($plugin_var_w3tc);
echo @bps_wpsc_htaccess_check($plugin_var_wpsc);
echo bpsPro_BBM_htaccess_check();
echo bpsPro_hud_speed_boost_cache_code();
//echo bps_hud_check_public_username();
}
}
add_action('admin_notices', 'bps_HUD_WP_Dashboard');
Plugin Author
AITpro
(@aitpro)
The Safe Mode check has been turned into a Dismiss Notice in BPS .54. You can either wait for BPS .54 to be released or manually make the code modification above in .53.9 to make the error message go away in .53.9.
Thread Start Date: 7-18-2016
Thread Resolved/Current Date: 7-19-2016
Comments: Scheduled Task #040663 completed.
Excellent! Thank you for your quick response.