Skip to:
Content
Pages
Categories
Search
Top
Bottom

wp_insert_user/wp_create_user problem with Buddypress


  • vasilkovsky
    Participant

    @vasilkovsky

    Hello guys.
    I’m working on creating users based on data from API response and everything is working fine, but I noticed database errors in debug.log, investigated and found it was related to wp_create_user() and bp_core_map_user_registration() conflict. bp_core_map_user_registration() hooked into user_register and is working with xprofile fields and leads to Warning: Undefined property: BP_XProfile_Component::$table_name_data and WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘.
    Commenting this action resolved issue.
    Any ideas how to fix this? Because 4 WordPress database error for 1 user creation is too much, and one API cycle is creating 100 users on my website..

  • You must be logged in to reply to this topic.
Skip to toolbar