Hi there,
Anyone experienced this issue before when submitting a comment? Replying to comments also gives an error.
Β Hope someone can help us! Thank you in advance!
Β
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpDiscuz community!
Merry Christmas and Happy Holidays! π
Thanks for you quick reply! I am afraid I cannot share url because it's an internal site, anything specific I can look for what could help? Some users can still comment, others can't. Any idea's what it could be?
Thanks for your quick action πΒ
Hey @asti, thanks for your reply.Β
We tried to add this line of code in theme>function: add_action("user_register", function ($user_id) { $user = get_userdata($user_id); if (empty($user->data->user_email)) { $args = array( "ID" => $user->id, "user_email" => uniqid() . "@example.com", ); wp_update_user( $args ); }});
Β
As suggested here: https://wpdiscuz.com/community/?wpfs=field%20value%20invalid However, our users all have an email address and it still gives the same error message. What can we edit in the code? Is the email field the only issue here?