“Additional Permissions Required” When WP-Optimize Cache Enabled
-
On my websites, I have Google SiteMap fully configured and activated.
When WP-Optimize Premium has the cache enabled, the Dashboard widget and Google SiteMap state “Additional Permissions Required”, despite those permissions being given.
When I disable the cache from within the WP-Optimize Premium plugin, the widget and Google SiteMap itself have no problem connecting. As soon as the cache is re-enabled, the connection is broken.
-
Thanks for opening a support topic and sharing details of this experience. If you previously granted Site Kit full permissions you’re correct that these should not be requested once more. If you can share the following we’d be happy to look into this for you:
- Your Site Health information. You can use this form to share privately if preferred.
- When you mention Google Site Kit are you using any other plugins with integrated Google services?
- Can you share screenshot or printscreen of the full error, which includes any browser console errors? You can use a service such as Imgur or JumpShare to share images here in the formums.
Let me know if you have any questions with the above.
I’ve added screenshots here:
and submitted the Site Health Information on the form.
Many thanks,
I’ve added screenshots here:
and submitted the Site Health Information on the form.
Many thanks
Many thanks for sharing the additional insights. While I’ll see if it’s possible for us to check the premium version of WP-Optimize I will check the free version first. In the meantime on your side can you keep WP-Optimize Pro active but inform me if the same occurs in the following situations:
- When you disable the cache option within the plugin and grant permissions once more(WP Optimize > Cache > Enable Page Cache
- When you purge your cache within the plugin and grant permissions once more (WP Optimize > Cache > Purge
- When you add the following valuesto the “URLs to exclude from caching” field (WP Optimize > Cache > Advanced Settings)
/wp-content/plugins/google-site-kit/dist/assets/js/(.*).js /wp-content/plugins/google-site-kit/
Note that after each check above please be sure to follow the setup steps to grant full permissions within Site Kit once more.
1. With the cache disabled, and permissions reauthorised, Google SiteKit functions normally.
2. After purging the cache and reauthorising permissions, Google SiteKit still states it requires additional permissions.
3. After adding the two URLs to exclude from caching and reauthorising permissions, Google SiteKit still states it requires additional permissions.Checking the requests made when calling the SiteKit Dashboard, the following occurs:
1. With cache disabled: stats are loaded with a 200 response.
2. With cache enabled: stats are not loaded, with a 403 response.Thanks for performing these additional checks. Please allow me some time and I’ll perform some additional checks on my side before reporting back to you here.
Many thanks for your patience on this. I’ve been performing various tests and on my side I’ve been unsuccessful so far in trying to recreate the same experience.
As it looks like you have another caching plugin active along with security and user role related plugins let’s see if there are any multiple plugin conflicts occurring. With that you can follow the steps below and share whether the same issue occurs?
- Login to your site from a Chrome browser incognito window
- Install and activate the Health Check & Troubleshooting plugin.
- Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
- From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google” and also “WP Optimize Premium”
- Attempt to view your Site Kit dashboard once more, while granting permissions if requested
- If the issue persists once more please “Wipe” your WP Optimize settings (“Settings > Wipe Settings > Save Settings“)
- Reload your Site Kit dashboards once more
You can exit troubleshooting mode afterwards.`
Let me know if you encounter the additional permissions once more following the steps above.
Thanks James,
I have followed the instructions above. I was unable to enable WP Optimize Premium from there as it was not available (it can only be Network enabled), but the Healthcheck plugin did disable the caching (Note: this was destructive as I could not re-enable the cache after using the Healthcheck plugin and have not identified a solution to fix this).I ran through every plugin, enabling one by one. At no point was Google Site Kit compromised and it continued to function. Throughout this, the caching remained disabled.
Thanks for the update. I haven’t tested the Health Check & Troubleshooting plugin in network mode. It’s a useful tool to rule out third party plugin conflicts.
When you mention you were unable to unable to re-enable to the cache I was hopeful we could check your site with just Site Kit and WP Optimize pro setup. That way we could rule out a multi plugin related issue. With some of the other plugins you have active this would be a useful test before I open a GitHub issue or discuss this further with the team.
Do you have WP Optimize setup on any other sites, in particular sites not part of your network?
@europoint Checking in here – are you still having trouble?
Hi @shetheliving,
Yes the issue still occurs. I have had to turn the plugin off at present as I have been unable to identify the issue.
I did try the plugin on a standalone site, but was unable to replicate the issue. The only difference I can see (having disabled all other plugins apart from WP-Optimize and Google SiteMap was that I have OpCache file caching enabled on the production website. However, even disabling that, I still had the issue in Production.
The closest I can narrow it down to is a conflict between either WP-Optimize premium and Google SiteMap or a combination of these with WordPress Multisite.
Thanks for providing an update. I’ve created the below GitHub issue from where we can troubleshoot this further:
https://github.com/google/site-kit-wp/issues/4015To proceed with troubleshooting this I’ll be performing addition tests using a Multisite setup. From your side can you inform me of the following:
- Does the same occur consistently from an incognito window?
- If you’re comfortable setting up the same configurations in WP Optimize there is an option to “Wipe Settings“. This may be a worthwhile check on your site if you’ve applied some non default settings.
Let me know if you have any questions with the above.
@europoint Just checking up with you to see if the same occurs when checking the above? I’ve been doing some testing on a multi site setup with Site Kit and WP Optimize without being able to reproduce so far. It would be great to know if you encounter the same in the above scenarios, while I check for other conflicting configurations.
@jamesosborne
My apologies, I thought I had replied to this.In answer:
1. The issue still occurs with an incognito window.
2. The issue still occurs if I wipe settings and reset them.I have also forcibly cleared browser cache, WP-Optimize cache, and OpCode cache for good measure with the same results. Only by disabling the WP-Optimize cache does it work.
I am looking to set up a sandboxed replication of the entire multisite instance so more destructive testing can be carried out, but I do have a sandbox site configured for which I can create you a login if that is of any use?
Super helpful insights, thank you very much! While we’re unable to user login accounts, including sandboxed or testing environments please so share whether you do encounter the same on any other network enabled sites- if of course you do have the time and are happy to perform these checks. We will continue testing regardless, and I’ll also check this with the team.
Another couple of checks you may wish to perform as the following:
- Does the same occur with only the Search Console module active (You can temporarily disconnect the other modules from your Site Kit settings page
- Does the same occur with your cookies plugin temporarily deactivated? From checking your site on tagassistant.google.com I noticed your Analytics is firing only when a user consents using your plugin notification
The topic ‘“Additional Permissions Required” When WP-Optimize Cache Enabled’ is closed to new replies.