XF 2.2 failed to open stream: No such file or directory src/vendor/league/flysystem/src/Adapter/Local.php:135 What is the solution?

bat

Member
today i upgraded my xenfero forum. after i did it, this error started to appear, i couldn't understand why it happened, can you help me?

This :

#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fil...', '/var/www/vhosts...', 135, Array)
#1 src/vendor/league/flysystem/src/Adapter/Local.php(135): file_put_contents('/var/www/vhosts...', '<?php
// FROM H...', 2)
#2 src/vendor/league/flysystem/src/Filesystem.php(102): League\Flysystem\Adapter\Local->write('templates/l0/s2...', '<?php
// FROM H...', Object(League\Flysystem\Config))
#3 [internal function]: League\Flysystem\Filesystem->put('templates/l0/s2...', '<?php
// FROM H...', Object(League\Flysystem\Config))
#4 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(431): call_user_func_array('League\\Flysyste...', Array)
#5 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(395): League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod('put', Array)
#6 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(57): League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall('put', Array)
#7 src/vendor/league/flysystem/src/MountManager.php(597): League\Flysystem\EventableFilesystem\EventableFilesystem->put('templates/l0/s2...', '<?php
// FROM H...', Array)
#8 src/XF/Util/File.php(225): League\Flysystem\MountManager->put('templates/l0/s2...', '<?php
// FROM H...', Array)
#9 src/XF/Service/Template/Compile.php(146): XF\Util\File::writeToAbstractedPath('code-cache://te...', '<?php
// FROM H...')
#10 src/XF/Service/Template/Compile.php(43): XF\Service\Template\Compile->writeCompiled(Object(XF\Entity\Template), 'code-cache://te...', 'return array(
'...')
#11 src/XF/Job/TemplateRebuild.php(87): XF\Service\Template\Compile->recompile(Object(XF\Entity\Template))
#12 src/XF/Job/Atomic.php(40): XF\Job\TemplateRebuild->run(8)
#13 src/XF/Job/Manager.php(260): XF\Job\Atomic->run(8)
#14 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#15 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#16 src/XF/Admin/Controller/Tools.php(141): XF\Job\Manager->runQueue(true, 8)
#17 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#18 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#19 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#20 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#21 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#22 src/XF.php(524): XF\App->run()
#23 admin.php(13): XF::runApp('XF\\Admin\\App')
#24 {main}
 
Any missing, corrupt, or changed files will need to be uploaded again.

If that doesn't resolved it then permissions, ownership, or something else on the server is involved.
 
Back
Top Bottom