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

Page Overlay - JavaScript Error - TypeError: location.match(...) is null #14835

Open
localhorst opened this issue Aug 30, 2019 · 2 comments

Comments

@localhorst
Copy link

commented Aug 30, 2019

When opening page overlays and selecting "today" or "yesterday", the page does not load. I get this error in Firefox Console:

Firefox 68.0.2 (64-bit)

TypeError: location.match(...) is nullPiwik_Overlay.js:148:33
    setIframeOrigin https://matomo.mydomain.com/plugins/Overlay/javascripts/Piwik_Overlay.js?cb=b7a7ffc1b1f573a45213fcfecfcdc04d:148
    hashChangeCallback https://matomo.mydomain.com/plugins/Overlay/javascripts/Piwik_Overlay.js?cb=b7a7ffc1b1f573a45213fcfecfcdc04d:170
    init https://matomo.mydomain.com/plugins/Overlay/javascripts/Piwik_Overlay.js?cb=b7a7ffc1b1f573a45213fcfecfcdc04d:278
    invoke https://matomo.mydomain.com/index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:163
    init https://matomo.mydomain.com/plugins/Overlay/javascripts/Piwik_Overlay.js?cb=b7a7ffc1b1f573a45213fcfecfcdc04d:273
    <anonymous> https://matomo.mydomain.com/index.php?module=Overlay&period=week&date=today&idSite=4:260
    i https://matomo.mydomain.com/index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:4
    fireWith https://matomo.mydomain.com/index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:4
    ready https://matomo.mydomain.com/index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:4
    J https://matomo.mydomain.com/index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:4

A similar error occurs in Chrome 76.0.3809.100 (64-Bit)

Uncaught TypeError: Cannot read property '0' of null
    at setIframeOrigin (Piwik_Overlay.js?cb=b7a7ffc1b1f573a45213fcfecfcdc04d:148)
    at hashChangeCallback (Piwik_Overlay.js?cb=b7a7ffc1b1f573a45213fcfecfcdc04d:170)
    at Piwik_Overlay.js?cb=b7a7ffc1b1f573a45213fcfecfcdc04d:278
    at Object.invoke (index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:163)
    at Object.init (Piwik_Overlay.js?cb=b7a7ffc1b1f573a45213fcfecfcdc04d:273)
    at HTMLDocument.<anonymous> (index.php?module=Overlay&period=day&date=today&idSite=4:260)
    at i (index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:4)
    at Object.fireWith [as resolveWith] (index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:4)
    at Function.ready (index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:4)
    at HTMLDocument.J (index.php?module=Proxy&action=getCoreJs&cb=b7a7ffc1b1f573a45213fcfecfcdc04d:4)

In MS Edge, the page overlay loads fine.
Microsoft Edge 44.18362.267.0
Edit: No, in Edge it fails with this error:

SCRIPT5007: SCRIPT5007: Unable to get property '0' of undefined or null reference
Piwik_Overlay.js (148,9)

Using Matomo 3.11.0

@sgiehl

This comment has been minimized.

Copy link
Member

commented Sep 1, 2019

@localhorst What is the querystring / fragment of the url opened for overlay?

@localhorst

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

/index.php?module=Overlay&period=day&date=today&idSite=4
/index.php?module=Overlay&period=day&date=yesterday&idSite=4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.