Hi All,
Getting this error message coming up.
Fatal error: Uncaught TypeError: readdir(): Argument #1 ($dir_handle) must be of type resource or null, false given in /home/xxxx/public_html/forum/admin/fileperms.php:154 Stack trace: #0 /home/xxxxc/public_html/forum/admin/fileperms.php(154): readdir() #1 {main} thrown in /home/xxxx/public_html/forum/admin/fileperms.php on line 154
File details from line 150
foreach ($dirs as $k => $v) {
$results[$v]['header'] = "<span style='color:green;'>OK</span>";
$results[$v]['checks'] = "";
$dir = @opendir("../$v");
while ($file = @readdir($dir)) {
if ($file == "..") {
continue;
}
if (is_writeable("../$v/$file")) {
$status = "<span style='color:green;'>OK</span>";
} else {
$status = "<span style='color:red;'>FAIL</span>";
$results[$v]['header'] = "<span style='color:red;'>FAIL</span>";
}
if ($file == ".") {
$file = "<b><DIRECTORY></b>";
}
$results[$v]['checks'] .= "<tr><td>$file</td><td>$status</td></tr>";
}
}
/*
cache_builders/custom
images
avatars
forumimages
graemlins
icons
includes
languages
sessions
templates
styles
*/
// Include the template
include("../templates/default/admin/fileperms.tmpl");
$admin->sendFooter();
?>
Any help would be appreciated
Last edited by Outdoorking; 05/10/2026 8:20 PM.