raxsix Posted May 19, 2011 Share Posted May 19, 2011 HiI 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 More sharing options...
allienato Posted May 23, 2011 Share Posted May 23, 2011 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 More sharing options...
raxsix Posted May 25, 2011 Author Share Posted May 25, 2011 Somethings wrong, cant get it work 404 error Link to comment Share on other sites More sharing options...
allienato Posted May 25, 2011 Share Posted May 25, 2011 is your configuration file ok? Link to comment Share on other sites More sharing options...
raxsix Posted May 25, 2011 Author Share Posted May 25, 2011 What do you mean by that ? Link to comment Share on other sites More sharing options...
allienato Posted May 25, 2011 Share Posted May 25, 2011 I mean your config/settings.inc.php filemaybe your base url (first row) is different from live to localhost Link to comment Share on other sites More sharing options...
raxsix Posted May 25, 2011 Author Share Posted May 25, 2011 that file is ok too... Link to comment Share on other sites More sharing options...
guest* Posted May 30, 2011 Share Posted May 30, 2011 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 More sharing options...
EDsolution.si Posted June 14, 2011 Share Posted June 14, 2011 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 More sharing options...
guest* Posted June 15, 2011 Share Posted June 15, 2011 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 More sharing options...
xbfish Posted June 15, 2011 Share Posted June 15, 2011 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 More sharing options...
EDsolution.si Posted August 3, 2011 Share Posted August 3, 2011 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 More sharing options...
duongphuc Posted November 1, 2011 Share Posted November 1, 2011 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 More sharing options...
Guest Posted November 1, 2011 Share Posted November 1, 2011 exceptional site post. I am going to bookmark and check out a lot more often. I really like the website template Link to comment Share on other sites More sharing options...
duongphuc Posted November 3, 2011 Share Posted November 3, 2011 stupit guy, what's do you mean? Link to comment Share on other sites More sharing options...
xbfish Posted November 4, 2011 Share Posted November 4, 2011 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 More sharing options...
Recommended Posts