I have uploaded the patch to our forum and now running version 8.0.1 and all seems to be ok but when check things I am getting this error message when I click Permision Check in the admin panel.
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/xxxx/public_html/forum/admin/fileperms.php(154): readdir() #1 {main} thrown in /home/xxxx/public_html/forum/admin/fileperms.php on line 154
This is what is in the file on the site concerened in the error and also have attached information on the server which does not show any SQL error logs:
Can anyone assist in what I should be looking for to stop this error message please as it appears to be the only error message that I am getting at this present stage.
Last edited by isaac; 05/13/202612:03 PM. Reason: removed php of entire file
That is all entirely stock; we're sure it's an issue with the paths on the system and PHP8 attempting to generate content and spewing an error (the $dir_handle for example isn't even in the code), could you send a copy of your config.inc.php configuration file to my email
Thank you for the bug report. I've looked into this and found what is causing the issue.
The error is generated from php 8 on UBB.threads 8.0.x when attempting to read files/folders that are unreachable. If you are currently having issues and want to patch your install now, the fix is listed below.
There should not be a gallery/install folder within UBB.threads, the default folders would be: gallery/default/full/ gallery/default/medium/ gallery/default/thumbs/
Each should contain an index.html document.
It's a simple permission check, it looks for ANY folders and ALL files in the UBB.threads path, if it's a folder it checks if it's chmodded 777, if theres a file it wants it 666.
Any additional folders in the gallery/ folder should be numerated with the forum number they belong to, "install" wouldn't be an option.
Checked the permissions and they all appear to be correct.
Note: that the galley is showing that gallery/default/ is passing but gallery/install is a fail(non of the files are in it) should the install folder have the same files in it or should I delete the install folder to stop the error showing?
gallery/install should not exist, as mentioned in my previous post; instead it should only be numerated folders which correspond to forum ids, and the "default" folder.