ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Template changes don't display until synced (msm)

April 04, 2011 12:12pm

Subscribe [3]
  • #1 / Apr 04, 2011 12:12pm

    kellypacker

    138 posts

    I installed MSM and am having a problem with the new site’s template files. Changes to the templates only display on the site after a template sync (they are saved as files). The original site templates update just fine from files.

    The original site’s templates are in:
    /var/www/example.com/system/expressionengine/templates/en

    and the new site’s templates are in:
    /var/www/example.com/system/expressionengine/templates/de

    Both of these folder have the exact same permissions and group/user owners. PHP safe_mode is off.

    The Basepath to Template File Directory for both sites is:
    /var/www/example.com/system/expressionengine/templates/

    Any ideas as to why this is happening? thanks for any help

    EE v2.1.3 build 20101220

  • #2 / Apr 05, 2011 12:05am

    I’m assuming you’re using a config.php that dynamically sets the template file directory. This tends to cause problems with a MSM setup, because the template path includes the document root. So, when viewing the non-default site from the front end, the document root is that of that site, not the one containing the templates, thus the templates can’t be found and updated in the database automatically.

    You have a couple options:

    1) Set the template path manually.

    2) Use a conditional based on the hostname to alter the template file path as needed.

    I’m sure there’s a more elegant solution, but I haven’t dug in enough to figure one out yet.

  • #3 / Apr 05, 2011 12:09am

    kellypacker

    138 posts

    yep fixed it right up. Feel free to close this one. Thanks Jeremy!

  • #4 / Apr 05, 2011 6:16am

    John Henry Donovan

    12339 posts

    Thanks Jeremy. Closing this one out. Feel free as always Kelly to start a new thread if you need to

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases