[Plugin: Akismet] Settings broken in Multisite
-
Just a heads up that since 2.5.5 the settings/key screen/page is broken in WordPress multisite. All users, even super admin get an “insufficient Permissions” wp_die error.
-
I had the same issue – just deleted (moved) the akismet folder from /wp-content/plugins
Haven’t tried 2.5.6 to see if it’s fixed, but no mention in the changelog…
Drove me nuts for a bit, as I was quite sleep-deprived and was about to totter off to bed when I updated 3 plugins and hit the error…
I’ve just confirmed the issue with 3.4 and Akismet 2.5.6 for what it’s worth.
The Akismet Configuration option doesn’t show up under the Plugins menu (likely because the permissions check is returning False). If you follow the link to the settings page from the Plugins page, you’ll get the die page that says you don’t have permission to be here. :/
Could you provide more details on what exactly is failing. I’ve got a MS install using WP 3.4 and the latest Akismet and I’m able to get to the /wp-admin/admin.php?page=akismet-key-config page as a super admin just fine.
When logged in as a network admin, and I visit /wp-admin/?page=akismet-key-config, I get “You do not have sufficient permissions to access this page.”, just like OP.
Not sure what other details I can give you… got suggestions?
Update: I’d disabled all other plugins but not cleaned up my mu-plugins. I no longer have the issue and have confirmed it works as expected on a fresh install.
Thanks for taking time to respond!
/wp-admin/?page=akismet-key-config works fine for me.
However, in network admin, when Akismet is network activated, the link in the plugin description looks like this:
/wp-admin/network/admin.php?page=akismet-key-configAnd that link gives the permissions error.
Great catch, Sergey!
Interesting about the network admin link. I’ll see about re-creating that and then tracking down a fix.
Ok, I see where that link is coming from. It is part of the text description for the plugin.
Since that link isn’t part of the regular code there isn’t a good way to conditionally change it based on viewing in the network admin. So for now this isn’t going to change. I’m not sure that removing the text (the other option) would be that helpful.
Perhaps it would be possible to actually add a network admin page with a text explaining that one should visit the individual sites’ configuration pages.
You can also get to this error page by doing the following:
Visiting /wp-admin/plugins.php on a site where Akismet is NOT activated. The link to the configuration page is still there in the description, but following it takes you to a Permission Denied page.
Perhaps the best fix is to remove the link from that section, and put it with the Action Links in the other column, where it can be controlled through plugin code via filters, not show up on the network admin, and only be present when the plugin is active.
Both reasonable suggestions, I’ll see what we can do for the next release.
Give this patch a try – http://plugins.trac.wordpress.org/attachment/ticket/1542/akismet.diff – let me know what you think.
The patch looks good. Now it’s only possible to visit the configuration page if the plugin is activated.
Should I try to install that patch or wait for an update to the plugin?
One more bug I noticed is the subsites see the plugin as activate-able even after the “Network Activate” was done, but before the mainsite config page was found and the key entered.
After the key was entered, the Akismet plugin disappeared from the subsites’ plugin list (which is good).
But now, one of my subsites still says that I need to enter my key. Do I need to enter the key into every subsite? If true, I’d like to make a suggestion: I think a more consistent design would be that the network super admin should be able to enter the key once for all subsites if it was network activated. As it is, when network activated, an “invalid” error shows up on every subsite dashboard.
- The topic ‘[Plugin: Akismet] Settings broken in Multisite’ is closed to new replies.