Skip to content

hotfix for class loading#2

Merged
Ayesh merged 1 commit intoAyesh:masterfrom
My1:patch-1
Dec 31, 2017
Merged

hotfix for class loading#2
Ayesh merged 1 commit intoAyesh:masterfrom
My1:patch-1

Conversation

@My1
Copy link
Copy Markdown
Contributor

@My1 My1 commented Oct 23, 2017

apparently the class password hash isnt yet present when trying to access it, maybe a newer version changed it.

[23-Oct-2017 08:28:42 UTC] PHP Fatal error:  Uncaught Error: Class 'PasswordHash' not found in /home/my1devcon/public_html/wptest/wp-content/plugins/password-hash-disabled/wp-php-password-hash.php:64
Stack trace:
#0 /home/my1devcon/public_html/wptest/wp-includes/user.php(162): wp_check_password('test', '$P$BzCPKMBr7KO3...', 1)
#1 /home/my1devcon/public_html/wptest/wp-includes/class-wp-hook.php(298): wp_authenticate_username_password(Object(WP_User), 'My1', 'test')
#2 /home/my1devcon/public_html/wptest/wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Array)
#3 /home/my1devcon/public_html/wptest/wp-includes/pluggable.php(532): apply_filters('authenticate', NULL, 'My1', 'test')
#4 /home/my1devcon/public_html/wptest/wp-includes/user.php(85): wp_authenticate('My1', 'test')
#5 /home/my1devcon/public_html/wptest/wp-login.php(790): wp_signon(Array, true)
#6 {main}
  thrown in /home/my1devcon/public_html/wptest/wp-content/plugins/password-hash-disabled/wp-php-password-hash.php on line 64

apparently the class password hash isnt yet present when trying to access it, maybe a newer version changed it.
~~~
[23-Oct-2017 08:28:42 UTC] PHP Fatal error:  Uncaught Error: Class 'PasswordHash' not found in /home/my1devcon/public_html/wptest/wp-content/plugins/password-hash-disabled/wp-php-password-hash.php:64
Stack trace:
#0 /home/my1devcon/public_html/wptest/wp-includes/user.php(162): wp_check_password('test', '$P$BzCPKMBr7KO3...', 1)
#1 /home/my1devcon/public_html/wptest/wp-includes/class-wp-hook.php(298): wp_authenticate_username_password(Object(WP_User), 'My1', 'test')
Ayesh#2 /home/my1devcon/public_html/wptest/wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Array)
Ayesh#3 /home/my1devcon/public_html/wptest/wp-includes/pluggable.php(532): apply_filters('authenticate', NULL, 'My1', 'test')
Ayesh#4 /home/my1devcon/public_html/wptest/wp-includes/user.php(85): wp_authenticate('My1', 'test')
Ayesh#5 /home/my1devcon/public_html/wptest/wp-login.php(790): wp_signon(Array, true)
Ayesh#6 {main}
  thrown in /home/my1devcon/public_html/wptest/wp-content/plugins/password-hash-disabled/wp-php-password-hash.php on line 64
~~~
@Ayesh Ayesh merged commit d8f90bd into Ayesh:master Dec 31, 2017
@My1
Copy link
Copy Markdown
Contributor Author

My1 commented Dec 31, 2017

sure took a while especially considering the plugin description on WP says tested up to 4.9.1, which is evidently not the case.

@Ayesh
Copy link
Copy Markdown
Owner

Ayesh commented Dec 31, 2017

It took a while, yes. Sorry about that :( I have a Wordpress dev-master installation that I use to test the plugins. This wasn't caught for some reason. We'll get to the Argon2i issue (#1 soon) too.

Thanks for the PR. It helped a lot.

@My1
Copy link
Copy Markdown
Contributor Author

My1 commented Dec 31, 2017

WTF in the master it worked but not in the release? why that, that sounds crazy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants