InaneCoding / Piwik-OpenCart-Ecommerce-VQMod

A repository for the Piwik Ecommerce mod for Open Cart using VQmod.
22 stars 17 forks source link

Bug with PiwikTracker.php / Opencart - 'HTTP_REFERRER' undefined index error. #1

Closed kevinb456 closed 11 years ago

kevinb456 commented 11 years ago

There is a bug with PiwikTracker.php and OpenCart due to 'HTTP_REFERRER' being used without checking if it is defined or not. This code has an '@' symbol to suppress the error but for some reason this doesn't always work.

The symptom is text at the top of your site which is similar to "Notice: Undefined index: HTTP_REFERER in ????/PiwikTracker.php on line 84".

To turn off the display of the error on your site, go to your opencart admin. Go to System > Settings , click 'edit' by your site, then click the 'Server' tab. At the bottom change "Display Errors:" from 'yes' to 'no'. That will stop it displaying.

Unsure of the cause of this bug, but its either Piwik (for not properly checking the variable is defined), or OpenCart (for somehow ignoring the '@' error supression). Not a bug with this mod per say.

kevinb456 commented 11 years ago

Bug fixed by Piwik team:

https://github.com/piwik/piwik/commit/4fdb65a036fc23365a3103e853f5a198f409be09

Incorporate new Piwiktracker.php file into next release.