stefanbg
Forum Replies Created
-
This solved the logic.
Thank you.It was a build mistake. There was no user in the registration form, so replacing email with email/user field, solved the issue.
Anyway, some form checks would improve this form build workflow.
- This reply was modified 5 years, 9 months ago by stefanbg.
Forum: Plugins
In reply to: Possible fix for sudden redirect loop at wp-login with reauth=1Hello, I would like to contribute to the community and also since this problem was very annoying. Non of the solution worked for me. I did not install any plugins before it happened so definitely I think it is a WordPress bug!
My exact errors:
Via WP debugger. After login screen came white screen with this error.Fatal error: Class 'PasswordHash' not found in /var/www/public_html/bg-news.net/wp-includes/pluggable.php on line 2079
Via apache error log.
PHP Fatal error: Class 'PasswordHash' not found in /var/www/public_html/example.net/wp-includes/pluggable.php on line 2138, referer: https://example.net/wp-login.php?redirect_to=http%3A%2F%2Fexample.net%2Fwp-admin%2F&reauth=1
How I did solve the problem.
1. In DB I edited my admin password to plain text password.
2. Added these lines of code to pluggable.php. Basically now WP recognizes non hashed passwords.
Here is the edited extracts of pluggable.php` function wp_check_password($password, $hash, $user_id = ”) {
<——>global $wp_hasher;<——>//20170713 Added by Stefan
<——>$check=($hash==$password);
<——>return apply_filters(‘check_password’, $check, $password, $hash, $user_id);`… and a bit lower
`function wp_set_password( $password, $user_id ) {
<——>global $wpdb;<——>//$hash = wp_hash_password( $password );
<——>//20170713 Changed by Stefan
<——>$hash=$password;`Hope this helps someone, because googling did not help me.
anybody?
how to change the time the activation link is active for email change and registration activation?