Previous Thread
Next Thread
Print Thread
Hop To
#267058 05/10/2026 8:20 PM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
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.
Outdoorking #267059 05/10/2026 8:22 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads v8.0.1 fixes several issues with PHP8 up to PHP8.3


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!
Outdoorking #267060 05/10/2026 9:01 PM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi Gizmo,

I will try to do the upgrade myself and see how it goes.

Outdoorking #267068 05/12/2026 5:39 AM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi Gizmo,

Still getting the same meassage after loading the files correctly this time.

If you coudl advise me where I should be looking to try to fix this issue it would be greatly appreciated.

Last edited by Outdoorking; 05/12/2026 5:51 AM.

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (Gizmo), 156 guests, and 110 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)