Jump to content

Google Analytics - PHP error with official module


Yass

Recommended Posts

Hello,
 
Following an upgrade to the latest version (2.0.6) we noticed a huge increase for errors and warning in our log files.
 
e.g:
E_WARNING: number_format() expects parameter 1 to be double, string given
…/home/ccc/web/xxx.com/www/http/modules/ganalytics/ganalytics.php (468)
…/home/ccc/web/xxx.com/www/http/modules/ganalytics/ganalytics.php (416)
…/home/ccc/web/xxx.com/www/http/modules/ganalytics/ganalytics.php (312)

 

Are any of you experiencing the same issues with this module ?

 

 

Link to comment
Share on other sites

(Fred, this is not directed at you)

 

This is the type of double standard I am always complaining about with prestashop modules and technical validation.  Prestashop should not be creating and releasing a module that behaves in such a way. 

 

if number_format expects a double/float, then a string should not be passed.  We as contributors are forced to cast or adhere to standards, why is the same not true for them?

  • Like 1
Link to comment
Share on other sites

I totally agree with you Bellini,

 

This totally go against Prestashop's own coding rules.

 

Regarding the fact of changing the error reporting in PHP this is not really a solution but only a way to hide these errors.

We're using a monitoring software for our website and all the lights turned orange since this update.

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