X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   CSS URL wrong when moving from localhost to live URL (https://forum.x-cart.com/showthread.php?t=73519)

freshradiance 02-03-2016 08:19 PM

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

totaltec 02-03-2016 09:21 PM

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?

freshradiance 02-03-2016 09:52 PM

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.

totaltec 02-04-2016 04:05 AM

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?

cflsystems 02-04-2016 06:27 AM

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?

totaltec 02-04-2016 03:28 PM

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.

razortw 02-05-2016 04:35 AM

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.


All times are GMT -8. The time now is 11:04 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.