You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
using the javascript tracker, it works fine, but my browser logged an error on the console:
Uncaught TypeError: Cannot read properties of undefined (reading 'shift')
at OWA.commandQueue.process (owa.tracker-combined-min.js:formatted:1468)
at owa.tracker-combined-min.js:formatted:2955
at owa.tracker-combined-min.js:formatted:2958
How to reproduce
fresh install of Open Web Analytics 1.7.3, use the owa.tracker-combined manually for my page.
Possible Solution
upon further inspection, it generates an error from this line (from owa.tracker-combined):
this.push(this.asyncCmds.shift(), callback);
from my knowledge, apparently it generates an error because the variable asyncCmds is an empty array, so it has nothing to shift.
so maybe add an empty array check first? hope it helps.
Additional context
None
The text was updated successfully, but these errors were encountered:
Before you open an issue:
Affected Version(s): 1.7.3
PHP Version: 7.4.3 FPM
Webserver: Nginx
Browser: Microsoft Edge Version 96.0.1054.29
Installation Type
Description
using the javascript tracker, it works fine, but my browser logged an error on the console:
How to reproduce
fresh install of Open Web Analytics 1.7.3, use the owa.tracker-combined manually for my page.
the script loaded just fine.
Possible Solution
upon further inspection, it generates an error from this line (from owa.tracker-combined):
from my knowledge, apparently it generates an error because the variable
asyncCmds
is an empty array, so it has nothing to shift.so maybe add an empty array check first? hope it helps.
Additional context
None
The text was updated successfully, but these errors were encountered: