• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 RC2 Random Issues

Server Error

file_put_contents(/home/nginx/domains/xxxx.com/public/internal_data/templates/S.1,L.1,register_form.php): failed to open stream: Permission denied

file_put_contents() in XenForo/Template/FileHandler.php at line 95
XenForo_Template_FileHandler->_saveTemplate() in XenForo/Template/FileHandler.php at line 50
XenForo_Template_FileHandler::save() in XenForo/Model/Template.php at line 1694
XenForo_Model_Template->_insertCompiledTemplateRecord() in XenForo/Model/Template.php at line 1616
XenForo_Model_Template->compileAndInsertParsedTemplate() in XenForo/Deferred/TemplatePartialCompile.php at line 55
XenForo_Deferred_TemplatePartialCompile->execute() in XenForo/Model/Deferred.php at line 256
XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 390
XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 335
XenForo_Model_Deferred->run() in XenForo/ControllerAdmin/Tools.php at line 159
XenForo_ControllerAdmin_Tools->actionRunDeferred() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/nginx/domains/xxxxx.com/public/admin.php at line 13
I upgraded successfully using the CLI to 1.4RC2.

However, when I uninstalled a few addons, and attempted to run the sitemap.

I get this error

Tracy Perry

Well-known member
Usually when you see a problem like that involving /data or /internal_data, a permission problem is exactly what it is. If you have ssh access it's easy to just do a (in my case, since my http server owns all the files in the forum directory)
find /path_to/data -type f -name '*' -exec chmod 664 {} \;
for files
and then CD into the internal_data and then data and issue a
find . -type d -print0 | xargs -0 chmod 775
That way it gives my HTTP server (and the http server group) read/write permission to the files/directories.