After recently upgrading to WordPress 3.1 I found that trying to open the Max Banner Ads admin page resulted in this error message:
You do not have sufficient permissions to access this page.
My first reaction was “The HELL you say! It’s my blog on my domain. You better effing believe I have sufficient permissions!”
In searching for a solution to this problem I saw several references to checking the wp_options table but no mention of exactly WHAT to look for.
Also, I remember having this problem a few years ago and at that time the answer turned out to be making a change to max-banner-ads.php. I wondered if it was possible that there is a similar edit needed to be compatible with WordPress 3.1 although I couldn’t find any reference to this being the solution in this case. Besides which, I’m NOT a php programmer, I probably couldn’t spot a problem there if it introduced itself.
After a LOT of trial and error I believe I’ve come up with a fix. At least so far it has worked on three blogs without a hitch.
Note: This works for me but I *cannot* guarantee anything, your mileage may vary, make backups first before you try this, if you break your blog trying this it’s not my fault, etc, etc.
Here’s the fix:
1, get the latest version (1.4) of Max Banner Ads
2. Deactivate the plugin on the blog in question
3. In your phpMyAdmin, open the blog’s database and drop these tables from the database
4. ftp to your site, change to the wp-content/plugins directory and delete the existing max-banner-ads directory and it’s contents.
5. upload version 1.4 of Max Banner Ads
6. re-activate the plugin
From there it *should* be working again.
The only downside is that all of your previous banner settings WILL be gone and you’ll have to set them up all over again.
On the other hand, if it’s working, who cares? Once you have your urls and images ready, setting up MBP is a breeze and shouldn’t take more than an hour at the very outside.
Meanwhile, because I believe this problem was largely caused by incompatibilities that resulted from a WordPress “upgrade”, the next time I apply such an upgrade I’m going to do it on a test blog first and make sure that all my plugins work before deploying it on my actual blogs!
[tags]wordpress, upgrade, 3.1, maxblogpress, max blog press, max banner ads, permissions, error, admin, mpb admin, fix, how to fix, fix mpb, fix max banner, fix mpb plugin, banner ads, rotator, banner ad rotator, banner plugin, plugin error, phpmyadmin, database, drop tables, drop db tables[/tags]