Knut Sparhell
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] Suggestion: Disable object cache from wp-configThat seems to work just fine, thanks!
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Error configuring Site StatsYes, roles are edited and added. Depends on site. Using Members or WP User Manager.
Done
Forum: Plugins
In reply to: [Passwords Evolved] Fatal error after Jetpack updateNow Jetpack 10.8 is out and the exact same problem is back
Uncaught InvalidArgumentException: Container doesn't have a value stored for the "password.generator" key. in .../plugins/passwords-evolved/src/DependencyInjection/Container.php:94
Is it possible to protect against this going fatal?
- This reply was modified 2 years, 11 months ago by Knut Sparhell.
Update to 2.9.4 for the fix.
This plugin only works with cPanel, as stated in the description.
As said.
After some misunderstandings, I got it right, as this about single site installations (not a multisite, as I assumed).
Please upgrade to version 2.7 or later and add this to you wp-config.php:
define( 'WF_CPANEL_EMAIL_SITE_DOMAIN_ONLY', true );
Thanks for suggesting this, and many thanks for your patience. I close this as resolved. If any issues, please open a new thread.
It works here, so you must debug.
Verify version 2.6.2-beta
Verify being a site administrator user, not a Super Admin user
Verify looking at page wp-admin/admin.php?page=wf-cpanel-email-accountsecho or var_dump some info inside your filter function, like
$site->domain
and return array$allowed_emails
not being empty.I think this will need an extra filter to allow even other domains for site admins, or always allow for
$_SERVER['HTTP_HOST']
.Please reply if interested and have confirmed that it currently does not work. I may try to find a safe fix.
Please update to and test version 2.6.2-beta from development version
Then add something like this in a plugin or functions.php:
add_filter( 'wf_cpanel_email_site_admin_emails', function( array $allowed_emails, \WP_Site $site ) { if ( $site->domain === 'domainb.com' ) { $allowed_emails[] = '[email protected]'; $allowed_emails[] = '[email protected]'; $allowed_emails[] = '*@domainb.com'; // for default } return $allowed_emails; }, 10, 2 );
- This reply was modified 3 years ago by Knut Sparhell.
By “a particular set” do you mean limiting to certain email addresses, not all on domain, for Administrators?
In that case such set has to be defined somewhere, and I may add a filter, passing back the site, in a soon upcoming development version, for you to test. Assuming you are able to add filters in another plugin or functions.php.
Yes, site administrators can manage all email addresses on the subsite domain (as defined as home_url seen on /wp-admin/network/sites.php), but not the ones belonging to other domains found in cPanel. Is this not working for you?
Other users can manage their own (by user_email) if, and only if, they, or their role, has granted a custom capabilty “cpanel” (and their registered user_email is on site domain).
Forum: Plugins
In reply to: [WooCommerce] Fatal error with adin features filter on PHP 8.xSame error if ‘woocommerce_admin_features’ filter returns an empty array.
This should be reported to WooCommerce since returning any array should not trigger a fatal.