Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2802

[3.3.x] Support Forum • "Error parsing server response" on jpg upload

$
0
0
I have jpg image that, unlike every successful jpg upload to my board, results in this error. I can use an imaging program to resave it in jpg format and it will then upload successfully, but I'd like to diagnose the problem and remedy to prevent future occurrences. I'm running phpBB 3.3.14 in my test environment, and I'm running Xdebug with Sublime Text as my debugger.

Here is my Xdebug stack.

posting.php, line 1045:

Code:

$message_parser->parse_attachments('fileupload', $mode, $forum_id, $submit, $preview, $refresh);
includes/message_parser.php, line 1782, within function parse_attachments:

Code:

// Send the client the attachment data to maintain state$json_response->send(array('data' => $this->attachment_data, 'download_url' => $download_url));
phpbb/json_response.php, line 35, within public function send:

Code:

exit_handler();
includes/functions.php, line 4399, within function exit_handler:

Code:

exit;
I can set a breakpoint at the exit on line 4399 in functions.php, and the error will not yet have occurred; the slider bar is fully to the right. If I execute the exit, the error immediately appears. What code is executed subsequent to this escapes me. I'm assuming that some event fires, but I don't know which - and where to place a breakpoint so I can further diagnose.

Can anyone provide a suggestion?

Thanks
Dan

Statistics: Posted by shortmort37 — Tue Jun 10, 2025 7:57 pm



Viewing all articles
Browse latest Browse all 2802

Trending Articles