Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

CSS URL wrong when moving from localhost to live URL

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-03-2016, 08:19 PM
 
freshradiance freshradiance is offline
 

Newbie
  
Join Date: Feb 2016
Posts: 2
 

Default CSS URL wrong when moving from localhost to live URL

I installed 5.2.9 and then modified some of the template files.

The modified website looks great on my PC with WAMP.

I zipped the entire website and moved it to DREAMHOST and unzipped it.

I dumped my MYSQL DB and loaded it into a clean DB on my live server.

The website does not look right and I found that 2 CSS files are not loading properly.

Here are the links (2nd and 3rd below) on LOCALHOST:
<link href="skins/common/css/font-awesome/font-awesome.min.css?1446106298" rel="stylesheet" type="text/css" media="all" />
<link href="http://localhost/freshradiance/xcart/var/resources/default/http/screen/63b4af06c61cd01fd96fc37c112ca038.css?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="http://localhost/freshradiance/xcart/var/resources/default/http/screen/8d09ebbe4be4d82fe86a2461c944904f.css?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600 italic%2C700italic%2C400%2C300%2C600%2C700&amp;sub set=latin%2Ccyrillic%2Clatin-ext&amp;1446106298" rel="stylesheet" type="text/css" media="not print" />

And here are the links (2nd and 3rd below, 1st and 2nd are same as on the localhost installation) on my live site:
<link href="skins/common/css/font-awesome/font-awesome.min.css?1446106298" rel="stylesheet" type="text/css" media="all" />
<link href="?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600 italic%2C700italic%2C400%2C300%2C600%2C700&amp;sub set=latin%2Ccyrillic%2Clatin-ext&amp;1446106298" rel="stylesheet" type="text/css" media="not print" />


Any ideas would be appreciated.
Mark
__________________
Mark Wiggin
Reply With Quote
  #2  
Old 02-03-2016, 09:21 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: CSS URL wrong when moving from localhost to live URL

Mark,
I have approved your post. It was moderated as it was your first.

It would be helpful to be able to view the source code of the site in question. Perhaps a link?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 02-03-2016, 09:52 PM
 
freshradiance freshradiance is offline
 

Newbie
  
Join Date: Feb 2016
Posts: 2
 

Default Re: CSS URL wrong when moving from localhost to live URL

Forgot to include it.

http://freshradiance.com/xcart/

All the code seems the same except for the LOCALHOST vs FRESHRADIANCE URLs.
__________________
Mark Wiggin
Reply With Quote
  #4  
Old 02-04-2016, 04:05 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: CSS URL wrong when moving from localhost to live URL

You have edited config.php I am assuming. You changed localhost to freshradiance in there correct?

And then rebuilt the cache in the admin?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #5  
Old 02-04-2016, 06:27 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: CSS URL wrong when moving from localhost to live URL

Quote:
Originally Posted by totaltec
I have approved your post. It was moderated as it was your first.

Meaning you are a forum moderator now Mike?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 02-04-2016, 03:28 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: CSS URL wrong when moving from localhost to live URL

Quote:
Originally Posted by cflsystems
Meaning you are a forum moderator now Mike?
I have tiny, extremely limited powers. Not like Balinor. Just the power to approve or deny.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #7  
Old 02-05-2016, 04:35 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: CSS URL wrong when moving from localhost to live URL

Quote:
Originally Posted by freshradiance
I installed 5.2.9 and then modified some of the template files.

The modified website looks great on my PC with WAMP.

I zipped the entire website and moved it to DREAMHOST and unzipped it.

I dumped my MYSQL DB and loaded it into a clean DB on my live server.

The website does not look right and I found that 2 CSS files are not loading properly.

Here are the links (2nd and 3rd below) on LOCALHOST:
<link href="skins/common/css/font-awesome/font-awesome.min.css?1446106298" rel="stylesheet" type="text/css" media="all" />
<link href="http://localhost/freshradiance/xcart/var/resources/default/http/screen/63b4af06c61cd01fd96fc37c112ca038.css?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="http://localhost/freshradiance/xcart/var/resources/default/http/screen/8d09ebbe4be4d82fe86a2461c944904f.css?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600 italic%2C700italic%2C400%2C300%2C600%2C700&amp;sub set=latin%2Ccyrillic%2Clatin-ext&amp;1446106298" rel="stylesheet" type="text/css" media="not print" />

And here are the links (2nd and 3rd below, 1st and 2nd are same as on the localhost installation) on my live site:
<link href="skins/common/css/font-awesome/font-awesome.min.css?1446106298" rel="stylesheet" type="text/css" media="all" />
<link href="?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600 italic%2C700italic%2C400%2C300%2C600%2C700&amp;sub set=latin%2Ccyrillic%2Clatin-ext&amp;1446106298" rel="stylesheet" type="text/css" media="not print" />


Any ideas would be appreciated.
Mark
These files are aggregated CSS.
Try to double check the X-Cart config to make sure http_host, https_host and web_dir parameters are correct, and then refresh the CSS/JS aggregation cache and widget cache in the 'Look & Feel' > 'Performance' section.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote

The following 2 users thank razortw for this useful post:
Daisy (07-10-2018), totaltec (02-05-2016)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:29 PM.

   

 
X-Cart forums © 2001-2020