InMotion Hosting Support Center

Error in Prestashop after transfering

Category: Prestashop 15

FerBo7
107 Points
Asked:
2014-07-05 4:48 pm EST

Hits: 1,826
Hi,

After transfer and modification in the domain URL and modifying the .htaccess file appears the following errors:

Warning: Cannot modify header information - headers already sent by (output started at /home/kenkom6/public_html/kenkomuri/classes/Cookie.php:1) in /home/kenkom6/public_html/kenkomuri/classes/Cookie.php on line 317

Warning: Cannot modify header information - headers already sent by (output started at /home/kenkom6/public_html/kenkomuri/classes/Cookie.php:1) in /home/kenkom6/public_html/kenkomuri/classes/Cookie.php on line 317

Warning: Cannot modify header information - headers already sent by (output started at /home/kenkom6/public_html/kenkomuri/classes/Cookie.php:1) in /home/kenkom6/public_html/kenkomuri/classes/Tools.php on line 142

I dont know why but I hope you can help me. :D

Thanks

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

JacobIMH
Staff
9,968 Points
2014-07-06 1:01 am EST
Hello FerBo7,

If you take a look at Line 317 in /classes/Cookie.php it just has this:

if (PHP_VERSION_ID <= 50200) /* PHP version > 5.2.0 */
return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0);
else
return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0, true);


Your server's default PHP version was recently updated to PHP 5.4 and that seems to be introducing the problem on this site for you.

I've gone ahead and added this line to your /kenkomuri/.htaccess file:

AddHandler application/x-httpd-php53.php


That will force that directory to continue to run PHP 5.3 which seems to fix those errors for you. If you run into any similar problem anywhere else on your account, you can follow our guide on run multiple versions of PHP on one account.

Please let us know if you have any further questions at all.

- Jacob

You must login before you can post a comment about this answer.

Its done. I finally can upgrade the Prestashop version to 1.5.6.2 but I have an issue with the images.
The topic is the following:
http://www.inmotionhosting.com/support/community-support/prestashop-15/wrong-version-of-prestashop-to-upgrade
FerBo7
107 Points
2014-07-07 12:45 pm EST
Like this Question?

Related Articles

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!