Forum Replies Created
-
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
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' ) ); }
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)."|");
sorry forgot to post the code.
https://pastebin.com/WhAjYBfSi 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 101i 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
Thank you for you help guys!
i installed wordpress and buddypress new. There is still the same issue.
any idea?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?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/cHuSWowith key parameter:
https://ibb.co/e3vZBoactivation:
https://ibb.co/k0thxTyes 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:
this one works:
the result with the key parameter in url:
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?
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
sorry posted in the wrong subforum.
can you please change it.thank You 🙂