The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Undefined index: us...
 
Share:
Notifications
Clear all

Issue [Solved] Undefined index: user_pass in /wp-includes/user.php when creating account

2 Posts
2 Users
0 Reactions
1,899 Views
Posts: 5
Topic starter
(@troid)
Active Member
Joined: 3 years ago

Core: 6.1.1
PHP: 7.3.33

Hello,

When using the comments section as a new user signing up for the first time, with WP_DEBUG set to true:
1. Choose social media account to authenticate with
2. Follow sign-in flow as normal
3. Upon successful authentication, response from server displays the following Warnings to user:

Notice: Undefined index: user_pass in /home/troid/public_html/wp-includes/user.php on line 2085

Warning: Cannot modify header information - headers already sent by (output started at /home/troid/public_html/wp-includes/user.php:2085) in /home/troid/public_html/wp-includes/pluggable.php on line 1078

Warning: Cannot modify header information - headers already sent by (output started at /home/troid/public_html/wp-includes/user.php:2085) in /home/troid/public_html/wp-includes/pluggable.php on line 1079

Warning: Cannot modify header information - headers already sent by (output started at /home/troid/public_html/wp-includes/user.php:2085) in /home/troid/public_html/wp-includes/pluggable.php on line 1080

Warning: Cannot modify header information - headers already sent by (output started at /home/troid/public_html/wp-includes/user.php:2085) in /home/troid/public_html/wp-includes/pluggable.php on line 1416

Warning: Cannot modify header information - headers already sent by (output started at /home/troid/public_html/wp-includes/user.php:2085) in /home/troid/public_html/wp-includes/pluggable.php on line 1419

 

This steps still successfully create the user an account and upon trying to comment a second time with that same account the user will log in successfully without any warnings/errors and be able to comment. These warnings are only displayed on first time authentication which creates an account.

Additional Info:
In order to make the comments section display per post, the following code was added to the function.php file:

function my_wpdiscuz_shortcode() {
    $html = "";
    if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
        ob_start();
        include_once ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
        $html = ob_get_clean();
    }
    return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");

 

1 Reply
Asti
Posts: 7647
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi @troid,

Please note, the user registration and account creation don't have any relation to the wpDiscuz plugin. 

You should find the problem maker by deactivating the plugins/theme one by one. You should check after each deactivation to find the problem maker.

Keep the cache plugin (if you have) deactivated during this testing process.

Don't forget to press Ctrl+F5(twice) on the frontend each time before checking.

Share: