{"id":10016141,"date":"2018-02-26T15:44:33","date_gmt":"2018-02-26T15:44:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/many-php-errors-2\/"},"modified":"2018-02-26T15:51:06","modified_gmt":"2018-02-26T15:51:06","slug":"many-php-errors-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/many-php-errors-2\/","title":{"rendered":"many PHP errors"},"content":{"rendered":"<p>hey Steven<\/p>\n<p>I use your plugin because it&#8217;s so useful, many thanks.<\/p>\n<p>1) However I recently noticed a lot of PHP errors showing up here and there:<\/p>\n<pre><code>\nNotice: Undefined index: _ez_toc_nonce in \/path\/site.com\/wp-content\/plugins\/easy-table-of-contents\/includes\/class.admin.php on line 340\n<\/code><\/pre>\n<p>bugfix class.admin.php on line 340:<br \/>\n<code>.. &amp;&amp; array_key_exists(&#039;_ez_toc_nonce&#039;, $_REQUEST) ..<\/code><\/p>\n<pre><code>\n[25-Feb-2018 03:05:28 UTC] PHP Notice:  Trying to get property of non-object in \/path\/site.com\/wp-content\/plugins\/easy-table-of-contents\/easy-table-of-contents.php on line 594\n[25-Feb-2018 03:05:28 UTC] PHP Notice:  Trying to get property of non-object in \/path\/site.com\/wp-content\/plugins\/easy-table-of-contents\/easy-table-of-contents.php on line 595\n[25-Feb-2018 03:05:28 UTC] PHP Notice:  Trying to get property of non-object in \/path\/site.com\/wp-content\/plugins\/easy-table-of-contents\/easy-table-of-contents.php on line 596\n[25-Feb-2018 03:05:28 UTC] PHP Notice:  Trying to get property of non-object in \/path\/site.com\/wp-content\/plugins\/easy-table-of-contents\/easy-table-of-contents.php on line 844\n[25-Feb-2018 03:05:28 UTC] PHP Notice:  Trying to get property of non-object in \/path\/site.com\/wp-content\/plugins\/easy-table-of-contents\/easy-table-of-contents.php on line 883\n[25-Feb-2018 03:05:28 UTC] PHP Notice:  Trying to get property of non-object in \/path\/site.com\/wp-content\/plugins\/easy-table-of-contents\/easy-table-of-contents.php on line 887\n<\/code><\/pre>\n<p>Is it because of PHP 7? Or is it because of https? Or have you pushed some untested changes in your code?<br \/>\nI could correct that myself but that would defeat the purpose of relying on plugins to do a job we publishers do not want to do.<\/p>\n<p>2) why is your plugin active in the admin area at all?<\/p>\n<p>Please let me know if I can help and if you need more log extracts!<\/p>\n<p>best regards<\/p>\n","protected":false},"template":"","class_list":["post-10016141","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10016141","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":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10016141\/revisions"}],"predecessor-version":[{"id":10016177,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10016141\/revisions\/10016177"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10016141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}