- Joined
- Oct 29, 2019
- Messages
- 90
- Points
- 28
Reputation:
I'm not sure what I did, but now when trying to install plugins, I get this or a similar server error. I can't figure it out. Assistance would be most appreciated.
Code:
ErrorException: [E_WARNING] file_put_contents(/var/www/vhosts/xxx/httpdocs/internal_data/code_cache/templates/l1/s0/public/message_macros.php): Failed to open stream: Permission denied src/vendor/league/flysystem/src/Adapter/Local.php:199
Generated by: Drac Morbis Aug 24, 2024 at 5:54 AM
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fil...', '/var/www/vhosts...', 199)
#1 src/vendor/league/flysystem/src/Adapter/Local.php(199): file_put_contents('/var/www/vhosts...', '<?php
// FROM H...', 2)
#2 src/vendor/league/flysystem/src/Filesystem.php(99): League\Flysystem\Adapter\Local->update('templates/l1/s0...', '<?php
// FROM H...', Object(League\Flysystem\Config))
#3 [internal function]: League\Flysystem\Filesystem->put('templates/l1/s0...', '<?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/l1/s0...', '<?php
// FROM H...', Array)
#8 src/XF/Util/File.php(217): League\Flysystem\MountManager->put('templates/l1/s0...', '<?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/Entity/Template.php(435): XF\Service\Template\Compile->recompile(Object(XF\Entity\Template))
#12 src/XF/Mvc/Entity/Entity.php(1277): XF\Entity\Template->_postSave()
#13 src/XF/Entity/TemplateModification.php(95): XF\Mvc\Entity\Entity->save()
#14 src/XF/Entity/TemplateModification.php(145): XF\Entity\TemplateModification->reparseModification()
#15 src/XF/Mvc/Entity/Entity.php(1277): XF\Entity\TemplateModification->_postSave()
#16 src/XF/AddOn/DataType/TemplateModification.php(79): XF\Mvc\Entity\Entity->save(true, false)
#17 src/XF/Job/AddOnData.php(110): XF\AddOn\DataType\TemplateModification->importAddOnData('Andy/ThreadStar...', Object(SimpleXMLElement), 0, 8)
#18 src/XF/Job/Manager.php(260): XF\Job\AddOnData->run(8)
#19 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#20 src/XF/Job/Manager.php(118): XF\Job\Manager->runJobEntry(Array, 8)
#21 src/XF/Admin/Controller/Tools.php(122): XF\Job\Manager->runByIds(Array, 8)
#22 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#23 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Admin\Controller\Tools), NULL)
#24 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Admin\Controller\Tools), NULL)
#25 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#26 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#27 src/XF.php(524): XF\App->run()
#28 admin.php(13): XF::runApp('XF\\Admin\\App')
#29 {main}
Request state
array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(47) "https://xxxx/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(137) "https://xxxx/admin.php?add-ons/xxxxxner/finalize&t=1724496843%2C0495ccb0771a600428c6aab1da43f3fd&a=install"
["_xfToken"] => string(8) "********"
["only_ids"] => string(4) "7058"
}
}