XF 2.2 This group does not have any style properties

Renegade

Well-known member
I get this error when I try to access the style properties on a newly added child style to the XF default style (or any style). What am I doing wrong?
 

Renegade

Well-known member
Disabled all add-ons. It seems to be some permission issue on the test install.

  • ErrorException: [E_WARNING] file_put_contents(/opt/bitnami/apache2/htdocs/community/internal_data/code_cache/templates/l1/s0/public/EWRblock_Facebook.css.php): failed to open stream: Permission denied
  • src/vendor/league/flysystem/src/Adapter/Local.php:199
 

Brogan

XenForo moderator
Staff member
Ensure the data and internal_data directories have recursive 0777 permissions.

Other than that, it could be an ownership issue so may require chown'ing.

Your host can assist with that.
 

Renegade

Well-known member
Ok so this problem has started after upgrading to 2.2 only. I do not face this issue on the 2.1 setup where I have installed add-ons and themes. Now I cannot install, enable, disable add-ons or install new themes without getting such errors.

Guess its time to rollback the production to 2.1 till this is sorted out.

Installing add-ons:
ErrorException: [E_WARNING] file_put_contents(/opt/bitnami/apache2/htdocs/community/internal_data/code_cache/phrase_groups/l1/widget.php): failed to open stream: Permission denied in src/vendor/league/flysystem/src/Adapter/Local.php at line 199
  1. XF::handlePhpError()
  2. file_put_contents() in src/vendor/league/flysystem/src/Adapter/Local.php at line 199
  3. League\Flysystem\Adapter\Local->update() in src/vendor/league/flysystem/src/Filesystem.php at line 99
  4. League\Flysystem\Filesystem->put()
  5. call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
  6. League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
  7. League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 57
  8. League\Flysystem\EventableFilesystem\EventableFilesystem->put() in src/vendor/league/flysystem/src/MountManager.php at line 597
  9. League\Flysystem\MountManager->put() in src/XF/Util/File.php at line 197
  10. XF\Util\File::writeToAbstractedPath() in src/XF/Service/Phrase/Group.php at line 49
  11. XF\Service\Phrase\Group->compilePhraseGroup() in src/XF/Entity/Phrase.php at line 212
  12. XF\Entity\Phrase->XF\Entity\{closure}() in src/XF.php at line 317
  13. XF::triggerRunOnce() in src/XF/Mvc/Dispatcher.php at line 156
  14. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  15. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
  16. XF\App->run() in src/XF.php at line 464
  17. XF::runApp() in admin.php at line 13


Installing Themes
  • ErrorException: [E_WARNING] file_put_contents(/opt/bitnami/apache2/htdocs/community/internal_data/code_cache/templates/l1/s0/public/EWRblock_Facebook.css.php): failed to open stream: Permission denied
  • src/vendor/league/flysystem/src/Adapter/Local.php:199
  • Generated by:
  • Oct 6, 2020 at 11:42 PM

Stack trace​

#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fil...', '/opt/bitnami/ap...', 199, Array)
#1 src/vendor/league/flysystem/src/Adapter/Local.php(199): file_put_contents('/opt/bitnami/ap...', '<?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('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 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(197): 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/Job/TemplateRebuild.php(87): XF\Service\Template\Compile->recompile(Object(XF\Entity\Template))
#12 src/XF/Job/Atomic.php(38): XF\Job\TemplateRebuild->run(G)
#13 src/XF/Job/Manager.php(258): XF\Job\Atomic->run(G)
#14 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, G)
#15 src/XF/Job/Manager.php(116): XF\Job\Manager->runJobEntry(Array, G)
#16 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#17 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#18 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#19 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#20 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#21 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#22 src/XF.php(464): XF\App->run()
#23 admin.php(13): XF::runApp('XF\\Admin\\App')
#24 {main}
 
Top