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

uploading attachments results in error: parsing server response.

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.5-RC1
    • Component/s: Posting
    • Labels:
      None
    • Environment:
      PHPBB 3.1.3, PHP 5.6, MySQL 5.0.11,

      Description

      Hi,
      whenever i try to upload a file bigger than 1.5 MB the green loading bar freezes up and i get the following error message. "Error parsing server response." I got all the settings right, post_max_size 96M, memory_limit 128M, upload_max_filesize 96M. All required folders have the rights set to 777. And it still does not work.
      The solution to this issue is: deaktive Java Script. If i load the forum webpage via firefox private session and try to upload a file of 3 MB it works. This issue arises under Windows and Android testet so far in Firefox 37.0.1

      <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/85aebccba29dc821d554ae8c97922d5d_5b46eacfeedb8a919654b4ea81788429de
      /tmp/phptMY8cM): failed to open stream: No such file or directory</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 '/customers/8/4/3/domain.de/tmp/phptMY8cM' to './files
      /plupload/85aebccba29dc821d554ae8c97922d5d_5b46eacfeedb8a919654b4ea81788429de/tmp/phptMY8cM'</b><br
      />
      <b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/phpbb/json_response.php</b> on line <b>29</b>: <b
      >Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions
      .php:3843)</b><br />
      {"jsonrpc":"2.0","id":"id","error":{"code":103,"message":"Hochgeladene Datei konnte nicht verschoben
      werden."}}
      

      Thanks for the help #phpbb @freenode, (grizzo, prototech, elsensee)

        Activity

        Hide
        prototech prototech added a comment -

        <prototech> the valid path would be ./files/plupload/85aebccba29dc821d554ae8c97922d5d_5b46eacfeedb8a919654b4ea81788429de
        <Elsensee> i thought the file couldn't be found?
        <prototech> and it's trying to move it to ./files/plupload/85aebccba29dc821d554ae8c97922d5d_5b46eacfeedb8a919654b4ea81788429de/tmp/phptMY8cM
        note the extra directories at the end
        <prototech> relevant code https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/phpbb/plupload/plupload.php#L298-L307
        <Elsensee> uh okay.. i'm still not sure how to fix this?
        <prototech> ah bleh, I see it, it's the dot
        <prototech> it runs \filespec::get_extension() on '/customers/8/4/3/domain.de/tmp/phptMY8cM
        <Elsensee> omg
        <prototech> get_extension() assumes that anything after the last dot is the file extension

        Show
        prototech prototech added a comment - <prototech> the valid path would be ./files/plupload/85aebccba29dc821d554ae8c97922d5d_5b46eacfeedb8a919654b4ea81788429de <Elsensee> i thought the file couldn't be found? <prototech> and it's trying to move it to ./files/plupload/85aebccba29dc821d554ae8c97922d5d_5b46eacfeedb8a919654b4ea81788429de/tmp/phptMY8cM note the extra directories at the end <prototech> relevant code https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/phpbb/plupload/plupload.php#L298-L307 <Elsensee> uh okay.. i'm still not sure how to fix this? <prototech> ah bleh, I see it, it's the dot <prototech> it runs \filespec::get_extension() on '/customers/8/4/3/domain.de/tmp/phptMY8cM <Elsensee> omg <prototech> get_extension() assumes that anything after the last dot is the file extension

          People

          • Assignee:
            prototech prototech
            Reporter:
            shaefchen shaefchen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development