Tim Tyler Posted February 24 Share Posted February 24 (edited) Any idea what's causing these errors in the System Log? Â #0 * /httpdocs/system/File/File.php(398): IPS\_File::validateUpload() #1 * /httpdocs/system/Helpers/Form/Upload.php(729): IPS\_File::createFromUploads() #2 * /httpdocs/system/Helpers/Form/Upload.php(309): IPS\Helpers\Form\_Upload->processUploads() #3 * /httpdocs/system/Helpers/Form/Editor.php(768): IPS\Helpers\Form\_Upload->__construct() #4 * /httpdocs/system/Helpers/Form/Editor.php(187): IPS\Helpers\Form\_Editor->getUploader() #5 * /httpdocs/system/Content/Item.php(5057): IPS\Helpers\Form\_Editor->__construct() #6 * /httpdocs/system/Content/Item.php(4746): IPS\Content\_Item->commentFormElements() #7 * /httpdocs/system/Theme/Theme.php(885) : eval()'d code(5377): IPS\Content\_Item->commentForm() #8 * /httpdocs/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic() #9 * /httpdocs/applications/forums/modules/front/forums/topic.php(643): IPS\Theme\_SandboxedTemplate->__call() #10 * /httpdocs/system/Dispatcher/Controller.php(118): IPS\forums\modules\front\forums\_topic->manage() #11 * /httpdocs/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #12 * /httpdocs/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #13 * /httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #14 * /httpdocs/index.php(13): IPS\_Dispatcher->run() #15 {main} Edited February 24 by Tim Tyler Link to comment Share on other sites More sharing options...
Marc Posted February 26 Share Posted February 26 I would suggest checking permissions on your uploads folder there. Are you actively able to replicate the issue, or only seeing them in the logs? Link to comment Share on other sites More sharing options...
Tim Tyler Posted February 26 Author Share Posted February 26 This is a 5-day old install on a fresh VM. Most forum user uploads are working fine. I personally had an image upload via the ACP Advertisements admin fail a few days ago but there is no mention in the ACP log. My upload worked on the second attempt. I contacted the user/uploader from the screenshot above and he said: Quote The one photo seemed to have been damaged somehow during file reduction. Now, I reduced the pictures again from the originals and upload worked fine. Although the file was just about 250kb, the upload always failed and the small window remained red. These are photos made with an Iphone, in HEIC format. I opened them in PREVIEW and cropped them, and then exported them as JPEG, choosing the lowest possible file size. It's likely the image files were larger than the forum's max storage limit but shouldn't the failure be more graceful than a Server Error? Also - I switch from ImageMagick to GD image processing yesterday to see if that helps. Link to comment Share on other sites More sharing options...
Jim M Posted February 26 Share Posted February 26 10 minutes ago, Tim Tyler said: It's likely the image files were larger than the forum's max storage limit but shouldn't the failure be more graceful than a Server Error? The error seems to be caught and displayed as such in the System Log. It does not seem to be displayed on the front-end so is graceful in that scenario. It would be up to you and your hosting provider to determine what the issue is with the server handling erroneously handling the upload at the point of failure. The software can also only grab/catch what is not a complete failure on the server's part. If you have any security modules involved which may be blocking some uploads, that is also something to consider. Link to comment Share on other sites More sharing options...
Tim Tyler Posted February 26 Author Share Posted February 26 Thx. I've just now downgraded from PHP 8.2x to 8.1x so we'll see if that makes a difference. Link to comment Share on other sites More sharing options...
Jim M Posted February 26 Share Posted February 26 23 minutes ago, Tim Tyler said: Thx. I've just now downgraded from PHP 8.2x to 8.1x so we'll see if that makes a difference. This should as PHP 8.2 is not yet supported 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts