1. 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

Discussion in 'Troubleshooting and Problems' started by TheComputerGuy, Sep 7, 2014.

  1. TheComputerGuy

    TheComputerGuy Active Member

    PHP:
    Server Error

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

    XenForo_Application
    ::handlePhpError()
    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
     
  2. TheComputerGuy

    TheComputerGuy Active Member

    the one line
    Makes me think it's permission issue in the templates folder.
     
  3. TheComputerGuy

    TheComputerGuy Active Member

    I did end up
    find templates -type f -exec chmod 777 {} \;
    It worked out to be the problem.
     
  4. Tracy Perry

    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)
    Code:
    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
    Code:
    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.
     

Share This Page