{"id":8827806,"date":"2017-02-20T22:25:20","date_gmt":"2017-02-20T22:25:20","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-onload\/"},"modified":"2017-02-20T23:04:56","modified_gmt":"2017-02-20T23:04:56","slug":"error-onload","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-onload\/","title":{"rendered":"Uncaught TypeError: Cannot read property &#8216;top&#8217; of undefined"},"content":{"rendered":"<p>The following error is thrown into the console when viewing a non-admin page.   This renders the Query Monitor menu useless.   It works fine from the admin pages.<\/p>\n<p>Removing the db.php symlink results in no more error, but then of course I can&#8217;t get the detailed query information:<\/p>\n<pre><code>Uncaught TypeError: Cannot read property &#039;top&#039; of undefined\n    at HTMLDocument.&lt;anonymous&gt; (\/wp-content\/plugins\/query-monitor\/assets\/query-monitor.js?ver=1487622877:67)\n    at i (jquery.js:2)\n    at Object.fireWith [as resolveWith] (jquery.js:2)\n    at Function.ready (jquery.js:2)\n    at HTMLDocument.K (jquery.js:2)<\/code><\/pre>\n<p>&#8212;<\/p>\n<p>I note this when I view the Elements in Chrome&#8217;s developer tools &#8212; only when the db.php symlink is in place &#8211;, not sure if that has anything to do with it.  <\/p>\n<p>PHP Error in AJAX Response&#8221;,&#8221;infinitescroll_paused&#8221;:&#8221;Infinite Scroll has been paused by Query Monitor&#8221;<\/p>\n<p>&#8212;<\/p>\n<p>There are no Query Monitor stats being rendered to the DOM.<\/p>\n","protected":false},"template":"","class_list":["post-8827806","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8827806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":4,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8827806\/revisions"}],"predecessor-version":[{"id":8827902,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8827806\/revisions\/8827902"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8827806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}