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.

Moved from local testing server to live server - all links messed up!

June 07, 2008 9:45pm

Subscribe [3]
  • #1 / Jun 07, 2008 9:45pm

    spaceboy

    11 posts

    Hi everyone,

    I’ve been working on my site on my local machine with XAMPP. Now I’ve uploaded the package and imported the database, and everything’s running except all linking has gone weird. Basically, everything from CSS (both cp and site) to internal links is still linking to ‘http://localhost/...

    I’ve gone to the admin - system preferences - general configuration and changed the settings there, but style sheets are still not working and everything I click on on the site tries to go to the original localhost address. I can, however, navigate the cp normally, albeit without any styling as the CSS isn’t linking.

    This is probably a total beginner’s mistake… any clues as to where I need to go to fix this?

    Thanks in advance!

    EDIT: Please see next post - the site works now but styling in the cp doesn’t.

    *feeling a bit stupid*

  • #2 / Jun 07, 2008 9:56pm

    spaceboy

    11 posts

    Ok, now the actual site seems to be working… (perhaps it took more than a few refreshes for the new configuration thingies to take effect?) but the control panel is still without styling. I’m confused…

  • #3 / Jun 08, 2008 12:05am

    PXLated

    1800 posts

    Make sure that all the CP related theme files have been uploaded and are complete. If the CP “styling” is hosed, it’s usually something in there.

  • #4 / Jun 08, 2008 9:19am

    spaceboy

    11 posts

    Thanks for your reply PXLated!

    I’ve checked and even re-uploaded the theme files, but it’s still not working. Also, my forum doesn’t work either, when I try to access it, it says “Error. Unable to locate the forum theme folder. ”  But the folders are all there and are complete.

    I’ve tried searching the knowledge base but haven’t been able to find the solution to this - and I’m sure it’s something small that I’m just missing…

  • #5 / Jun 08, 2008 9:57am

    Robin Sowell

    13255 posts

    Double check the paths to the themes folder- in ‘Admin- System Prefs- General Config’.  If it’s not a path issue, it could be a permission issue- see this kblog entry on the topic and see if that helps.

    Let me know if either of the above does the trick.

  • #6 / Jun 08, 2008 11:40am

    spaceboy

    11 posts

    Thank you, Robin! I fixed the cp styling by moving the cp-themes folder into the system folder as the link suggested. I still have the problem of the forums not working - I think my theme folder path might be incorrect. What’s the correct format for it? I thought it would be ‘http://www.mysite.com/httpdocs/themes/’ but that doesn’t do anything..

  • #7 / Jun 08, 2008 11:49am

    Robin Sowell

    13255 posts

    Glad that did it.  Sounds like you’ve got some restrictions going on that can be problematic.  Generally- the url to the themes folder will be http://mysite.com/themes/- where are you setting the forum path- walk me through it.

    Also- with the forum…  Instead of using the kblog approach of putting a copy of the cp themes inside of ‘system’- you might want to try masking access- which means- leave the cp themes inside the regular theme folder, put a copy of admin.php (according to linked directions) at the top level- same place you have your path.php file.  Then- access the control panel via mysite.com/admin.php instead of going through the system folder a la mysite.com/system/index.php.

    Did that make sense?

  • #8 / Jun 08, 2008 12:28pm

    spaceboy

    11 posts

    Glad that did it.  Sounds like you’ve got some restrictions going on that can be problematic.  Generally- the url to the themes folder will be http://mysite.com/themes/- where are you setting the forum path- walk me through it.

    In CP Home ›  Admin ›  System Preferences ›  General Configuration , the settings for the themes which are URL to your “themes” folder and Theme Folder Path, on my local server the first one was http://localhost/themes/ and the second one was Applications/xampp/httpdocs/expressionengine/themes… so by that example, I set them to http://www.mysite.com/themes and http://www.mysite.com/httpdocs/themes respectively, and I also tried to put only /httpdocs/themes/ but that didn’t make any difference either…  :down:

    Also- with the forum…  Instead of using the kblog approach of putting a copy of the cp themes inside of ‘system’- you might want to try masking access- which means- leave the cp themes inside the regular theme folder, put a copy of admin.php (according to linked directions) at the top level- same place you have your path.php file.  Then- access the control panel via mysite.com/admin.php instead of going through the system folder a la mysite.com/system/index.php.

    Did that make sense?

    I didn’t quite get… does that have an effect on the forums working? Sorry for the silly question!

  • #9 / Jun 08, 2008 12:42pm

    spaceboy

    11 posts

    oh! addition - I probably should have mentioned this before - I’ve embedded the forum into a template, does this make it harder for it to find the theme folder? it worked like a charm on my testing server and the problem only started after upload…


    EDIT: It’s probably the server path that I’m tripping up with, as I’m just trying to set it in the forum preferences and it keeps telling me the server path I’ve entered is invalid… I suppose the next step is to check the server paths with my hosting provider? Unfortunately they’re doing maintenance work and are unavailable at the moment so I’ll have to wait..

  • #10 / Jun 08, 2008 1:11pm

    Robin Sowell

    13255 posts

    No- should be fine embedding in a template.  I think the restrictions are just causing an issue in finding it.  And in truth, I think it should be ok on the frontend.  Still- I prefer the masked approach myself.

    Hm- for the full paths, if you can get to the cp and all- can try this approach to figuring out the full path.  See if that helps.

  • #11 / Jun 08, 2008 1:16pm

    spaceboy

    11 posts

    I prefer the masked approach myself.

    I’ll have a look into that then!

    Hm- for the full paths, if you can get to the cp and all- can try this approach to figuring out the full path.  See if that helps.

    This helped! The server path was wrong, now it’s working perfectly. Thank you so much for your help!

  • #12 / Jun 09, 2008 6:19am

    Ingmar

    29245 posts

    Good deal. Closing 😊

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

ExpressionEngine News!

#eecms, #events, #releases