Lỗi tải tệp tin đính kèm

Thảo luận trong 'Reports & Fix Bug' bắt đầu bởi phamthanhliem, 20/5/14.

1votes
5/5, 1 vote

  1. phamthanhliem

    phamthanhliem Member

    Bài viết:
    296
    Likes :
    35
    Các bạn giúp mình với:
    Đây là giao diện khi mình tải đính kèm:
    Untitled

    Và đây là lỗi trong admincp:
    Untitled

    Còn đây là lỗi:
    Mã:
    ErrorException: copy(/***/***/***/***/***/internal_data/attachments/0/15-d65e82a950974c1053d9c82578fb5aa2.data): failed to open stream: Permission denied - library/XenForo/Helper/File.php:253
    Generated By: TraiAnhHung, 7 phút trước
    Stack Trace
    #0 [internal function]: XenForo_Application::handlePhpError(2, 'copy(/***/***.', '/***/***/web...', 253, Array)
    #1 /***/***/***/***/***/library/XenForo/Helper/File.php(253): copy('/tmp/phpH1PYSx', '/home/admin/web...')
    #2/***/***/***/***/***/library/XenForo/DataWriter/AttachmentData.php(264): XenForo_Helper_File::safeRename('/tmp/phpH1PYSx', '/home/admin/web...')
    #3 /***/***/***/***/***/library/XenForo/DataWriter/AttachmentData.php(223): XenForo_DataWriter_AttachmentData->_moveFile('/tmp/phpH1PYSx', '/home/admin/web...')
    #4 /***/***/***/***/***/public_html/library/XenForo/DataWriter/AttachmentData.php(143): XenForo_DataWriter_AttachmentData->_writeAttachmentFile('/tmp/phpH1PYSx', Array)
    #5 /***/***/***/***/***/library/XenForo/DataWriter.php(1409): XenForo_DataWriter_AttachmentData->_postSave()
    #6 /***/***/***/***/***/library/XenForo/Model/Attachment.php(524): XenForo_DataWriter->save()
    #7 /***/***/***/***/***/library/XenForo/ControllerPublic/Attachment.php(201): XenForo_Model_Attachment->insertUploadedAttachmentData(Object(XenForo_Upload), 1)
    #8 /***/***/***/***/***/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Attachment->actionDoUpload()
    #9 /***/***/***/***/***/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #10 /***/***/***/***/***/index.php(13): XenForo_FrontController->run()
    #11 {main}
    Request State
    array(3) {
      ["url"] => string(104) "http://cuocsongit.org/attachments/do-upload.json?hash=84f9222109d6476986316e5422f1821a&content_type=post"
      ["_GET"] => array(2) {
        ["hash"] => string(32) "84f9222109d6476986316e5422f1821a"
        ["content_type"] => string(4) "post"
      }
      ["_POST"] => array(7) {
        ["Filename"] => string(36) "7ffdd2e94c418d1e8b2581b83a2_prev.png"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfSessionId"] => string(32) "875096bbecdf862b04f502117913469b"
        ["_xfToken"] => string(8) "********"
        ["content_data"] => array(1) {
          ["thread_id"] => string(4) "1972"
        }
        ["_xfResponseType"] => string(4) "json"
        ["Upload"] => string(12) "Submit Query"
      }
    }
    
     
    Đang tải...
  2. phamthanhliem

    phamthanhliem Member

    Bài viết:
    296
    Likes :
    35
  3. VXF

    VXF Be like no other .. Staff Member

    Bài viết:
    1,277
    Likes :
    2,175
    Kiểm tra lại permission các thư mục data và internal_data bạn nhé. => CHMOD 777
     
    phamthanhliem thích bài này.
comments powered by Disqus

Chia sẻ trang này

Đang tải...