XF 2.2 Error stack trying to upgrade to 2.2.1

Jared26

Member
I'm having an issue trying to upgrade my forum to 2.2.1 after a few days of having to re-install my forum due to some server issues. I am currently getting this error stack:

ErrorException: [E_WARNING] file_put_contents(/home/jared26/public_html/community/internal_data/code_cache/templates/l1/s14/public/_media_site_embed_applemusic.php): failed to open stream: Permission denied in src/vendor/league/flysystem/src/Adapter/Local.php at line 199
  1. XF::handlePhpError()
  2. file_put_contents() in src/vendor/league/flysystem/src/Adapter/Local.php at line 199
  3. League\Flysystem\Adapter\Local->update() in src/vendor/league/flysystem/src/Filesystem.php at line 99
  4. League\Flysystem\Filesystem->put()
  5. call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
  6. League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
  7. League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 57
  8. League\Flysystem\EventableFilesystem\EventableFilesystem->put() in src/vendor/league/flysystem/src/MountManager.php at line 597
  9. League\Flysystem\MountManager->put() in src/XF/Util/File.php at line 197
  10. XF\Util\File::writeToAbstractedPath() in src/XF/Service/Template/Compile.php at line 146
  11. XF\Service\Template\Compile->writeCompiled() in src/XF/Service/Template/Compile.php at line 43
  12. XF\Service\Template\Compile->recompile() in src/XF/Entity/Template.php at line 433
  13. XF\Entity\Template->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1266
  14. XF\Mvc\Entity\Entity->save() in src/XF/Mvc/Entity/Entity.php at line 1260
  15. XF\Mvc\Entity\Entity->save() in src/XF/AddOn/DataType/BbCodeMediaSite.php at line 85
  16. XF\AddOn\DataType\BbCodeMediaSite->importAddOnData() in src/XF/Job/AddOnData.php at line 110
  17. XF\Job\AddOnData->run() in src/XF/Job/Atomic.php at line 38
  18. XF\Job\Atomic->run() in src/XF/Job/Manager.php at line 258
  19. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 200
  20. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 151
  21. XF\Job\Manager->runUnique() in src/XF/Install/Controller/AbstractController.php at line 24
  22. XF\Install\Controller\AbstractController->manualJobRunner() in src/XF/Install/Controller/Upgrade.php at line 262
  23. XF\Install\Controller\Upgrade->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 350
  24. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 261
  25. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  26. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  27. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
  28. XF\App->run() in src/XF.php at line 465
  29. XF::runApp() in install/index.php at line 14

Due to a few previous issues and stupid mistakes on my end, I've had to completely re-upload my forum and copy the existing database to a new one in PHPMyAdmin. I'm a lot closer to having my board back than I have been for the past few days but I can't even think straight here at this point and am hoping someone can point me in the right direction. Data and internal data directories are 0777 as well, I have tried on PHP 7.2, 7.3 and 7.4.

Thanks
 
Last edited:
Make sure that the contents of the data/ and internal_data/ directories are also 0777 (recursively). This error indicates that XF failed to write content within those directories.
 
Good call, even though I had set permissions to 777 through Filezilla I took a look again after you mentioned this and realized that I wasn't the owner so after a chown chmod I got past that part. Now the problem is the upgrade is extremely slow after about 15 minutes I am at importing master data (phrases) at 0.1%
 
Top Bottom