{"id":9847897,"date":"2018-01-09T15:47:11","date_gmt":"2018-01-09T15:47:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=9847897"},"modified":"2018-01-09T15:54:26","modified_gmt":"2018-01-09T15:54:26","slug":"php-errors-116","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-errors-116\/","title":{"rendered":"PHP Errors"},"content":{"rendered":"<p>Your code has a few errors.<\/p>\n<p>On line 73 of seo-breadcrumbs\/functions.php you reference a variable that isn&#8217;t globalized until line 102.  Moving this statement to line 59 fixes the issue.<\/p>\n<pre><code>\/\/ Get the wp, query, post information\n global $wp,$post,$wp_query;\n<\/code><\/pre>\n<p>You also reference a variable to do a calculation of the time it took to render the page at the bottom on line 322 that is never set.<\/p>\n<pre><code>echo &quot;\\n&quot;.&quot;&lt;!-- This breadcrumbs generated by [ SEO Breadcrumbs ] plugin, with in &quot;.round($end_time-$start_time, 3). &quot; milliseconds. --&gt;&quot;.&quot;\\n&quot;;\n<\/code><\/pre>\n<p>The variable $end_time is never set so your calculation will never work.  This is throwing errors in my test environment.<\/p>\n","protected":false},"template":"","class_list":["post-9847897","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9847897","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\/9847897\/revisions"}],"predecessor-version":[{"id":9847914,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9847897\/revisions\/9847914"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9847897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}