MG 1.1 Photopost import error

Alpha1

Well-known member
ON importing from Photopost Pro I am encountering this error:

Server Error Log
Error Info
ErrorException: imagejpeg(): gd-jpeg: JPEG library reports unrecoverable error: - library/XenGallery/Helper/Image.php:327
Generated By: Alfa1, 2 minutes ago

Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'imagejpeg(): gd...', '/home/...', 327, Array)
#1 /library/XenGallery/Helper/Image.php(327): imagejpeg(Resource id #12, '/home/...', 90)
#2 /library/XenGallery/Model/Importers.php(204): XenGallery_Helper_Image->resize(400, '300', 'crop')
#3 /library/XenGallery/Importer/PhotopostVb.php(749): XenGallery_Model_Importers->importMedia(13406, '/home/...', '', Array, Array, Array)
#4 /library/XenGallery/Importer/PhotopostVb.php(620): XenGallery_Importer_PhotopostVb->_importMedia(Array, Array)
#5 /library/XenForo/Importer/Abstract.php(124): XenGallery_Importer_PhotopostVb->stepMedia(13405, Array)
#6 /library/XenForo/ControllerAdmin/Import.php(189): XenForo_Importer_Abstract->runStep(Object(Waindigo_ImportTools_Extend_XenForo_ControllerAdmin_Import), Object(XenForo_ImportSession), 'media', 13405, Array)
#7 /library/XenForo/ControllerAdmin/Import.php(137): XenForo_ControllerAdmin_Import->_runStep(Object(XenGallery_Importer_PhotopostVb), Object(XenForo_ImportSession), 'media', 13405, Array)
#8 /library/Waindigo/ImportTools/Extend/XenForo/ControllerAdmin/Import.php(16): XenForo_ControllerAdmin_Import->actionImport()
#9 /library/XenForo/FrontController.php(351): Waindigo_ImportTools_Extend_XenForo_ControllerAdmin_Import->actionImport()
#10 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /admin.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
["url"] => string(50) "https://site.eu/admin.php?import/import"
["_GET"] => array(1) {
["import/import"] => string(0) ""
}
["_POST"] => array(1) {
["_xfToken"] => string(8) "********"
}
}


Does anyone know what could have caused this?
Image 13405 imported well and image 13406 doesn't seem special.
 
This is one of those occasional unfortunate cases where there's not much we can do. We've seen this sometimes where there is a bug within PHP or GD or indeed the image is actually corrupted, even though it may appear to be valid.

All I can recommend is removing the image from the source DB or adding a line or two of code within the importer to skip it.
 
I reran the importer and it went fine. I think this is an unrelated hiccup. Due to the import tests my private cloud needed an additional disk which was added by the host during the import. That might have caused the hiccup as the time seems close enough.

Thanks!
 
Back
Top Bottom