XF 2.3 Almost done with an import from phpBB 3.2.1 and then this happened...

GilmourD

Member
Licensed customer
Code:
RuntimeException: Unable to copy file
/var/www/offsetguitars.com/public_html/forums/files/ to internal-
data://attachments/0/1-d82d1345d9807d06b96ba66ae4b2c303.data in
src/XF/Util/File.php at line 226
    1. XF\Util\File::copyFileToAbstractedPath() in src/XF/Service/Attachment/PreparerService.php at line 96
    2. XF\Service\Attachment\PreparerService->insertDataFromFile() in src/XF/Import/Data/Attachment.php at line 92
    3. XF\Import\Data\Attachment->write() in src/XF/Import/Data/AbstractData.php at line 132
    4. XF\Import\Data\AbstractData->save() in src/addons/XFI/Import/Importer/PhpBb.php at line 1551
    5. XFI\Import\Importer\PhpBb->stepAttachments() in src/XF/Import/Runner.php at line 246
    6. XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 61
    7. XF\Import\Runner->run() in src/XF/Admin/Controller/ImportController.php at line 247
    8. XF\Admin\Controller\ImportController->actionRun() in src/XF/Mvc/Dispatcher.php at line 362
    9. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
    10. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
    11. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
    12. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
    13. XF\App->run() in src/XF.php at line 814
    14. XF::runApp() in admin.php at line 15

It's on Step 9, which appears to be Thread Polls. In phpBB's file structure, there's just a .htaccess file and an index.html, so my assumption is that it's looking for something that SHOULD be there but isn't.
 
Figured it out!

I wiped things out and did a fresh install then ran the importer again, but from the command line, and the errors were slightly different (Symfony in the later steps instead of Mvc), but I also had a chance to go through the .php files this morning, which I didn't have time to do yesterday.

It was looking for something that should have been there. Apparently the forum had two attachments in an early test post from years before I even joined as a member but then attachments were turned off, but the /files/ directory was empty. I reenabled attachments, deleted them from the associated post (which errored out about resyncing attachments because there were no files) and re-ran the import.

All is good now!

Figured I'd fill in some details just in case somebody else ever has the same problem and comes across this, instead of leaving somebody wondering. 😅
 
Back
Top Bottom