Jump to content

upgrading from 1.6.0.11 to 1.6.0.14 - found bugs


Recommended Posts

Hi

 

I have done upgrade from Prestashop 1.6.0.11 to 1.6.0.14 with 1-Click Update module.

 

Everything went well, but after update user registration form have not working with Ajax parcer error. I found that the problem in AuthController.php file with this directive:

 

In Prestashop 1.6.0.11

 

die(Tools::jsonEncode($return));

 

 

In Prestashop 1.6.0.14

 

$this->ajaxDie(Tools::jsonEncode($return));

 

After I change this directive to Prestashop 1.6.0.11 It began to work.

 

Why? I use php version 5.3

Link to comment
Share on other sites

I think this is related to your php version (can't use function return value in write context).

 

Basically this means that you cannot call a function in a function:

 

 

<?php
function GiveMeANumber() { return 5; }
function GiveMeAnotherNumber() { return 3; }
function CalculateSum($num1,$num2) { return $num1+$num2;}
 
// This is where it goes wrong:
echo CalculateSum(GiveMeANumber(), GiveMeAnotherNumber());
 
// This should work:
$number1 = GiveMeANumer();
$number2 = GiveMeAnotherNumber();
$sum = CalculateSum($number1,$number2);
echo $sum;
?>

 

This only works from php 5.4+ I think. Perhaps that's the issue. Do you have a way to check with another php version? Perhaps using Xampp for Windows?

 

Good luck!

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