Error in Prestashop after transfering

Avatar
  • Answered
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
Avatar
JacobIMH
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