Jump to content

Error while migrating shop to local server: multiple headers and override


Antoine H.

Recommended Posts

Hi,

I'm quite new to prestashop development and am trying to migrate the shop I'm working on to a local environment. I have been encounting errors I have not yet managed to get around. I'll start with a few informations regarding the shop:

Version: 1.6.1.4

PHP Version: 5.6 (we're planning on moving on to PHP 7)

I had previously managed to make the shop work in a MAMP environment, but this time there are errors I can't manage to work around. Before showing you the error messages, I'll write the steps I've followed, based on the errors I've already fixed and what I found on internet:

- dumped our database and files

- setup MAMP and changed the PHP version its runing to 5.x

- modified config/settings.inc.php (file), ps_shop_url (table) and ps_configuration (table) to use the correct localhost adress. Also turned dev mode on in config/defines.inc.php

- desactivated APC cache and redid all steps above, as it created an error and is apparently not recommended. Also deleted cache.

 

Now, when I'm trying to acces the local shop, I get these errors:

Strict Standards: Declaration of Tools::generateHtaccess() should be compatible with ToolsCore::generateHtaccess($path = NULL, $rewrite_settings = NULL, $cache_control = NULL, $specific = '', $disable_multiviews = NULL, $medias = false, $disable_modsec = NULL) in /Applications/MAMP/htdocs/akammakcom/override/classes/Tools.php on line 216

Strict Standards: Declaration of Link::getCMSCategoryLink() should be compatible with LinkCore::getCMSCategoryLink($cms_category, $alias = NULL, $id_lang = NULL, $id_shop = NULL, $relative_protocol = false) in /Applications/MAMP/htdocs/akammakcom/override/classes/Link.php on line 70

Strict Standards: Declaration of Link::getCMSLink() should be compatible with LinkCore::getCMSLink($cms, $alias = NULL, $ssl = NULL, $id_lang = NULL, $id_shop = NULL, $relative_protocol = false) in /Applications/MAMP/htdocs/akammakcom/override/classes/Link.php on line 70

Strict Standards: Declaration of Link::getManufacturerLink() should be compatible with LinkCore::getManufacturerLink($manufacturer, $alias = NULL, $id_lang = NULL, $id_shop = NULL, $relative_protocol = false) in /Applications/MAMP/htdocs/akammakcom/override/classes/Link.php on line 70

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/akammakcom/override/classes/Tools.php:216) in /Applications/MAMP/htdocs/akammakcom/classes/controller/FrontController.php on line 845

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/akammakcom/override/classes/Tools.php:216) in /Applications/MAMP/htdocs/akammakcom/classes/controller/FrontController.php on line 846

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/akammakcom/override/classes/Tools.php:216) in /Applications/MAMP/htdocs/akammakcom/classes/Tools.php on line 241

So there seems to be two types of errors from what I understand and what I've looked up: variable definition and sending multiple header. The page only displays these errors and inspecting it shows no header though.

 

Any help on figuring out what's going on would be apreciated. I can upload the content of the overriden files if necessary. I would also like to add that all files are from the live version, that works fine.

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...