Jump to content

PHP errors when migrating a Prestashop from an old host to a new one.


Recommended Posts

Hi everyone,

I've been tasked with migrating a Prestashop based storefront from it's former webhost to a new one (namely 1&1).

So I followed the tutorial to do so properly by downloading and uploading the files via FTP which worked out ok except that when I try and reach the new site's backend or even the front page, I get the following error message :

 

Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /homepages/15/d619125986/htdocs/web/classes/PrestaShopPHPUnit.php on line 29

So I'm on a very very tight deadline (read Wednesday April 6th) to make this transfer happen but I would really appreciate any help you guys can give. Side note, the old host didn't have a settings.inc.php file so I created one. Not sure if that's relevant but I thought I'd mention it nonetheless

 

PrestaShop version 1.6.0.14

http://voluptuous-swimsuits.co/

 

FTP Client : Filezilla for OS X

FTP Transfer was done twice to ensure files went up cleanly

 

Thanks in advance !

Link to comment
Share on other sites

The error you are having is related to a coded webservice. You should ask the coder. Why you don't have a settings.inc.php ? Did you moved from Prestashop Cloud ? In any Prestashop installation this file is available, cause part of the installation on the server. Prestashop will not work without this file.

Link to comment
Share on other sites

The error you are having is related to a coded webservice. You should ask the coder. Why you don't have a settings.inc.php ? Did you moved from Prestashop Cloud ? In any Prestashop installation this file is available, cause part of the installation on the server. Prestashop will not work without this file.

It wasn't moved from Prestashop Cloud but another standard webhost provider who also initially created the site. I only recently took over it and now my boss wants it on a new provider, in this case 1&1.

Link to comment
Share on other sites

The file is needed for a  test environment for 1.6.0.14: https://github.com/PrestaShop/PrestaShop/tree/1.6.0.14/tests/classes

Here is a spanish instruction for the command line use: http://www.ivan-garcia.com/blog/phpunit-en-prestashop/

It was used already for 1.5: http://scm.prestashop.com/browse/PrestaShop_v.1.5/tests/classes/PrestaShopPHPUnit.php

I replaced the file with the one you linked to on GitHub and I got the same error message.

Link to comment
Share on other sites

Please read carefully: The file is needed for a  test environment

 

Do you run a test environment or do you want to run a live shop? :)

I don't know who installed your shop system, but in any case this installation contains features that are not needed for a normal shop.

Link to comment
Share on other sites

Please read carefully: The file is needed for a  test environment

 

Do you run a test environment or do you want to run a live shop? :)

I don't know who installed your shop system, but in any case this installation contains features that are not needed for a normal shop.

It's a migration of a live shop that has to be visible within 24 hours. But when/if I remove said files, Prestashop tells me they're missing

Link to comment
Share on other sites

So you need someone familiar with this test feature (consisting of several ineractive files; see to this spanish manual!) to be able to remove them - or you have to reinstall the shop system.

Moreover, the possibility cannot be ruled out that during the migration some files were missing. Happens sometimes.

 

Anyway, forget your deadline!

  • Like 1
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...