XF 2.0 Error log

JoyFreak

Well-known member
Trying to edit a template but getting this error:

  • ErrorException: [E_WARNING] file_put_contents(/home/admin/web/gnonline.net/public_html/internal_data/code_cache/templates/l1/s66/public/thread_list_macros.php): failed to open stream: Permission denied
  • src/vendor/league/flysystem/src/Adapter/Local.php:196
  • Generated by: Savage
  • Aug 28, 2018 at 11:02 AM
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fil...', '/home/admin/web...', 196, Array)
#1 src/vendor/league/flysystem/src/Adapter/Local.php(196): file_put_contents('/home/admin/web...', '<?php\n// FROM H...', 2)
#2 src/vendor/league/flysystem/src/Filesystem.php(98): League\Flysystem\Adapter\Local->update('templates/l1/s6...', '<?php\n// FROM H...', Object(League\Flysystem\Config))
#3 [internal function]: League\Flysystem\Filesystem->put('templates/l1/s6...', '<?php\n// FROM H...', Object(League\Flysystem\Config))
#4 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(431): call_user_func_array('parent::put', 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 [internal function]: League\Flysystem\EventableFilesystem\EventableFilesystem->put('templates/l1/s6...', '<?php\n// FROM H...', Array)
#8 src/vendor/league/flysystem/src/MountManager.php(269): call_user_func_array(Array, Array)
#9 src/vendor/league/flysystem/src/MountManager.php(179): League\Flysystem\MountManager->invokePluginOnFilesystem('put', Array, 'code-cache')
#10 src/XF/Util/File.php(113): League\Flysystem\MountManager->__call('put', Array)
#11 src/XF/Service/Template/Compile.php(132): XF\Util\File::writeToAbstractedPath('code-cache://te...', '<?php\n// FROM H...')
#12 src/XF/Service/Template/Compile.php(29): XF\Service\Template\Compile->writeCompiled(Object(XF\Entity\Template), 'code-cache://te...', 'return array('m...')
#13 src/XF/Entity/Template.php(428): XF\Service\Template\Compile->recompile(Object(XF\Entity\Template))
#14 src/XF/Mvc/Entity/Entity.php(1145): XF\Entity\Template->_postSave()
#15 src/XF/Mvc/FormAction.php(69): XF\Mvc\Entity\Entity->save(true, false)
#16 src/XF/Mvc/FormAction.php(159): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#17 src/XF/Admin/Controller/Template.php(141): XF\Mvc\FormAction->run()
#18 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Template->actionSave(Object(XF\Mvc\ParameterBag))
#19 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Template', 'Save', 'json', Object(XF\Mvc\ParameterBag), 'templates', Object(XF\Admin\Controller\Template), NULL)
#20 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#21 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#22 src/XF.php(328): XF\App->run()
#23 admin.php(13): XF::runApp('XF\\Admin\\App')
#24 {main}
 
Back
Top Bottom