Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Uncaught TypeError: Cannot read property 'apply' of undefined" #384

Closed
davetbo opened this issue Feb 25, 2019 · 19 comments
Closed

"Uncaught TypeError: Cannot read property 'apply' of undefined" #384

davetbo opened this issue Feb 25, 2019 · 19 comments

Comments

@davetbo
Copy link

@davetbo davetbo commented Feb 25, 2019

Hello,

I'm using the most recent code from Master as of 2019-02-25. I just installed a new copy of your OWA into Wordpress. The WP site is running on PHP 7.0.x.

I'm getting a javascript error in the subject line, and it's from owa.tracker-combined-min.js line 140. Can you advise as to how to get your code working? For some reason it's working on a different site that I have set up, but not this new one. Please advise.

Thanks,
Dave

@davetbo

This comment has been minimized.

Copy link
Author

@davetbo davetbo commented Feb 25, 2019

Here's the full stack trace. Sorry for the double post:

owa.tracker-combined-min.js:140 Uncaught TypeError: Cannot read property 'apply' of undefined
    at OWA.commandQueue.push (owa.tracker-combined-min.js:140)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at callback (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.push (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at callback (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.push (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at owa.tracker-combined-min.js:244
    at owa.tracker-combined-min.js:244
@davetbo

This comment has been minimized.

Copy link
Author

@davetbo davetbo commented Feb 25, 2019

I should also note (sorry for the TRIPLE post) that all I've changed so far in the settings for this fresh install of your plugin is to set the timezone properly. All the other settings and modules are out-of-the-box defaults.

@yrammos

This comment has been minimized.

Copy link

@yrammos yrammos commented Mar 10, 2019

I'm facing exactly the same issue on the same kind of setup.

@yrammos

This comment has been minimized.

Copy link

@yrammos yrammos commented Mar 10, 2019

UPDATE: @davetbo the HEAD commit apparently contains a breaking change since the latest validated release. I solved the issue by checking out 73bd248. Do not check out the commit of the validated release itself (796fe3e), which appears a couple of nodes earlier in the history and introduces a new error.

@padams

This comment has been minimized.

Copy link
Collaborator

@padams padams commented Mar 10, 2019

Can you isolate what is causing this error on one site but not on another?

@flowthentic

This comment has been minimized.

Copy link

@flowthentic flowthentic commented Apr 15, 2019

I had installed 1.6.2 release.
I have found file modules/base/templates/js_log_tag.tpl , And it was like before commit 73bd248. Wen I have done the change on my site it started working as expected.

Should I go ahead, fork your repository and do the change? I am asking, as I have worked with git only locally.

@padams

This comment has been minimized.

Copy link
Collaborator

@padams padams commented Apr 15, 2019

@padams

This comment has been minimized.

Copy link
Collaborator

@padams padams commented Sep 6, 2019

closing. reopen if this is still an issue not resolved by code in master..

@padams padams closed this Sep 6, 2019
@softsteel

This comment has been minimized.

Copy link

@softsteel softsteel commented Sep 23, 2019

1.6.2 is broken due to sanitization reasons.

@padams I've tried master @ d6f4a58 running the WordPress plug-in and this isn't solved:

owa.tracker-combined-min.js:140 Uncaught TypeError: Cannot read property 'apply' of undefined
    at OWA.commandQueue.push (owa.tracker-combined-min.js:140)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at callback (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.push (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at callback (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.push (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at owa.tracker-combined-min.js:244
    at owa.tracker-combined-min.js:244
push @ owa.tracker-combined-min.js:140
process @ owa.tracker-combined-min.js:143
callback @ owa.tracker-combined-min.js:142
push @ owa.tracker-combined-min.js:142
process @ owa.tracker-combined-min.js:143
callback @ owa.tracker-combined-min.js:142
push @ owa.tracker-combined-min.js:142
process @ owa.tracker-combined-min.js:143
(anonymous) @ owa.tracker-combined-min.js:244
(anonymous) @ owa.tracker-combined-min.js:244
@sysfu

This comment has been minimized.

Copy link

@sysfu sysfu commented Jan 7, 2020

@padams Please re-open this issue, I'm running into the same problem with the latest OWA master code.

Environment:
WordPress 5.3.2 running Parallax Pro Theme. Using Genesis 3.2.1.
Microsoft Edge | 80.0.361.23 (Official build) dev (64-bit)
Revision | 8bc9a51094cafd477c595932727723ff6d8845a9
Operating system | Windows 10 OS Version 1909 (Build 18363.535)
JavaScript | V8 8.0.426.8

owa.tracker-combined-min.js:140 Uncaught TypeError: Cannot read property 'apply' of undefined
    at OWA.commandQueue.push (owa.tracker-combined-min.js:140)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at callback (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.push (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at callback (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.push (owa.tracker-combined-min.js:142)
    at OWA.commandQueue.process (owa.tracker-combined-min.js:143)
    at owa.tracker-combined-min.js:244
    at owa.tracker-combined-min.js:244
@sysfu

This comment has been minimized.

Copy link

@sysfu sysfu commented Jan 8, 2020

This error also occurs with the latest master. Here is the owa.tracker-combined-min.js line 140 that the developer tools is complaining about

window[obj_name][method].apply(window[obj_name],args);}

@padams

This comment has been minimized.

Copy link
Collaborator

@padams padams commented Jan 9, 2020

I can't reproduce. Can you post your tracker code here?

@padams padams reopened this Jan 9, 2020
@sysfu

This comment has been minimized.

Copy link

@sysfu sysfu commented Jan 9, 2020

Would the 'tracker code' be the contents of file owa.tracker-combined-min.js?

@padams

This comment has been minimized.

Copy link
Collaborator

@padams padams commented Jan 9, 2020

@sysfu

This comment has been minimized.

Copy link

@sysfu sysfu commented Jan 9, 2020

OK, I think it's this bit that I plugged into the Genesis Theme Framework for WordPress as per the screenshot

Genesis-frmwrk-footer

@padams

This comment has been minimized.

Copy link
Collaborator

@padams padams commented Jan 9, 2020

No that’s a WordPress filter function. To see the OWA tracking code you need to view the source of the web page and find the OWA <SCRIPT> block.

@sysfu

This comment has been minimized.

Copy link

@sysfu sysfu commented Jan 9, 2020

@sysfu

This comment has been minimized.

Copy link

@sysfu sysfu commented Jan 22, 2020

Problem appears to have been resolved by latest version of master code as of this commit

75ca1ed

@Maaiins

This comment has been minimized.

Copy link
Collaborator

@Maaiins Maaiins commented Apr 7, 2020

Seems resolved, closing Issue. Feel free to reopen if there is still any problem.

@Maaiins Maaiins closed this Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.