-
Notifications
You must be signed in to change notification settings - Fork 800
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
Connection: compatibility issue when using Passwords Evolved plugin (PHP 8.1) #23835
Comments
Seeing the same issue with latest version of Jetpack v11 and Passwords Evolved v1.3.2 using PHP 7.4.
Resolved I was able to resolve my issue but I'm not sure how I did that. Here are a few things I did:
|
Just following up with a few observations. This PHP fatal error seems to go away if the WordPress sites are able to complete a full site sync with Jetpack or resolve Jetpack connection issues. Apparently I have a number of sites where the Jetpack connection is broken and needs to be manually resolved. Just thought I'd mention in case that helps with troubleshooting. |
@austinginder Thanks for the extra details. Could you clarify whether your sites use a specific way of loading plugins (e.g. all required via composer) or if they're installed regularly? |
No all of the plugins are loaded the standard way. These sites are just experiencing a common Jetpack connection issue. This is what Running I also trying running I suspect fixing the Jetpack connection issue hides the fact that this plugin conflict exists, thus making it harder to reproduce. |
Thanks for the extra details. I broke a test site to try to reproduce, but no luck. Even though my connection is broken and Sync is stuck, I do not get a fatal when activating the Passwords Evolved plugin. Did you maybe experience the fatal at a different time, when taking a different action on the site? If you get the chance and have the option to do so, it may be worth trying to patch your installation with #24688, and see how that goes? Thank you! |
@jeherve The PHP errors happen when attempting to sign into the backend. Front-end is fine. Couldn't even load the I tried your patch and it actually made things worse. Both front-end and backend were giving PHP fatal errors. Looks like the same errors in the error log.
|
FYI: Issue remains on latest versions of Jetpack and Passwords Evolved :'( |
Impacted plugin
Jetpack
Steps to Reproduce
A clear and concise description of what you expected to happen.
Everything to be as normal, no errors
What actually happened
Page displays "Fatal error occurred on this site" (or similar) message created by WordPress Fatal Error handler.
Other information
`PHP Fatal error: Uncaught InvalidArgumentException: Container doesn't have a value stored for the "password.generator" key. in /.../wp-content/plugins/passwords-evolved/src/DependencyInjection/Container.php:94
Stack trace:
#0 /.../wp-content/plugins/passwords-evolved/src/Plugin.php(79): PasswordsEvolved\DependencyInjection\Container->offsetGet()
#1 /.../wp-content/plugins/passwords-evolved/pluggable.php(59): PasswordsEvolved\Plugin->get_password_generator()
#2 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php(132): wp_generate_password()
#3 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php(37): Automattic\Jetpack\Connection\Client::build_signed_request()
#4 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php(453): Automattic\Jetpack\Connection\Client::remote_request()
#5 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/class-plan.php(51): Automattic\Jetpack\Connection\Client::wpcom_json_api_request_as_blog()
#6 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/class-plan.php(67): Automattic\Jetpack\Search\Plan->get_plan_info_from_wpcom()
#7 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/class-plan.php(71): Automattic\Jetpack\Search\Plan->get_plan_info()
#8 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/class-plan.php(97): Automattic\Jetpack\Search\Plan->get_plan_info()
#9 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/initializers/class-initializer.php(208): Automattic\Jetpack\Search\Plan->supports_search()
#10 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/initializers/class-initializer.php(51): Automattic\Jetpack\Search\Initializer::is_search_supported()
#11 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(233): Automattic\Jetpack\Search\Initializer::init()
#12 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(169): Automattic\Jetpack\Config->enable_search()
#13 /.../wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(114): Automattic\Jetpack\Config->ensure_feature()
#14 /.../wp-includes/class-wp-hook.php(307): Automattic\Jetpack\Config->on_plugins_loaded()
#15 /.../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#16 /.../wp-includes/plugin.php(474): WP_Hook->do_action()
#17 /.../wp-settings.php(450): do_action()
#18 /../wp-config.php(118): require_once('/.../...')
#19 /.../wp-load.php(55): require_once('/.../...')
#20 /.../wp-admin/admin.php(34): require_once('/...')
#21 /.../wp-admin/index.php(10): require_once('/...')
#22 {main}
thrown in /.../wp-content/plugins/passwords-evolved/src/DependencyInjection/Container.php on line 94`
Same happened with update to Jetpack 10.1, bit later fixed. See #21165
Operating System
Linux
OS Version
No response
Browser
Other / Not applicable
Browser Version(s)
No response
The text was updated successfully, but these errors were encountered: