Skip to content

Pluggable.php conflicts with BlueHost WordPress Plugin #102

@joe9663

Description

@joe9663

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions