Moved from local testing server to live server - all links messed up!
Posted: 07 June 2008 07:45 PM   [ Ignore ]  
Summer Student
Total Posts:  15
Joined  03-03-2008

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*

Profile
 
 
Posted: 07 June 2008 07:56 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  15
Joined  03-03-2008

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…

Profile
 
 
Posted: 07 June 2008 10:05 PM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6027
Joined  08-04-2002

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.

Profile
 
 
Posted: 08 June 2008 07:19 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  15
Joined  03-03-2008

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…

Profile
 
 
Posted: 08 June 2008 07:57 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  22330
Joined  05-20-2002

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.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 08 June 2008 09:40 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  15
Joined  03-03-2008

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

Profile
 
 
Posted: 08 June 2008 09:49 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  22330
Joined  05-20-2002

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?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 08 June 2008 10:28 AM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  15
Joined  03-03-2008
Robin Sowell - 08 June 2008 09:49 AM

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…  downer

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!

Profile
 
 
Posted: 08 June 2008 10:42 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  15
Joined  03-03-2008

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

Profile
 
 
Posted: 08 June 2008 11:11 AM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  22330
Joined  05-20-2002

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.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 08 June 2008 11:16 AM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  15
Joined  03-03-2008
Robin Sowell - 08 June 2008 11:11 AM
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!

Profile
 
 
Posted: 09 June 2008 04:19 AM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  14040
Joined  05-15-2004

Good deal. Closing smile

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 62620 Total Logged-in Users: 25
Total Topics: 77123 Total Anonymous Users: 13
Total Replies: 416470 Total Guests: 188
Total Posts: 493593    
Members ( View Memberlist )
Newest Members:  drizdlkkolNicolightScotixdsabojaroslawgaskakkkkSharifur Rahmanbill fredarc