1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Attachment issue after EasyApache Run

Discussion in 'Troubleshooting and Problems' started by Douglas Taylor, Apr 20, 2016.

  1. Douglas Taylor

    Douglas Taylor Active Member

    Doublechecked that the internal_data directory was set to 0777 -R as well:

    Error Info
    ErrorException: copy(/home/jetc/public_html/forums/data/attachments/26/26236-9a6b6f9bbf7723937505ed5d5879afb4.jpg): failed to open stream: Permission denied - library/XenForo/Helper/File.php:253
    Generated By: Derg, 5 minutes ago
    Stack Trace
    #0 [internal function]: XenForo_Application::handlePhpError(2, 'copy(/home/jetc...', '/home/jetc/publ...', 253, Array)
    #1 /home/jetc/public_html/forums/library/XenForo/Helper/File.php(253): copy('/home/jetc/publ...', '/home/jetc/publ...')
    #2 /home/jetc/public_html/forums/library/XenForo/DataWriter/AttachmentData.php(265): XenForo_Helper_File::safeRename('/home/jetc/publ...', '/home/jetc/publ...')
    #3 /home/jetc/public_html/forums/library/XenForo/DataWriter/AttachmentData.php(224): XenForo_DataWriter_AttachmentData->_moveFile('/home/jetc/publ...', '/home/jetc/publ...')
    #4 /home/jetc/public_html/forums/library/XenForo/DataWriter/AttachmentData.php(160): XenForo_DataWriter_AttachmentData->_writeAttachmentFile('/home/jetc/publ...', Array, true)
    #5 /home/jetc/public_html/forums/library/XenForo/DataWriter.php(1409): XenForo_DataWriter_AttachmentData->_postSave()
    #6 /home/jetc/public_html/forums/library/XenForo/Model/Attachment.php(539): XenForo_DataWriter->save()
    #7 /home/jetc/public_html/forums/library/XenForo/ControllerPublic/Attachment.php(204): XenForo_Model_Attachment->insertUploadedAttachmentData(Object(XenForo_Upload), 1)
    #8 /home/jetc/public_html/forums/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Attachment->actionDoUpload()
    #9 /home/jetc/public_html/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #10 /home/jetc/public_html/forums/index.php(13): XenForo_FrontController->run()
    #11 {main}
    Request State
    array(3) {
    ["url"] => string(111) "http://forums.jetcareers.com/attach...21ebaa98cb12118b3fafded4be1&content_type=post"
    ["_GET"] => array(2) {
    ["hash"] => string(32) "26ba521ebaa98cb12118b3fafded4be1"
    ["content_type"] => string(4) "post"
    }
    ["_POST"] => array(7) {
    ["Filename"] => string(12) "Eeyore_3.jpg"
    ["_xfToken"] => string(8) "********"
    ["content_data"] => array(1) {
    ["node_id"] => string(1) "8"
    }
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    ["_xfSessionId"] => string(32) "b00778192d98a2b7c32041b7a4f58b2e"
    ["Upload"] => string(12) "Submit Query"
    }
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Set permissions on data as well as internal_data. That error is for data.
     

Share This Page