I keep getting this notification
How do I fix this?
How do I fix this?
vBulletin 3 is end of life and will not be receiving future development. Warning: vBulletin 3.8.11 is not compatible with PHP 7.2.0 or higher.
Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
Useful Links for Guests:
If you are having problems posting in the relevant areas for your software, please see this topic.
$vbulletin = new vB_Registry();
error_reporting(E_ALL & ~E_NOTICE & ~8192);
if (!defined('E_DEPRECATED')) { define('E_DEPRECATED', 8192); } if (!defined('E_STRICT')) { define('E_STRICT', 2048); } error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
error_reporting(E_ALL & ~E_NOTICE & ~8192 & ~2048);
<?php
$basepath = "/var/www";
function cycledir($dirname) {
$handle = opendir($dirname);
if (!$handle) {
echo "WARN: $dirname could not be opened!\n";
return;
}
$dirname .= '/';
while (false !== ($file = readdir($handle))) {
if ($file{0} != '.') {
if (is_file($dirname.$file) && substr($file,-3) == 'php') {
$raw = file_get_contents($dirname.$file);
$new = str_replace("error_reporting(E_ALL & ~E_NOTICE)", "error_reporting(E_ALL & ~E_NOTICE & ~8192 & ~2048 & ~E_WARNING)", $raw);
file_put_contents($dirname.$file, $new);
echo $raw == $new ? "wrote ".$dirname.$file."\n" : "no changes: ".$dirname.$file."\n";
} elseif (is_dir($dirname.$file)) {
cycledir($dirname.$file);
}
}
}
}
cycledir($basepath);
echo "OK\n";
?>
Comment