Jump to content

From live to localhost


Recommended Posts

Hi

I backed up my database from live shop and download all site files to my localhost. From phpMyAdmin(local) i created new database with same name as in live shop and imported the DB.
So when i go localhost to see my shop it redirects me to live shop url.

Where and how i can solve that problem ?

Link to comment
Share on other sites

if you have prestashop 1.4.x, you have to access your database and in the table ps_configuration you should change the value of PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL (under "name" column) in "localhost"

that should solve it (had your same problem, but from localhost to live site)

Link to comment
Share on other sites

I have the same problem. When installed I used a Database with name X, I created a new one, copied the Database X to the new one. Renamed the DB x to the new one name and when I try to open the shop, than it cames: SQL-subderectories not found.

I renamed the DB to the old one, opened normally the shop and admin. Renamed in the settings.inc.php again the DB to the new one name and now the problem is fixed.

So try by this way, perhaps you will have luck...

Link to comment
Share on other sites

  • 3 weeks later...

What is wrong with this f**** prestashop?

Every time when I move from localhost to online..there are allways problems. Now the right block has disapere when i published online AND yes I have change domain name...The page is working...but the right block..gone...product page..gone..

WTF?

Link to comment
Share on other sites

What is wrong with this f**** prestashop?

Every time when I move from localhost to online..there are allways problems. Now the right block has disapere when i published online AND yes I have change domain name...The page is working...but the right block..gone...product page..gone..

WTF?


Did you also ceared the smarty cache and your browser cache ? Most of the problems in "invisible" things are due to this fact, taht browser is caching old things and not finding the new one...
Link to comment
Share on other sites

Turn off smart cache.

Login to your Back-Office, under Preferences tab -> Performance, check NO box for Smarty cache.

Your block links and content should be working fine. Do note that you also have to change PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL in the database if not the block links will reflect the old values of these 2.

Let me know if it doesn't work for you.

Link to comment
Share on other sites

  • 1 month later...

Ok that did the trick.

But I have again new website and the problem is:

I've moved from localhost to server, uploaded the database change shop_domain and shop_domain_ssl table from localhost to domain name (domain.com) and now when I want to acces backend it works fine, but when I want to see page live it redirect me to localhost. I have build new .htacess and entered the right lines in settings.inc.php

 

Any clue?

 

Thanks

Link to comment
Share on other sites

  • 2 months later...

hi there,

I just got problem too, site can't work when moving from live to localhost, although access config/setting, but site doesn't work on locall, only Redirect to online site (which the one live):

Note: Ver 1.4.4.1 prestashop

 

Anybody can fix that. thanks

Link to comment
Share on other sites

hi there,

I just got problem too, site can't work when moving from live to localhost, although access config/setting, but site doesn't work on locall, only Redirect to online site (which the one live):

Note: Ver 1.4.4.1 prestashop

 

Anybody can fix that. thanks

 

Have you tried editing PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL in the database which resides @ your localhost?

 

I suspect because you didn't edit these 2 fields, you local shop is redirecting you to the online one.

 

For the steps, you can visit my blog link @ http://xbfish.com/2011/04/18/prestashop-1-4-hyperlinks-are-now-localhost/

Link to comment
Share on other sites

×
×
  • Create New...