XF 1.5 Invalid SOS parameters for sequential JPEG

dutchbb

Well-known member
Got this error today on php 7.1

Any idea what it could be? Invalid image maybe like stated here? https://xenforo.com/community/threads/invalid-sos-parameters-for-sequential-jpeg.126256/

Code:
ErrorException: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Invalid SOS parameters for sequential JPEG - library/XenForo/Image/Gd.php:78
Gegenereerd Door: Imimquorn, 21 minuten geleden
Stack Trace #0 [internal function]: XenForo_Application::handlePhpError(8, 'imagecreatefrom...', '/home/bodyforum...', 78, Array) #1 /home/bodyforum/public_html/library/XenForo/Image/Gd.php(78): imagecreatefromjpeg('/tmp/phpGzCGQ9') #2 /home/bodyforum/public_html/library/XenForo/Image/Abstract.php(254): XenForo_Image_Gd::createFromFileDirect('/tmp/phpGzCGQ9', 2) #3 /home/bodyforum/public_html/library/XenForo/Upload.php(274): XenForo_Image_Abstract::createFromFile('/tmp/phpGzCGQ9', 2) #4 /home/bodyforum/public_html/library/XenForo/Upload.php(320): XenForo_Upload->_checkImageState() #5 /home/bodyforum/public_html/library/XenForo/Upload.php(154): XenForo_Upload->_checkForErrors() #6 /home/bodyforum/public_html/library/XenForo/ControllerPublic/Attachment.php(201): XenForo_Upload->isValid() #7 /home/bodyforum/public_html/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Attachment->actionDoUpload() #8 /home/bodyforum/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch)) #9 /home/bodyforum/public_html/index.php(13): XenForo_FrontController->run() #10 {main}Aanvraagstatus array(3) {  ["url"] => string(112) "https://forum.bodybuilding.nl/attachments/do-upload.json?hash=7a7208167853a2f0ae3895d53d96a970&content_type=post"  ["_GET"] => array(2) {    ["hash"] => string(32) "7a7208167853a2f0ae3895d53d96a970"    ["content_type"] => string(4) "post"  }  ["_POST"] => array(13) {    ["_xfToken"] => string(8) "********"    ["_xfNoRedirect"] => string(1) "1"    ["_xfResponseType"] => string(4) "json"    ["_xfSessionId"] => string(32) "9d09661d62d3ba0d36d52476197e8198"    ["content_data"] => array(1) {      ["node_id"] => string(2) "16"    }    ["flowChunkNumber"] => string(1) "1"    ["flowChunkSize"] => string(10) "4294967296"    ["flowCurrentChunkSize"] => string(7) "1322610"    ["flowTotalSize"] => string(7) "1322610"    ["flowIdentifier"] => string(26) "1322610-20170927_170705jpg"    ["flowFilename"] => string(19) "20170927_170705.jpg"    ["flowRelativePath"] => string(19) "20170927_170705.jpg"    ["flowTotalChunks"] => string(1) "1"  } }
 
By default, PHP 7.1 should have gd.jpeg_ignore_warning set as 1 by default which should suppress this.

If you look at your site /admin.php?tools/phpinfo and search for gd.jpeg_ignore_warning what value is listed, and are you sure the php info version listed is 7.1 as you'd expect?
 
Interesting. My understanding was that value which is now set as default in PHP 7.1 should suppress that entirely.

Either way, it should be safe to ignore unless it keeps happening with a large majority of uploads.
 
Top Bottom