Jump to content

CSS Missing after transfer of shop to another location


Recommended Posts

Hello

 

I have installed the newest version of presta shop on a domain that I use to develop sites before I transfer them. After I made some customization on the default template, I was ready to transfer this shop to the temporary domain before I start uploading products, as I was thinking to keep the database small enough to backup and transfer quickly, and then start to upload the products once everything is transfered and connected on the new location.

 

The temporary domain is like http://xx.xxx.xxx./~shop where the xxx indicates the ip number. This is because the existing domain dns will be transfered to this server once the presta site is stocked and ready to roll, so that there will be no downtime between the client's old site, and the new presta shop site I am making for them.

 

Now, and here is the only problem I have thus far. After I transfered the site files and database from my development site, http://somedomainname.com to the temporary URL for new site at http://xx.xxx.xx/~shop/shopname/ (xx is ip numbers) I can access it fine, but the front shop have no css, or template structure, and displays only the text. The backend office, everything there is okay.

 

Any ideas why there is no css or template structure on the temporary url after transfer? Where can I look or what can I do to resolve this, as I cannot caary on doing work on the temp site url if I cannot see the correct display of things. All the files are there, in template and themes folders, global css is there, everything.

 

Please any suggestions urgently will be much appreciated! Thanks.

Link to comment
Share on other sites

Can it be that because the files are on a temp url, that it seeks the css somewhere in the base url, and not on this temp url? Does this have anything to do with it?:

 

"Your are currently connected with the following domain name: xx.xx.xx.xxx

This one is different from the main shop domain name set in "Preferences > SEO & URLs": xx.xx.xx.xxx/~storename/"

Link to comment
Share on other sites

OK, I solved the problem myself after playing around with the config/settings.inc.php file for hours. It seems that define('__PS_BASE_URI was not set to read from temporary url ~shopname as it was set to the folder name only. In other words:

 

It looked like this:

 

define('__PS_BASE_URI__', '/foldername/');

 

And that is correct, if the domain name was resolved and the url pointed to domain name and not temporary ip number for domain name.

 

Because the domain name is temporary, before dns resolve, that line should look like the folloqwing in order to read the css and template files correctly:

 

define('__PS_BASE_URI__', '/~accountname/foldername/');

 

I hope this info can help somebody that also have to install presta shop on the server before there are an actual domain name to resolve.

Link to comment
Share on other sites

  • 8 months later...

hello Kraai,

 

thanks for that interesting discussion. I do have the same problem right now, except that I do not get what you mean exactly.

 

What do you mean exactly with '~accountname' in the settings.inc.php?

 

My one looks like this: define('__PS_BASE_URI__', '/das-landhaus/shop/');

 

The domain has been changed from www.schreiter.me to www.das-landhaus.info, while the path hasn't changed at all, because both domains are on the same server. It doesn't help, the CSS doesn't work any more!

 

Ideas? I know its already long time ago .....

Link to comment
Share on other sites

×
×
  • Create New...