Previous Thread
Next Thread
Print Thread
Hop To
#267010 05/02/2026 9:17 PM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi All,

I am having issues with image uploads on the site. Site is running 8.0.0 version for quite a while with no issues that I know of.

1, They are not showing on the forum for some reason.
2. Tried to do an upload myself but that did not work and just getting a black square where the image is supposed to show.
3. the image is not showing at the bottom of the post only the decsription of the image.
4. This has only happended just recently.

Here is a link to one of the post: https://www.outdoorking-forum.com.a...i-height-adjustment-knob.html#Post122337

Outdoorking #267011 05/02/2026 10:16 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
How are you for free space on the server? How are the permissions on the upload folder? How are the permissions on your tmp folder?


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!
Gizmo #267012 05/02/2026 11:37 PM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi Gizmo,

I have images below which shows information requested.

The permissions are set to 0755 on most folders including the temp folder.
Attachments
Server.jpg Server_02.jpg

Outdoorking #267013 05/02/2026 11:55 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
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!
Outdoorking #267014 05/03/2026 12:41 AM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Gizmo,

Changes permissions and still not working with a test image i uploaded.

Outdoorking #267015 05/03/2026 1:11 AM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi Gizmo,

Went to control Panel and run a test for the:
Absolute PATH to Attachment Storage Directory
Needs to be an absolute path or relative to your UBB install.
Attachments can be enabled in each forum.
Example: /home/public_html/uploads

Result was that it past:
Directory exists and is writable.

Test passed.

What else should I be looking for?

Outdoorking #267016 05/03/2026 1:47 AM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi All,

I think that it has to do with image magic.

If I change the settings in Attachments to GD2 it will upload and is visable.

Outdoorking #267017 05/03/2026 1:49 AM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
It is an external system library that your host has to maintain, it's possible it was removed (even in favor of the built in GD).

There should be a test script in the Control Panel for the General Display Captcha Configuration that would test generation.


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!
Gizmo #267018 05/03/2026 2:24 AM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi Gizmo,

This is what the server people told me that it is an issue with the site:
Parse error: syntax error, unexpected token "[" in /home/xxxx/public_html/libs/smarty/sysplugins/smarty_internal_template.php on line 196
From file line 190 to 204

$this->smarty->_debug = new Smarty_Internal_Debug();
}
$this->smarty->_debug->start_template($this, $display);
}
// checks if template exists
if (!$this->source->exists) {
throw new SmartyException[
"Unable to load template '{$this->source->type}:{$this->source->name}'" .
($this->_isSubTpl() ? " in '{$this->parent->template_resource}'" : '')
);
}
// disable caching for evaluated code
if ($this->source->handler->recompiled) {
$this->caching = Smarty::CACHING_OFF;
}

What would I need to do to fix it.


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)