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.

Server move went wrong - sort of

November 19, 2008 8:35am

Subscribe [4]
  • #1 / Nov 19, 2008 8:35am

    Promise

    2 posts

    Hey

    I moved a test site today from a sub-directory “mysite.com/testsite” to it’s actual server “newsite.com”.

    Everything seem to work fine after changing some settings under general preferences (paths etc), but there’s a problem!
    When I try to navigate to a specific template the index template shows up (with no images though).

    I’ve got 2 major template groups, “web” and “test”, with “test” set as index for the time being. When I try to navigate to http://www.ladidej.com/index.php/web I reach the index page belonging to “test” but without the header image.
    The index page of “web” should display a SWF, in case you want to have a look.

    What did I miss here?

    /A

  • #2 / Nov 19, 2008 10:38am

    Pascal Kriete

    2589 posts

    Is it just a different directory or a completely new server?  It sounds to me like it’s not picking up the path after index.php.  Try adding a question mark after index.php to see if the “web” template will render at all.  The header problem is probably a path issue as well, but it’s impossible to be sure without seeing the site.

    This is probably unrelated, but there is a list of paths that might need updating after moving to a new server in step 7 of this kb entry.  I’d double check those just to make sure.

  • #3 / Nov 19, 2008 12:11pm

    Robin Sowell

    13255 posts

    Agreed- it pulls up (I think) correctly with http://www.ladidej.com/index.php?/web .  Forcing query strings as per the kblog link should get things working.

  • #4 / Nov 19, 2008 6:47pm

    pushloop

    422 posts

    It’s a completely different site.

    It works fine with the added question mark (http://www.ladidej.com/index.php?/web takes me to the SWF), but I don’t see how forcing query strings would help - I tried enabling them but it didn’t do any difference.


    Oh btw, this was me posting the original question up there earlier, logged in with a different account!

    /A

  • #5 / Nov 19, 2008 7:56pm

    Greg Aker

    6022 posts

    André:

    How did you set up links in your templates?  Are you hard coding your urls, or letting ExpressionEngine do that for you?  eg:  {path=my_template_group/my_template} 

    -greg

  • #6 / Nov 20, 2008 5:35am

    pushloop

    422 posts

    Actually, there are no links on the site! All it contains are various XML-templates which are pulled by the SWF on the main page.

    Funny thing is, that the SWF seems to be able to access the XML-pages, but when I try to manually navigate to them or view them from the control panel, for example http://www.ladidej.com/index.php/web/contact/, I end up on the temporary index page.
    However, when I put a “?” after index.php, like this: http://www.ladidej.com/index.php?/web/contact/, it works just fine.


    Updated:
    Stop the presses. I now realized that the reason why the SWF is still pulling the right XML-pages is because it hasn’t yet been updated to use the new server URL’s. Once that’s been changed I’m pretty sure it’s gonna run into the same problem.

    /A

  • #7 / Nov 20, 2008 11:37am

    Robin Sowell

    13255 posts

    Ah- that would explain why it’s working!  It looks like on this server, you have to have the ? in your urls.  If you turn ‘Force query strings’ on, urls generated by EE will have it in there automatically.  Any hard coded urls, you’ll need to add in manually.

    Basically, the new server isn’t fully supporting the path_info server variable- thus the need for the query string.  So the other option- get the server admin to tweak it so it is supported.  Might point them to this kblog entry for a bit more detail.

    Make sense?

  • #8 / Nov 20, 2008 2:24pm

    Promise

    2 posts

    I followed the instructions found here and have replaced the path_info variable with

    $path_info = (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO');

    as instructed.

    This seemed to almost do the trick. I can now access the XML file located at http://www.ladidej.com/index.php/web/config without the “?”.
    However, when I try to load the SWF, it doesn’t work.
    I.e. http://www.ladidej.com/index.php?/web loads the SWF, but http://www.ladidej.com/index.php/web does not load the SWF, even though http://www.ladidej.com/index.php/web/config loads the XML…

  • #9 / Nov 20, 2008 2:27pm

    pushloop

    422 posts

    Again, that was me posting using the wrong account.

  • #10 / Nov 20, 2008 5:26pm

    Ingmar

    29245 posts

    Have you tried

    <embed src='/Flash/Main.swf'

    ie with a leading slash? You could try an absolute path, too.

  • #11 / Nov 21, 2008 11:02am

    pushloop

    422 posts

    Hoorah! That totally saved my day Ingmar! Thanx a bunch 😊

  • #12 / Nov 21, 2008 11:09am

    Ingmar

    29245 posts

    Yes, path issues can be a little tricky at times 😊 Glad that took care of it.

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

ExpressionEngine News!

#eecms, #events, #releases