XF 1.1 Error message on uploading file

Shortie

Member
Hi, I have just recently been getting members posting that they are getting an error message when trying to upload a file to a thread, this has started happening in the last week or so as I used this feature a couple of weeks ago and had no problems.

The error I get is

Code:
The following error occurred
 
There was a problem uploading your file
 
xxx.gif

Any help is greatly appreciated. Thanks.

Edit: Also tried changing my avatar and I get this error message

Code:
imagejpeg() [function.imagejpeg]: gd-jpeg: JPEG library reports unrecoverable error:
XenForo_Application::handlePhpError() in XenForo/Image/Gd.php at line 208
XenForo_Image_Gd->output() in XenForo/Model/Avatar.php at line 131
XenForo_Model_Avatar->applyAvatar() in XenForo/Model/Avatar.php at line 69
XenForo_Model_Avatar->uploadAvatar() in XenForo/ControllerPublic/Account.php at line 482
XenForo_ControllerPublic_Account->actionAvatarUpload() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/chataddi/public_html/index.php at line 13

Thanks.
 
Cannot upload photos for some reason getting this message
ErrorException: copy(/var/www/vhosts/ionian-island.co.uk/httpdocs/forums/internal_data/attachments/7/7130-c6e748875a9f750a31feac3de0ad01ce.data) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied -library/XenForo/Helper/File.php:236

any idea what could have caused this have not made any changes recently and it used to work??
 
This is a permission issue somewhere in your internal_data directory or in any of the directories within. You may simply want to recursively chmod the directories to 0777.
 
It's definitely a permission issue. However, I can't say I totally understand your last message. If there are elements that you can't chmod via FTP, it sounds like they are owned by another used, but this would likely indicate a change in server configuration by your host -- they would be able to chmod the files/directories for you.
 
Still stuck with this all files seem to be 0777, here is full error message
ErrorException: copy(/var/www/vhosts/ionian-island.co.uk/httpdocs/forums/internal_data/attachments/7/7134-cb97a29bd028f29490f3dddd08bc78fd.data) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied -library/XenForo/Helper/File.php:236
Generated By: Phil, Yesterday at 11:51 PM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError('/tmp/phpOI226C', '/var/www/vhosts...')
#1 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/Helper/File.php(236): copy('/tmp/phpOI226C', '/var/www/vhosts...')
#2 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/DataWriter/AttachmentData.php(264): XenForo_Helper_File::safeRename('/tmp/phpOI226C', '/var/www/vhosts...')
#3 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/DataWriter/AttachmentData.php(223): XenForo_DataWriter_AttachmentData->_moveFile('/tmp/phpOI226C', Array, false)
#4 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenGallery/DataWriter/AttachmentData.php(62): XenForo_DataWriter_AttachmentData->_writeAttachmentFile('/tmp/phpOI226C', Array)
#5 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/DataWriter/AttachmentData.php(143): XenGallery_DataWriter_AttachmentData->_writeAttachmentFile()
#6 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/DataWriter.php(1409): XenForo_DataWriter_AttachmentData->_postSave()
#7 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/Model/Attachment.php(524): XenForo_DataWriter->save(Object(XenForo_Upload), 309)
#8 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/ControllerPublic/Attachment.php(201): XenForo_Model_Attachment->insertUploadedAttachmentData()
#9 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Attachment->actionDoUpload(Object(XenForo_RouteMatch))
#10 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch()
#11 /var/www/vhosts/ionian-island.co.uk/httpdocs/forums/index.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
["url"] => string(120) "http://www.ionian-island.co.uk/foru...00d7f25e1fc88a2f79dd478ac8d&content_type=post"
["_GET"] => array(2) {
["hash"] => string(32) "afc8d00d7f25e1fc88a2f79dd478ac8d"
["content_type"] => string(4) "post"
}
["_POST"] => array(7) {
["Filename"] => string(12) "P1020565.jpg"
["_xfNoRedirect"] => string(1) "1"
["_xfSessionId"] => string(32) "84f2bde906fb8cb973eb5d6dba8ed6a1"
["_xfToken"] => string(8) "********"
["content_data"] => array(1) {
["node_id"] => string(2) "16"
}
["_xfResponseType"] => string(4) "json"
["Upload"] => string(12) "Submit Query"
}
}
 
Note that you need to check the directory permissions as well.

If you're struggling, submit a ticket with FTP details and an account we can test with and we can look into it.
 
My host has sorted it, had to reset file ownership apparently! this has now let me get them back to 0777 permissions and its all working.
Thanks for the advice.
 
Top Bottom