Well we recommend all of your uploads, tmp, and gallery folders to be 777 for world write. Your error you PMed me sounds like the directory can't be read, can you check that your file system paths are correct, and the paths set for your uploads are also correct

Originally Posted by Outdoorking
This error has shown up in the control panel and i am not sure if it is related to the image issue that I posted.

Fatal error: Uncaught TypeError: readdir(): Argument #1 ($dir_handle) must be of type resource or null, false given in /home/[user]/public_html/forum/admin/fileperms.php:154 Stack trace: #0 /home/[user]/public_html/forum/admin/fileperms.php(154): readdir() #1 {main} thrown in /home/[user]/public_html/forum/admin/fileperms.php on line 154

Originally Posted by Outdoorking
Hi Gizmo,

This is from the error log line 150 to end.
PHP Code
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>&lt;DIRECTORY&gt;</b>";
		}
		$results[$v]['checks'] .= "<tr><td>$file</td><td>$status</td></tr>";
	}
}

PHP Code
cache_builders/custom
images
	avatars
	forumimages
	graemlins
	icons
includes
languages
sessions
templates
styles
*/

// Include the template
include("../templates/default/admin/fileperms.tmpl");

$admin->sendFooter();


Last edited by Gizmo; 05/03/2026 12:57 AM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!