OPC Tracking - Google Analytics problem

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

OPC Tracking - Google Analytics problem

Postby kess » Wed Feb 03, 2021 9:27 pm

Hi
I activated the plug in
OPC Tracking - Google Analytics --- Universal Analitcs mode.

the site is with php fpm 7.3.26
latest version of joomla 3.9.24 and virtuemart 3.8.7. 10378
and latest version opc .

In the server's error log file there are lots of lines like this that I know it's not an error but it takes up a lot of useless space ...

PHP Warning: Parameter 1 to plgSystemOpctrackingsystem::plgVmInGatherEffectRulesProduct() expected to be a reference, value given in /var/www/vhosts/.........../httpdocs/libraries/joomla/event/event.php on line 70"

how to fix this problem? Is there any parameter missing from the plug in?

thank you
kess
 
Posts: 1
Joined: Thu Sep 03, 2020 8:24 am

Re: OPC Tracking - Google Analytics problem

Postby admin » Mon May 03, 2021 2:32 pm

hello, please disable error reporting in Joomla to "none" if you are using this on production site.

this error is caused by latest joomla update, where joomla core had implemented incorrect patch for php8 compatibily and dereferences "$this" when sent via triggerer system.

at the moment this cannot be fixed from inside OPC and we are still investigating the issue as we receive same notices/warnings from other parts of the system caused by the latest joomla upgrade. (3.9.25+ )

the fix has to be done in either:
- joomla's dispatcher which incorrect dereferences "$this"
- or all VM core code which sends "$this" to triggers with a reference

and then all 3rd party extensions (including opc plugins) will need an adjustment depending on which solution is used to fix the problem - i would personnaly suggest to fix this one in joomla core, so that it keeps backward compatibility.

the warning/notice shouldn't cause any misbehavior since this is mostly used only in function signatures.

best regards, stan
admin
Site Admin
 
Posts: 2648
Joined: Wed Jan 06, 2010 11:43 pm

Re: OPC Tracking - Google Analytics problem

Postby admin » Mon May 03, 2021 2:40 pm

hello, i now checked if latest VM did anything with this problem and they seem to rename the parameters for the triggers, so you might want to update your VM with 3.8.9 version:
http://dev.virtuemart.net/attachments/d ... xtract.zip
or:
http://dev.virtuemart.net/projects/virtuemart/files

the fix in general / core VM seems to be:

$ref =& $this;
$dispatcher->trigger('function name... ', array(&$ref));

instead of original:
$dispatcher->trigger('function name... ', array(&$this));

best regards, stan
admin
Site Admin
 
Posts: 2648
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x

cron