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.
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
cache_builders/custom
images
avatars
forumimages
graemlins
icons
includes
languages
sessions
templates
styles
*/
// Include the template
include("../templates/default/admin/fileperms.tmpl");
$admin->sendFooter();
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.
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; }