@localhorst opened this Issue on August 30th 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 commented on September 1st 2019 Member

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

@localhorst commented on September 3rd 2019

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

Powered by GitHub Issue Mirror