Jump to content

Installation error changing hosting for my website


Recommended Posts

Hi,

 

We are using Prestashop 1.5.0.13 and we have a problem when trying to change the server of our ecommerce.

We did the backup of the database and folders/files, copied them to the new server, edited the config file with new values for server, database and DBuser, deleted files of smarty folder and all that stuff, but now we can't access either to the website or to the back-end (admin page).

We get these error messages:

 

Front-end: Fatal error: Uncaught exception 'PrestaShopException' with message 'Shop not found' in /var/www/vhosts/pruebashodeia.info/httpdocs/PH/Neotienda2/classes/shop/Shop.php:369 Stack trace: #0 /var/www/vhosts/pruebashodeia.info/httpdocs/PH/Neotienda2/config/config.inc.php(89): ShopCore::initialize() #1 /var/www/vhosts/pruebashodeia.info/httpdocs/PH/Neotienda2/index.php(28): require('/var/www/vhosts...') #2 {main} thrown in /var/www/vhosts/pruebashodeia.info/httpdocs/PH/Neotienda2/classes/shop/Shop.php on line 369

 

Back-end: Warning: Invalid argument supplied for foreach() in /var/www/vhosts/pruebashodeia.info/httpdocs/PH/Neotienda2/classes/Language.php on line 671 Warning: Invalid argument supplied for foreach() in /var/www/vhosts/pruebashodeia.info/httpdocs/PH/Neotienda2/classes/Language.php on line 671

 Invalid argument supplied for foreach() (/var/www/vhosts/pruebashodeia.info/httpdocs/PH/Neotienda2/classes/Language.php, line 671)[/color]

 

We don't know what else we can do to make our site work. Let me know if you need more information.

 

Thank you very much for your help!

Link to comment
Share on other sites

Hi Gio,

FO:

Is the domain name the same, or did it change as well? Is the subfolder where you installed Prestashop different from the old situation?

Re-Re-check differences between old and new config file. Should probably be something in different paths or otherwise permissions...

 

B.O: Apparently you don't feed the foreach an array, or it is set to NULL or so. Did you install any language correctly that is used in your old shop already?

 

My 2 cents,

pascal

Link to comment
Share on other sites

Thank you for your help Pascal,

 

The domain name changes because we are trying to take the site to a test server. And you are right, the subfolder changed as well because we changed from "neotienda.es" to "pruebashodeia.info/Neotienda2/".

 

Regarding the languages, the website works in English, Spanish and German, i don't know wether this information may be important or not.

 

Having read your answer i'll focus my efforts on checking the differences between the two config files.

 

Thanks again and any advice more is welcome.

Link to comment
Share on other sites

The 'ps_' at the front might be different if you changed the standard prefix. So maybe xy_shop_url or mm_shop_url. The important part is the last part 'shop_url'. Still no luck? Then indeed probably migration went wrong... :[

 

Let me know,

pascal.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...