MG 1.1 php5-gd Fatal error when importing

AJR

Member
The import stops with Error 500 and the XF-server-error-log says (no entry in the apache error log):

ErrorException: Fatal Error: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x42 0x4d - library/XenGallery/Helper/Image.php:311

How can I find out which VB-File is affected, in order to delete it, or how can I skip the corrupted file?
 
There ist a little tool available for Linux systems called jpeginfo:


apt-get install jpeginfo

cd …./data

find -iname “*.jpg” -print0 | xargs -0 jpeginfo -c | grep -e ERROR


This lists all corrupted JPEGs

When replacing those with a clean dummy JPG the XFMG import continues.
 
Good tactic.

Had I been able to reply sooner, if you retained content IDs during the import you can identify the image it’s stuck on via the database.
 
Top Bottom