Skip to:
Content
Pages
Categories
Search
Top
Bottom

Use bp_core_signup_user on another plugin.


  • stokim2012
    Participant

    @stokim2012

    Hi there!
    I would like to use BP verification email system using bp_core_signup_user function on my sign-up widget plugin.
    It creates members on my db, but failed to add users on ‘signups’ table.
    I found the error log:

    Notice: Undefined property: BP_Members_Component::$table_name_signups in /wp-content/plugins/buddypress/bp-members/classes/class-bp-signup.php on line 323
    
    WordPress database error Incorrect table name '' for query SHOW FULL COLUMNS FROM <code></code> made by require('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, wsl_process_login, wsl_process_login_end, wsl_process_login_create_wp_user, bp_core_signup_user, BP_Signup::add

    I found the reason:
    1) bp_core_signup_user call the BP_Signup::add()
    2) BP_signup::add() call the buddypress()->members->table_name_signups for table name
    3) However, it cannot retrieve buddypress()->members->table_name_signups and shows error code like above.

    I’m sorry, but I’m newbie developer to WordPress and it’s kind of scope problem maybe. How can I solve this problem?

    Many thanks. Please help 🙂

    Sincerely,
    Jen

Viewing 1 replies (of 1 total)

  • stokim2012
    Participant

    @stokim2012

    I think the priority of plugin load is problem.
    So buddypress()->members->table_name_signups is not defined.
    How can I load my plugin after buddypress()->members->table_name_signups ?
    Many thanks 🙂

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar