- ErrorException: [E_WARNING] file_put_contents(/home/sites/avforums/public_html/internal_data/code_cache/templates/l1/s0/public/_media_site_embed_applemusic.php): failed to open stream: Permission denied
- src/vendor/league/flysystem/src/Adapter/Local.php:196
- Generated by: Stuart Wright
- Apr 9, 2018 at 10:39 PM
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fil...', '/home/sites/avf...', 196, Array)
#1 src/vendor/league/flysystem/src/Adapter/Local.php(196): file_put_contents('/home/sites/avf...', '<?php\n// FROM H...', 2)
#2 src/vendor/league/flysystem/src/Filesystem.php(98): League\Flysystem\Adapter\Local->update('templates/l1/s0...', '<?php\n// FROM H...', Object(League\Flysystem\Config))
#3 [internal function]: League\Flysystem\Filesystem->put('templates/l1/s0...', '<?php\n// FROM H...', Object(League\Flysystem\Config))
#4 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(431): call_user_func_array('parent:
ut', 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/s0...', '<?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/Entity/Entity.php(1139): XF\Mvc\Entity\Entity->save(true, false)
#16 src/XF/AddOn/DataType/BbCodeMediaSite.php(85): XF\Mvc\Entity\Entity->save(true, false)
#17 src/XF/Job/AddOnData.php(108): XF\AddOn\DataType\BbCodeMediaSite->importAddOnData('XF', Object(SimpleXMLElement), 0, 7.5552520751953)
#18 src/XF/Job/Atomic.php(38): XF\Job\AddOnData->run(7.5552520751953)
#19 src/XF/Job/Manager.php(241): XF\Job\Atomic->run(8)
#20 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 8)
#21 src/XF/Job/Manager.php(138): XF\Job\Manager->runJobEntry(Array, 8)
#22 src/XF/Install/Controller/AbstractController.php(24): XF\Job\Manager->runUnique('xfInstallUpgrad...', 8)
#23 src/XF/Install/Controller/Upgrade.php(251): XF\Install\Controller\AbstractController->manualJobRunner('index.php?upgra...', 'index.php?upgra...')
#24 src/XF/Mvc/Dispatcher.php(249): XF\Install\Controller\Upgrade->actionRunJob(Object(XF\Mvc\ParameterBag))
#25 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Upgrade', 'RunJob', 'html', Object(XF\Mvc\ParameterBag), NULL, Object(XF\Install\Controller\Upgrade), NULL)
#26 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#27 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#28 src/XF.php(328): XF\App->run()
#29 install/index.php(14): XF::runApp('XF\\Install\\App')
#30 {main}
Request state
<pre class='xdebug-var-dump' dir='ltr'>
<small>/home/sites/avforums/public_html/src/XF/Debugger.php:28:</small>
<b>array</b> <i>(size=4)</i>
'url' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'/install/index.php?upgrade/run-job'</font> <i>(length=34)</i>
'referrer' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'
https://xf2.avforums.com/install/index.php?upgrade/run'</font> <i>(length=54)</i>
'_GET' <font color='#888a85'>=></font>
<b>array</b> <i>(size=1)</i>
'upgrade/run-job' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'_POST' <font color='#888a85'>=></font>
<b>array</b> <i>(size=3)</i>
'_xfRedirect' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'
https://xf2.avforums.com/install/index.php?upgrade/options'</font> <i>(length=58)</i>
'_xfToken' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'********'</font> <i>(length=8)</i>
'execute' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'1'</font> <i>(length=1)</i>
</pre>