ErrorException: copy(/var/www/site/data/www/xxx/data/attachments/0/406-b09967bf7f5aa825b068f7d966b4435c.jpg): failed to open stream: Permission denied - library/XenForo/Helper/File.php:236
Сгенерирована пользователем: admin, только что
Трассировка стэка
#0 [internal function]: XenForo_Application::handlePhpError(2, 'copy(/var/www/d...', '/var/www/site...', 236, Array)
#1 /var/www/site/data/www/xxx/library/XenForo/Helper/File.php(236): copy('/var/www/site...', '/var/www/site...')
#2 /var/www/site/data/www/xxx/library/XenForo/DataWriter/AttachmentData.php(264): XenForo_Helper_File::safeRename('/var/www/site...', '/var/www/site...')
#3 /var/www/site/data/www/xxx/library/XenForo/DataWriter/AttachmentData.php(223): XenForo_DataWriter_AttachmentData->_moveFile('/var/www/site...', '/var/www/site...')
#4 /var/www/site/data/www/xxx/library/XenForo/DataWriter/AttachmentData.php(159): XenForo_DataWriter_AttachmentData->_writeAttachmentFile('/var/www/site...', Array, true)
#5 /var/www/site/data/www/xxx/library/XenForo/DataWriter.php(1409): XenForo_DataWriter_AttachmentData->_postSave()
#6 /var/www/site/data/www/xxx/library/XenForo/Model/Attachment.php(524): XenForo_DataWriter->save()
#7 /var/www/site/data/www/xxx/library/XenForo/ControllerPublic/Attachment.php(201): XenForo_Model_Attachment->insertUploadedAttachmentData(Object(XenForo_Upload), 1)
#8 /var/www/site/data/www/xxx/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Attachment->actionDoUpload()
#9 /var/www/site/data/www/xxx/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /var/www/site/data/www/xxx/index.php(14): XenForo_FrontController->run()
#11 {main}
Содержимое запроса
array(3) {
["url"] => string(102) "http://xxx/attachments/do-upload.json?hash=c937d552aad39e040ba0c427c5f97422&content_type=post"
["_GET"] => array(2) {
["hash"] => string(32) "c937d552aad39e040ba0c427c5f97422"
["content_type"] => string(4) "post"
}
["_POST"] => array(7) {
["Filename"] => string(6) "cr.jpg"
["_xfResponseType"] => string(4) "json"
["_xfNoRedirect"] => string(1) "1"
["_xfSessionId"] => string(32) "fe5517bf75d371cc7cb28e8703135d02"
["content_data"] => array(1) {
["post_id"] => string(5) "22570"
}
["_xfToken"] => string(8) "********"
["Upload"] => string(12) "Submit Query"
}
}