Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13550

Invalid JSON response returned when plupload dir is not writable

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.3-RC1
    • Fix Version/s: 3.1.4-RC1
    • Component/s: Styles
    • Labels:
      None

      Description

        Activity

        Hide
        prototech prototech added a comment - - edited

        The problem here is that the files/plupload directory is not writable. When attempting to move the file, a warning is issued resulting in the response being invalid JSON.

         <b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/phpbb/plupload/plupload.php</b> on line <b>329</b>: <b>move_uploaded_file(./files/plupload/9a8d5d4f9fad92630a06d251e7ab7ca4_16391448d817d9ddbfa42c9fbcff3870): failed to open stream: Permission denied</b><br />
         <b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/phpbb/plupload/plupload.php</b> on line <b>329</b>: <b>move_uploaded_file(): Unable to move '/tmp/phpp4oh4V' to './files/plupload/9a8d5d4f9fad92630a06d251e7ab7ca4_16391448d817d9ddbfa42c9fbcff3870'</b><br />
         {"jsonrpc":"2.0","id":"id","error":{"code":103,"message":"Failed to move uploaded file."}}
        

        Show
        prototech prototech added a comment - - edited The problem here is that the files/plupload directory is not writable. When attempting to move the file, a warning is issued resulting in the response being invalid JSON. <b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/phpbb/plupload/plupload.php</b> on line <b>329</b>: <b>move_uploaded_file(./files/plupload/9a8d5d4f9fad92630a06d251e7ab7ca4_16391448d817d9ddbfa42c9fbcff3870): failed to open stream: Permission denied</b><br /> <b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/phpbb/plupload/plupload.php</b> on line <b>329</b>: <b>move_uploaded_file(): Unable to move '/tmp/phpp4oh4V' to './files/plupload/9a8d5d4f9fad92630a06d251e7ab7ca4_16391448d817d9ddbfa42c9fbcff3870'</b><br /> {"jsonrpc":"2.0","id":"id","error":{"code":103,"message":"Failed to move uploaded file."}}

          People

          • Assignee:
            prototech prototech
            Reporter:
            B€RN@RD B€RN@RD
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development