• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Import of attachments: Issues (vB4 -> XF via importer)

#1
Dear all,

i had a bad issue with the vB4 importer to migrate my attachments from vB4 to the latest version of XF.
The importer gives me at 64% a Server Error:

Server Error
Illegal offset type in isset or empty

  1. XenForo_Application::handlePhpError() in XenForo/Image/Abstract.php at line 154
  2. XenForo_Image_Abstract->transformByExif() in XenForo/Upload.php at line 283
  3. XenForo_Upload->_checkImageState() in XenForo/Upload.php at line 167
  4. XenForo_Upload->isImage() in XenForo/Model/Attachment.php at line 490
  5. XenForo_Model_Attachment->insertUploadedAttachmentData() in XenForo/Model/Import.php at line 1941
  6. XenForo_Model_Import->importAttachment() in XenForo/Model/Import.php at line 2011
  7. XenForo_Model_Import->importPostAttachment() in XenForo/Importer/vBulletin4x.php at line 131
  8. XenForo_Importer_vBulletin4x->stepAttachments() in XenForo/Importer/Abstract.php at line 124
  9. XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 189
  10. XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 137
  11. XenForo_ControllerAdmin_Import->actionImport() in XenForo/FrontController.php at line 351
  12. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  13. XenForo_FrontController->run() in /xxxxxxx/xxxxxxxx/forum/admin.php at line 13
More information's comes from the Serverlog:

#0 /xxxx/xxxx/forum/library/XenForo/Image/Abstract.php(154): XenForo_Application::handlePhpError(Array)
#1 /xxxx/xxxx/forum/library/XenForo/Upload.php(283): XenForo_Image_Abstract->transformByExif()
#2 /xxxx/xxxx/forum/library/XenForo/Upload.php(167): XenForo_Upload->_checkImageState()
#3 /xxxx/xxxx/forum/library/XenForo/Model/Attachment.php(490): XenForo_Upload->isImage(Object(XenForo_Upload), '2253', Array)
#4 /xxxx/xxxx/forum/library/XenForo/Model/Import.php(1941): XenForo_Model_Attachment->insertUploadedAttachmentData(30994, '001027.jpg', '/kunden/121780_...', '2253', 'post', '137415', 1285956136, Array, Array, 'Was haltet ihr ...')
#5 /xxxx/xxxx/forum/library/XenForo/Model/Import.php(2011): XenForo_Model_Import->importAttachment(30994, '001027.jpg', '/kunden/121780_...', '2253', '137415', 1285956136, Array, Array, 'Was haltet ihr ...')
#6 /xxxx/xxxx/forum/library/XenForo/Importer/vBulletin4x.php(131): XenForo_Model_Import->importPostAttachment(30977, Array)
#7 /xxxx/xxxx/forum/library/XenForo/Importer/Abstract.php(124): XenForo_Importer_vBulletin4x->stepAttachments(Object(XenForo_ControllerAdmin_Import), Object(XenForo_ImportSession), 'attachments', 30977, Array)
#8 /xxxx/xxxx/forum/library/XenForo/ControllerAdmin/Import.php(189): XenForo_Importer_Abstract->runStep(Object(XenForo_Importer_vBulletin4x), Object(XenForo_ImportSession), 'attachments', 30977, Array)
#9 /xxxx/xxxx/forum/library/XenForo/ControllerAdmin/Import.php(137): XenForo_ControllerAdmin_Import->_runStep()
#10 /xxxx/xxxx/forum/library/XenForo/FrontController.php(351): XenForo_ControllerAdmin_Import->actionImport(Object(XenForo_RouteMatch))
#11 /xxxx/xxxx/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch()
#12 /xxxx/xxxx/forum/admin.php(13): XenForo_FrontController->run()
#13 {main}

Any ideas to fix that are much appreciated.

Thank you in advance, guys!
 

Jake Bunce

XenForo moderator
Staff member
#2
It looks like attachmentid 30994 in vB4 is causing problems. You could try removing that attachment from vB's attachment table.
 
#3
Perfect, it worked now.
For the record: I have deleted the table with the "30994" attachment and the import is now done with no issues.

Thank you for your support, Jake!