{"id":13006654,"date":"2020-06-18T23:48:57","date_gmt":"2020-06-18T23:48:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/invalid-post-type-bp_ps_form\/"},"modified":"2020-06-18T23:48:57","modified_gmt":"2020-06-18T23:48:57","slug":"invalid-post-type-bp_ps_form","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/invalid-post-type-bp_ps_form\/","title":{"rendered":"invalid post type bp_ps_form"},"content":{"rendered":"<p>Hi, <\/p>\n<p>We&#8217;re using BuddyBoss version 1.4.2 and BP Profile Search 5.3.3. <\/p>\n<p>When trying to access the <a href=\"https:\/\/shots.mabb.ly\/EdHFCW\">Profile Search tab<\/a> under BuddyBoss &gt; Profiles page, we&#8217;re getting an error message <code>Invalid post type.<\/code>. The URL of this page is <code>\/wp-admin\/edit.php?post_type=bp_ps_form<\/code>. <\/p>\n<p>We debugged this further and realized that the post type <code>bp_ps_form<\/code> is being registered in <code>buddyboss-platform\/bp-core\/profile-search\/bps-start.php<\/code> which in turn is being loaded from <code>buddyboss-platform\/bp-core\/bp-core-profile-search.php<\/code>. <\/p>\n<p>However, before the line <code>include buddypress()-&gt;plugin_dir . &#039;bp-core\/profile-search\/bps-start.php&#039;;<\/code> is executed, the function returns after the check <code>if ( defined( &#039;BPS_VERSION&#039; ) || function_exists( &#039;bps_buddypress&#039; ) ) {<\/code>. <\/p>\n<p>We noticed that your plugin BP Profile Search is defining the constant <code>BPS_VERSION<\/code> which is preventing BuddyBossPlatform plugin to register the post type <code>bp_ps_form<\/code>. <\/p>\n<p>I&#8217;m not sure if this should be reported to you or BuddyBoss, so took a first stab by reporting it to you here. <\/p>\n<p>Any help from you would be greatly appreciated. <\/p>\n","protected":false},"template":"","class_list":["post-13006654","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13006654","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\/13006654\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13006654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}