wp-calypso
wp-calypso copied to clipboard
If Page Optimize plugin is not active the Calypso Site's Performance settings links to error "Sorry, you are not allowed to access this page."
Quick summary
If a site has the Page Optimize plugin deactivated and clicks the Performance settings menu on the https://wordpress.com/sites page, it'll load a "Sorry, you are not allowed to access this page." error instead of the Page Optimize settings at wp-admin/options-general.php?page=page-optimize
Steps to reproduce
- On any Atomic site disable the Page Optimize plugin.
- Starting from https://wordpress.com/sites click the three dots beside your Atomic site's domain.
- Click Performance settings
What you expected to happen
To see a contextual error in Calypso telling me the Page Optimize plugin needs to be active to view its settings or at the very least activate the plugin automatically so the Page Optimize plugin's settings page loads at wp-admin/options-general.php?page=page-optimize.
What actually happened
I see the error "Sorry, you are not allowed to access this page." which is not very helpful, as it doesn't tell the user why they're not allowed, or how to fix it.
Impact
Most (> 50%)
Available workarounds?
Yes, easy to implement
If the above answer is "Yes...", outline the workaround.
Activate the Page Optimize plugin.
Platform (Simple and/or Atomic)
No response
Logs or notes
No response