{"id":15683946,"date":"2022-05-27T05:24:10","date_gmt":"2022-05-27T05:24:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=15683946"},"modified":"2022-05-27T05:48:47","modified_gmt":"2022-05-27T05:48:47","slug":"triggering-a-warning","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/triggering-a-warning\/","title":{"rendered":"Triggering a warning"},"content":{"rendered":"<p>I&#8217;m getting this in my logs<\/p>\n<p>PHP Warning:  Trying to access array offset on value of type bool in \/***\/wp-content\/plugins\/system-dashboard\/includes\/class-system-dashboard.php on line 249<\/p>\n<p>I fixed it by changing the line to<\/p>\n<p>if ( !empty($page_access_log[&#8216;status&#8217;]) &amp;&amp; ($page_access_log[&#8216;status&#8217;] == &#8216;enabled&#8217; )) {<\/p>\n","protected":false},"template":"","class_list":["post-15683946","topic","type-topic","status-publish","hentry","topic-tag-warning"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15683946","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15683946\/revisions"}],"predecessor-version":[{"id":15683981,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15683946\/revisions\/15683981"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15683946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}