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.

PATH Variable Won't Update

June 17, 2011 11:25pm

Subscribe [3]
  • #1 / Jun 17, 2011 11:25pm

    Narthex

    83 posts

    I have moved my site to a different domain name.  I went into General Configuration and changed the various settings that were supposed to change all the {path} variables in my site, but none of them are changing!

    I can’t find anywhere else that I need to change this.

    Is it a server cache thing?  What can I do to make this right?

  • #2 / Jun 18, 2011 12:56pm

    Narthex

    83 posts

    More information:

    So I changed the sitewide url variable to cnn.com, just to see what would change, and a number of links within the control panel are responding, like the “Expression Engine” link at the upper left (in my 1.6.7) and a few others.

    But in my site frontend I have nearly 100 PATH variables that are stuck on my previous domain name and not responding…

  • #3 / Jun 20, 2011 8:17am

    Sue Crocker

    26054 posts

    Hi, Narthex.

    What exactly do you have in your path variables? Can you give me an example?

  • #4 / Jun 20, 2011 5:38pm

    Narthex

    83 posts

    I’m using it as described in the docs, I’m pretty sure:

    <scrApt type="text/javascript" src="{path='weblog/i_scripts_hoverintent.js'}">
    
                  (scrapt = script) and
    
    <a href="http://{title_permalink=weblog/article_discussions}class=discussions">{title}</a><span> 
    </span>

    I was also using the StyleSheet shortcut code, which also was pulling from the Path section in Admin > Control Panel.

    When I open the site in my browser and go to “View Code” these variables end up parsed with the old domain name, not the new one that I put into the Control Panel.

    BUT, certain variables do seem to be pulling the new domain name, just not within the front side of the site.  Backend things such as Lost Password links direct you to the new domain, while they used to point to the old domain before I changed the Control Panel.

    Incidentally, I did update to EE 1.7 from 1.6.7 and the update did not affect this problem.

  • #5 / Jun 20, 2011 5:45pm

    Sue Crocker

    26054 posts

    See that path=‘weblog/i_scripts_hoverintent.js ? That looks off to me.

    You’d instead have something like scr=”/i_scripts_hoverintent.js”

  • #6 / Jun 20, 2011 5:47pm

    Narthex

    83 posts

    The code as I wrote it does pull the domain name from somewhere, though.  When I look at “View Code” in the browser on the rendered site the old domain gets tossed in there up to the index.php.  Then the rest in the code line—weblog/i_scripts_hoverintent.js—gets added on.

    Also, how would I code the permalink code in the way you mention?  Title_permalink to link to articles is not working, but rather putting in the old domain name.

  • #7 / Jun 20, 2011 5:52pm

    Narthex

    83 posts

    I get this in the user guide as an example…

    <a href="http://{path=channel/archives}">My Archives Page</a>

    It’s found on this page:  http://ellislab.com/expressionengine/user-guide/templates/globals/path.html

  • #8 / Jun 21, 2011 3:06pm

    Brandon Jones

    5500 posts

    Narthex,

    Check your site’s config.php and path.php files to ensure you’ve updated their settings with the correct domain as well.

  • #9 / Jul 08, 2011 12:00pm

    Narthex

    83 posts

    That did it!  I had changed config.php, but I hadn’t even thought to consider path.php.  Thanks a bunch.

  • #10 / Jul 08, 2011 3:11pm

    Brandon Jones

    5500 posts

    Thanks Narthex. Glad that was it!

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

ExpressionEngine News!

#eecms, #events, #releases