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

XF 2.0 Upgrading Issue - Help?

I'm getting this error cascade during my upgrade to 2.0

ErrorException: [E_WARNING] fopen(/home/wgawrite/public_html/inside/data/avatars/l/0/27.jpg): failed to open stream: Permission denied in src/vendor/league/flysystem/src/Adapter/Local.php at line 151
  1. XF::handlePhpError()
  2. fopen() in src/vendor/league/flysystem/src/Adapter/Local.php at line 151
  3. League\Flysystem\Adapter\Local->writeStream() in src/vendor/league/flysystem/src/Adapter/Local.php at line 186
  4. League\Flysystem\Adapter\Local->updateStream() in src/vendor/league/flysystem/src/Filesystem.php at line 118
  5. League\Flysystem\Filesystem->putStream()
  6. call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
  7. League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
  8. League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 71
  9. League\Flysystem\EventableFilesystem\EventableFilesystem->putStream()
  10. call_user_func_array() in src/vendor/league/flysystem/src/MountManager.php at line 269
  11. League\Flysystem\MountManager->invokePluginOnFilesystem() in src/vendor/league/flysystem/src/MountManager.php at line 179
  12. League\Flysystem\MountManager->__call() in src/XF/Util/File.php at line 101
  13. XF\Util\File::copyFileToAbstractedPath() in src/XF/Service/User/Avatar.php at line 386
  14. XF\Service\User\Avatar->createOSizeAvatarFromL() in src/XF/Job/Upgrade/UserAvatar200.php at line 65
  15. XF\Job\Upgrade\UserAvatar200->run() in src/XF/Job/Atomic.php at line 38
  16. XF\Job\Atomic->run() in src/XF/Job/Manager.php at line 241
  17. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 187
  18. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 138
  19. XF\Job\Manager->runUnique() in src/XF/Install/Controller/AbstractController.php at line 24
  20. XF\Install\Controller\AbstractController->manualJobRunner() in src/XF/Install/Controller/Upgrade.php at line 243
  21. XF\Install\Controller\Upgrade->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 249
  22. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
  23. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
  24. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1879
  25. XF\App->run() in src/XF.php at line 328
  26. XF::runApp() in install/index.php at line 14
Any thoughts on how to solve this?


XenForo developer
Staff member
You need to recursively chmod your data and internal_data directories to 0777 to ensure that XF can read and write to all files there.
Yeah, I did that... but as it turns out, it wasn't taking. Had to speak with the host, and they chmodded it for me... and probably chowned it too. Thanks. All's working now!