XF 2.1 Unable to delete forums and subforums

entelechy

Active member
Today I've changed the domain name for the forum I'm using, and am working though resetting much of the backend.

I've been able to create new forums in the ACP, as well as move them.. but I am currently unable to delete them. This is the error message I'm getting whenever I try, any help would be very much appreciated!


ErrorException: [E_WARNING] file_put_contents(/var/www/et/html/internal_data/code_cache/templates/l1/s0/public/th_nodeStyling_nodes.less.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 595
  9. League\Flysystem\MountManager->put() in src/XF/Util/File.php at line 197
  10. XF\Util\File::writeToAbstractedPath() in src/XF/Service/Template/Compile.php at line 146
  11. XF\Service\Template\Compile->writeCompiled() in src/XF/Service/Template/Compile.php at line 43
  12. XF\Service\Template\Compile->recompile() in src/XF/Entity/Template.php at line 433
  13. XF\Entity\Template->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1208
  14. XF\Mvc\Entity\Entity->save() in src/addons/ThemeHouse/Nodes/Repository/NodeStyling.php at line 177
  15. ThemeHouse\Nodes\Repository\NodeStyling->buildNodeStylingTemplate() in src/addons/ThemeHouse/Nodes/Service/NodeStyling/Cache.php at line 172
  16. ThemeHouse\Nodes\Service\NodeStyling\Cache->updateNodeStylingCache() in src/addons/ThemeHouse/Nodes/Service/NodeStyling/Cache.php at line 75
  17. ThemeHouse\Nodes\Service\NodeStyling\Cache->rebuildCache() in src/addons/ThemeHouse/Nodes/Repository/NodeStyling.php at line 142
  18. ThemeHouse\Nodes\Repository\NodeStyling->rebuildNodeStylingCache() in src/addons/ThemeHouse/Nodes/XF/Entity/Node.php at line 62
  19. ThemeHouse\Nodes\XF\Entity\Node->_postDelete() in src/XF/Mvc/Entity/Entity.php at line 1580
  20. XF\Mvc\Entity\Entity->delete() in src/XF/Admin/Controller/AbstractNode.php at line 117
  21. XF\Admin\Controller\AbstractNode->nodeDelete() in src/XF/Admin/Controller/AbstractNode.php at line 134
  22. XF\Admin\Controller\AbstractNode->actionDelete() in src/XF/Mvc/Dispatcher.php at line 321
  23. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
  24. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
  25. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
  26. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
  27. XF\App->run() in src/XF.php at line 390
  28. XF::runApp() in admin.php at line 13
 
I read th_nodes in the error also it says permission denied.

It means some of the files in internal_data directory needs to be chmod 777.

Just chmod the whole folder with its subdirectories to 0777 and I assume it will work then.
 
I read th_nodes in the error also it says permission denied.

It means some of the files in internal_data directory needs to be chmod 777.

Just chmod the whole folder with its subdirectories to 0777 and I assume it will work then.

Damn you're a good human being. Thanks very much!
 
  • Like
Reactions: sbj
Top Bottom