Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pluggable.php conflicts with BlueHost WordPress Plugin #102

Open
joe9663 opened this issue Apr 21, 2022 · 0 comments · May be fixed by #103
Open

Pluggable.php conflicts with BlueHost WordPress Plugin #102

joe9663 opened this issue Apr 21, 2022 · 0 comments · May be fixed by #103

Comments

@joe9663
Copy link

joe9663 commented Apr 21, 2022

Description

Plugin installations and updates fail when the BlueHost WordPress Plugin is activated alongside any plugin that uses the shared library.

Error reported to us:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Newfold\WP\Module\Secure_Passwords\random_password(), 1 passed in ______ /public_html/wp-includes/class-wp-hook.php on line 307 and exactly 4 expected in ______ /public_html/wp-content/plugins/bluehost-wordpress-plugin/vendor/bluehost/wp-module-secure-passwords/secure-passwords.php:274

The random_password filter used in the library only passes a single parameter, but it was changed in WP 5.3.0 to require 4 instead.

Solution

Changing the filter in Pluggable.php to match the updated version seems to fix the issue.

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 a pull request may close this issue.

1 participant