Skip to:
Content
Pages
Categories
Search
Top
Bottom

profile edit error for multicheckbox – more error details ?


  • shanebp
    Moderator

    @shanebp

    A required profile field, a multicheckbox, just started throwing an error when edited by users:

    “There was a problem updating some of your profile information, please try again.”

    Any changes to any fields on the first page of ‘edit profile’ will throw that error when saved.
    However, any field other than one specific field will show the saved change.
    There is only one multicheckbox on this page and changes to it are not saved.

    All the fields on this page are saved in serialized format.

    So I’m stumped.
    No changes have been made to profile fields in admin panel.
    Subsequent edit profile pages have multicheckboxes that can be edited and saved without problem – these aren’t serialized.

    Any ideas re what the problem could be?
    Something corrupted in serialization?

    Is there a way to get a more detailed error message? Something less generic?

Viewing 3 replies - 1 through 3 (of 3 total)

  • shanebp
    Moderator

    @shanebp

    My fix –

    In bp-xprofile.php
    In function xprofile_set_field_data

    I changed this line
    `if ( $is_required && ( empty( $value ) || !strlen( trim( $value ) ) ) ) { `

    to
    `if ( $is_required && ( empty( $value ) ) ) { `

    And changes are now saved.
    I do not know why the strlen check was causing a problem.


    r-a-y
    Keymaster

    @r-a-y

    Thanks for posting about this problem.

    This is fixed in the upcoming release of BP, though not for v1.2:
    https://buddypress.trac.wordpress.org/ticket/3189

    If you encounter any other bugs, please post them on BuddyPress Trac:
    https://buddypress.trac.wordpress.org/newticket

    Login with the same credentials you use on buddypress.org.


    technogenii
    Member

    @technogenii

    I have BuddyPress Version 1.2.9 – I just installed it today, and I have this exact same problem. Is there a fix that doesn’t have me playing in the code?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘profile edit error for multicheckbox – more error details ?’ is closed to new replies.
Skip to toolbar