Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • @pauapau

    Participant

    or maybee not.

    it is not a good idea watch into the code when you drunk to much beer 😀

    so ignore the post before.

    tomorrow will be a better day to program :D:D

    @pauapau

    Participant

    thank you r-a-y:)

    buddpress adds the invailid-key error at bp-members-function.php:1856
    so why it is “wrong”(if ! $wpdb->query…) that $wpdb->query can update the value?
    i dont undestand it 🙁

    // Change the user's status so they become active.
    			if ( ! $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_status = 0 WHERE ID = %d", $user_id ) ) ) {
    				return new WP_Error( 'invalid_key', __( 'Invalid activation key.', 'buddypress' ) );
    			}

    @pauapau

    Participant

    update:
    hmm i dont know. but it seems like the $user->errors is empty with var_Dump. but with print_r not.

    also in the backend the user is activated when he clicks on the activation link. but $user->errors will give an error.

    error_Log:
    [17-Jul-2018 17:27:38 UTC] PHP Notice: Trying to get property of non-object in /mnt/web313/d2/98/57260698/htdocs/goUnhooked/wp-content/plugins/buddypress/bp-members/screens/activate.php on line 118
    [17-Jul-2018 17:27:38 UTC] error varDump:||
    [17-Jul-2018 17:27:38 UTC] error print_r:|1|

    
     error_log(" error varDump:|".var_dump($user->errors)."|");
     error_log(" error print:|".print_r($user->errors)."|");
    

    @pauapau

    Participant

    sorry forgot to post the code.
    https://pastebin.com/WhAjYBfS

    @pauapau

    Participant

    i found the reason

    in https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-members/screens/activate.php?marks=98#L62
    at:line 101

    i found the reason. php thinks $user->errors is not empty. but it is.

    so $user->errors is empty. as my error_log says
    [17-Jul-2018 16:51:26 UTC] error activte :

    cheers pauapau

    @pauapau

    Participant

    Thank you for you help guys!

    i installed wordpress and buddypress new. There is still the same issue.
    any idea?

    @pauapau

    Participant

    push.

    has somebody an idea? what is wrong? and why?

    i could edit the core activation function.
    so which file and class/function will activate the user?

    @pauapau

    Participant

    all images again. i don’t why the forum doesn’t load the images. so i post the raw link.

    without key parameter:
    https://ibb.co/cHuSWo

    with key parameter:
    https://ibb.co/e3vZBo

    activation:
    https://ibb.co/k0thxT

    @pauapau

    Participant

    yes i know. and actually there is not this massage. “congratulations! you’r a member”
    i just wrote it to understand my problem.

    here are two screen shots to see what is wrong.

    this doesn’t work:
    without key parameter in url
    without key parameter in url

    this one works:
    with key parameter in url

    the result with the key parameter in url:
    activation

    @pauapau

    Participant

    i deactivated all plugins. but the issue is still there.

    do you know path to the activation function? then i can fix it by my own.

    or do you have other ideas?

    @pauapau

    Participant

    Hey,
    Thank you for your help.
    But why should I have to register a component?

    I just need the notification-Id.

    Thank you.

    Cheers pau

    @pauapau

    Participant

    sorry posted in the wrong subforum.
    can you please change it.

    @pauapau

    Participant

    thank You 🙂

Viewing 13 replies - 1 through 13 (of 13 total)
Skip to toolbar