{"id":12328578,"date":"2020-01-15T15:09:29","date_gmt":"2020-01-15T15:09:29","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-loading-post-edit-screen\/"},"modified":"2020-01-15T15:18:35","modified_gmt":"2020-01-15T15:18:35","slug":"error-loading-post-edit-screen","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-loading-post-edit-screen\/","title":{"rendered":"Error loading Topic Edit screen"},"content":{"rendered":"<p>Hi,<\/p>\n<p>Congrats on the plugin. I&#8217;ve been using it without issues for years.<\/p>\n<p>However, I ran into the following problem today:<\/p>\n<blockquote><p>PHP Recoverable fatal error:  Object of class WP_Post could not be converted to string in \/path\/to\/wp-content\/plugins\/buddy-bbpress-support-topic\/includes\/functions.php on line 789<\/p><\/blockquote>\n<p>I managed to temporarily fix it with the following piece of code (starting on line 782):<\/p>\n<pre><code>if ( is_object( $topic_id ) ) {\n    $topic_id = $topic_id-&gt;ID;\n}\n<\/code><\/pre>\n<p>It&#8217;d be great if this would be included in the next version.<\/p>\n<p>Cheers,<br \/>\nVinny<\/p>\n","protected":false},"template":"","class_list":["post-12328578","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12328578","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12328578\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12328578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}