• Resolved Raju Mandapati

    (@mvpspl619)


    Hi,

    We’re using BuddyBoss version 1.4.2 and BP Profile Search 5.3.3.

    When trying to access the Profile Search tab under BuddyBoss > Profiles page, we’re getting an error message Invalid post type.. The URL of this page is /wp-admin/edit.php?post_type=bp_ps_form.

    We debugged this further and realized that the post type bp_ps_form is being registered in buddyboss-platform/bp-core/profile-search/bps-start.php which in turn is being loaded from buddyboss-platform/bp-core/bp-core-profile-search.php.

    However, before the line include buddypress()->plugin_dir . 'bp-core/profile-search/bps-start.php'; is executed, the function returns after the check if ( defined( 'BPS_VERSION' ) || function_exists( 'bps_buddypress' ) ) {.

    We noticed that your plugin BP Profile Search is defining the constant BPS_VERSION which is preventing BuddyBossPlatform plugin to register the post type bp_ps_form.

    I’m not sure if this should be reported to you or BuddyBoss, so took a first stab by reporting it to you here.

    Any help from you would be greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi mvpspl619,

    As you probably know, BuddyBoss contains a basic version of BP Profile Search, so you have a choice between using the built-in version or the public BP Profile Search plugin; using both at the same time causes strange error messages as in your case.

    I suggest one of the following solutions:

    1) To use the basic built-in version, deactivate the BP Profile Search plugin;

    2) To use the public BP Profile Search plugin, deactivate the built-in copy; go to BuddyBoss -> Settings -> Profiles and uncheck the checkbox Enable advanced profile search on the members directory.

    If you wish, you could also report this issue to BuddyBoss so they can make the error message more helpful.

    Thread Starter Raju Mandapati

    (@mvpspl619)

    Thank you for the quick response Andrea. We followed your second recommendation and also reported the issue to BuddyBoss.

    Hello @dontdream – we had the same issue.
    We deactivated BP Profile Search plugin — but now if we click on Buddyboss profile search tab af of above, this redirect to /wp-admin/post.php?post=19294&action=edit with the message of Invalid post type — I cant figure out how to somehow reset this to reuse back the basic built-in version of Buddyboss. Any help is really appreciated.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hello af3,

    Deactivating the BP Profile Search plugin removes the conflict with its basic built-in version, no further step is required.

    In your case, if BP Profile Search is no longer active, you can try:

    1. Clearing your browser cache and other caching mechanisms you may have;

    2. Deactivating and then reactivating the built-in version, as explained above.

    Thanks @dontdream

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘invalid post type bp_ps_form’ is closed to new replies.