John Blackbourn
Forum Replies Created
-
Forum: Plugins
In reply to: [User Switching] Users without ‘edit_users’ can switch rolesA user can only switch to another user if they have the ability to edit the target user (which WordPress by default maps to the
edit_userscapability) or they have been granted theswitch_to_userorswitch_userscapability.WooCommerce doesn’t have member profile pages so I would check whatever plugin it is you’re using for member profiles as well as any plugins you’re using for user role customisation.
Forum: Plugins
In reply to: [User Switching] Switch roleThanks for the message.
When you switch between users with User Switching, you genuinely get logged in as that user, there’s no pretending or mocking, and no overriding or filtering of user data or role data. The behaviour is identical to if you logged in with that user’s username and password.
What this ultimately means is if you’re seeing stale role data then there’s likely a caching issue. Perhaps you’re reading the role from a user object that was instantiated prior to switching user? The
wp_get_current_user()function and thecurrent_user_can()function all work as expected after switching user.Forum: Plugins
In reply to: [WP Crontrol] WordPress 7.0 Support StatusYes it’s tested and working on 7.0. I’m just yet to bump the supported version in the plugin.
Forum: Plugins
In reply to: [Query Monitor] memory issuesYeah a large number of PHP errors can eat up memory due to the size of the stack trace that’s collected alongside each one. Query Monitor version 4 reduces that memory usage considerably, but it’s still potentially unbounded.
The nuclear option is to disable error handling in QM completely:
define( 'QM_DISABLE_ERROR_HANDLER', true );Not ideal, but it’ll allow you to use all the other panels in QM.
Short of changing the way QM transiently stores the data that it collects, there’s not really anything I can do about this. Any attempt to put a limit on the number of queries or errors that QM collects immediately makes it less useful when you inevitably need to see that information.
QM also allows you to hide errors from certain plugins or themes, but this doesn’t stop the data being collected, it just prevents the admin toolbar from showing a coloured notification. Perhaps I need to introduce a new option for completely bypassing the collection of errors from certain plugins and themes.
Forum: Plugins
In reply to: [Query Monitor] The transparent background color of the QM windowThanks for the report. Can you send a screenshot please? And can you try switching to one of the default “Twenty” themes and see if the problem persists?
Forum: Plugins
In reply to: [WP Crontrol] wpcrontrol behavior and securityPlugin deactivation is covered here: https://wp-crontrol.com/docs/deactivation/
The reports about direct file access and missing nonces appear to be false positives. WP Crontrol has a pretty strict set of security and code scanning configuration, but I’ll double check to be sure.
Forum: Plugins
In reply to: [Query Monitor] PHP Fatal ErrorDoes this definitely only occur when Query Monitor is active? That’s an error from RevSliderAdmin.
Forum: Plugins
In reply to: [Query Monitor] The error message should be (force) wrap.Thanks, I’ll take a look at both of those issues.
Forum: Plugins
In reply to: [Query Monitor] what does gap like this mean?That means there’s PHP processing happening that Query Monitor hasn’t got visibility into.
It looks to be happening during the rendering of the page, between
wp_body_openandwp_footer. Likely caused by your theme, one of the plugins on your site, or Elementor itself.QM doesn’t show block rendering times on the timeline yet, but I hope to add it soon. But as you’re using Elementor I don’t think that will help anyway.
I’ll try to add more info that helps, but honestly if this is just a load of slow PHP processing then there’s nothing that QM can do to get visibility into it.
Forum: Plugins
In reply to: [Query Monitor] Can’t open overview in frontendA few people have been asking about a browser dev tools version of Query Monitor. This is now available for Chrome! Details here: https://querymonitor.com/wordpress-debugging/browser-extension/ .
Forum: Plugins
In reply to: [Query Monitor] Unable to sort DB Queries by time after updateYeah this is something I had to drop from version 4 due to time constraints and accessibility issues. I’m planning on adding it back in soon.
Forum: Plugins
In reply to: [WP Crontrol] OpenSSL ErrorYou’ll need to ask your web host or Cloudflare to take a look. It’s not something that the WP Crontrol plugin can fix.
Good luck!
Forum: Plugins
In reply to: [Query Monitor] Can’t open overview in frontendQM doesn’t force the admin toolbar to appear but it did used to show the top part of QM as a slim panel at the bottom of the screen so you could open it when the WordPress admin toolbar isn’t visible.
I didn’t think anybody was using it. I’ll see about adding it back in. See also https://github.com/johnbillion/query-monitor/issues/503.
To get around this you can temporarily re-enable the WordPress admin toolbar on the front end, open QM, then disable it again.
Forum: Plugins
In reply to: [Query Monitor] 7.0: Excessive lag when loading Classic EditorHave you been able to test this with Query Monitor version 4 yet? It’s generally less susceptible to the lag caused by a large DOM that affected prior versions.
I’ve been doing some testing with Classic Editor and WordPress 7.0 trunk and not been able to reproduce anything that lags or locks up the editor.
Forum: Plugins
In reply to: [Query Monitor] Error after update 4.0This issue should be fixed in the latest version. If you’re seeing any issues that aren’t
Cannot read properties of undefined (reading 'match')then please open a separate thread.Thanks!