BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 17

    Also, the second issue is it loads the profile values of user to which I am viewing the profile loads to the registration form fields as default value.

    So if I am visiting the profile of user ‘xyz’ with the full name give as ‘xyz abc’, the registration form have ‘xyz abc’ as default value of Full name field.

  • Participant
    Level: Initiated
    Posts: 17

    Hi Brajesh,

    Not by disabling, If I remove my custom code, it removes the 404 error. But it have the js error and ajax registration not working at all.

    So the problem is, if I resolve JS issue, it give 404 page and if remove that resolution, gives registration not working.

  • Participant
    Level: Initiated
    Posts: 17

    the condition is placed on member type drop down created through these two plugins, bp-member-type-generator (Member type for Buddypress) and bp-xprofile-member-type-field (Create profile field based on member type created as dropdown)
    Hope this will help.

  • Participant
    Level: Initiated
    Posts: 17

    Hi Brajesh,

    Thanks.

    I have undo all the changes I have did. Infact I just placed only one condition in core file which I have removed and now there is no modification in core files.

    For ajax registration, I have used bp-ajax-registration plugin. Also, I have used conditional-profile-fields-for-buddypress plugin for conditional fields.

    So the error on registration popup when on profile page is due to plugin itself and not through any custom code.

  • Participant
    Level: Initiated
    Posts: 17

    Hi Brajesh,

    Thanks for the reply.

    Actually the problem starts with Buddypress AJAX registration form issue. We have added on conditional dropdown to the registration form. The site already had few old registrations done.

    When we try to visit the profile, we get the field js error as that old profile does not have the value of new field based which we have condition made to display other fields. The buddypress by default loads the fields only created when user is register so new fields are not loading on ajax registration popup form. We resolve it by putting the condition in bp_displayed_user_id() function to set $id = user id only if user is logged in. By this now the registration form is loading fine with all fields when we view the profile without logged in.

    But it creates the new issue as non-loggedin user will return 0 when we call bp_displayed_user_id() and redirects to 404.

    I have undo the code I have modified and now it is still giving the 404 page. To further invest, it get redirect to 404 from bp_core_catch_no_access() function bp-core-catchuri.php file.

    The condition that fails there is bp_is_blog_page() return false.

    Again, I have removed all modification I have done and found above condition with throw out to 404.

    Please help me to track this.

    Thanks