The latest WordPress update have many bugs fixed and tighten securities on administration pages. Now many blogger who have their blogs setup using WordPress will be more confident and secure specially on using plugins where the source is not really known to be credible. But lately there was a problem on some plugins we are using that have no latest update. Specially the Adsense Deluxe WordPress plugin where the author have not made an update since 2006. Maybe the guy lost interest on this precious plugin. I can’t think of a good reason rather than having lack of user support (donation) because the plugin is free, I think there will be no initiative for users to pay it. So I think it will take a longer time or maybe no update at all for those who wants to use it.
But for those bloggers out there who are still using this plugin, I know the value of this because not only can you use it on Adsense, you also use this on any advertising network for displaying ads on your blogs. After I updated my wordpress to version 2.8.1, I have encountered a bug on this plugin. What happened is I can’t access the Adsense deluxe administration page and only saw a blank page with this message “You do not have sufficient permissions to access this page” so I can’t edit nor see what’s happening in there. I thought someone already hacked my administration page and fear that some malicious code had been running again so I made some research. Thanks to this site that I discovered that you only need to replace a variable called hook in PHP. Many plugin used admin_init instead of admin_menu inside the plugin code. In the case of adsense deluxe, the hook used is admin_head that should be replaced by admin_menu. So to make it work, first thing to do is disable the adsense deluxe plugin. Maybe I need no explanation on this part if you are a WordPress user. Then open up your FTP program and go to the plugins directory and transfer the file adsense-deluxe.php from the subdiretory adsense-deluxe_wp_plugin_v0.8 to the plugins directory.

Then delete the adsense-deluxe_wp_plugin_v0.8 directory and all of the contents and activate it by going to Plugins link on the left side of your wordpress admin panel (The reason why you have to delete it is because you won’t be able to edit your adsense code once you get inside the adsense deluxe admin page). Then open your plugin code and click edit on your installed adsense deluxe plugin. Then look for the code below and change the admin_head to admin_menu. See what I did:

Then click the save button. Now you will be able to view the admin page and edit the contents of your adsense deluxe plugin page.
Tip on How to Limit the Ads on The Blog HomePage
One flaw of this plugin is the number of ads shown on the homepage if you want your ad shown on every post. The default number in the plugin code was 3 but actually it is four. Four ads will be shown per page. So, to limit it to 3, you just have to replace 3 to 2 on the code. To do this, as what we did previously, edit the code by going to the plugin admin panel and see the sample below:

Posted by Manuel
Manuel Montala was an online entrepreneur who enjoys blogging about entrepreneurship and gathering information for his blog to help budding entrepreneurs. You can also reach him on twitter: http://twitter.com/mmontala
Like this post? Why not share it with your friends on facebook? Click the facebook share button!
The latest stories from Entrepreneur.
Does Your Business Know When to Stop Selling?
26 Jan 2012 at 5:31pm
This week's upcoming 'Shark Tank' episode spotlights the importance of learning one often-overlooked overlooked skill: When to stop selling and close the deal.
Entrepreneur's Growth Conference: Live from California
9 Jan 2012 at 11:00am
We're heading to Long Beach, Calif., on Wednesday to spotlight growth opportunities in 2012. Plan to watch Chris Brogan's live-streamed keynote speech.
Tips to Manage a Successful Sales Team
12 Jan 2012 at 12:30pm
The traits that make top sales pros great also can lead to difficulties for managers. Here's how to adapt your managerial style so sales can soar.
What to Do When You've Built It and No One Comes
30 Jan 2012 at 10:00am
When you have something to sell, being stuck in one place isn't always a winning idea. Fortunately, there is an alternative.


{ 3 trackbacks }
{ 13 comments… read them below or add one }
Thanks for your blog post. It seems to have worked just fine for me – hand editing v0.8 of adsense-deluxe.php and wordpress 2.8.2 will now let me back in to the settings page.
thanks !
Muchas gracias por tu explicacion, lo use en mi blog y funciono a la perfeccion, e hize un post en español explicando como solucionar el problema:
Thanks for the tip, now I’ve been able to get the plugin working again. What I did was even faster…I just edited the plugin right from my WP admin and swapped out admin_head for admin-menu. Worked like a charm!
Really, thank you.
Hello,
I have a question.
If I deactivate the plug-in, then all these ads settings which I have created would get lost ??
And do I have to create all of them again after I re-activate it ??
Thanks,
Choto Cheeta,
Sorry for the late reply. No your settings will not disappear. You can activate and deactivate it and the setting is intact.
Thanks a million,This was all I needed.
How ever for those using the recent versions ,where you upload adsense-deluxe.php directly to the wp/plugging directory and those that do automatic installation via the zip,You can proceed straight ahead to edit as stated above,I also found the Max ad page edition advise very useful.Thanks again.
Excellent Stuff ! Keep it up in near future.
With regards,
Mr SIngh
Thx man, nice fix
OMFG – You are a life saver. Thank you so much. I have been fighting with this for almost a week. I found the hook fix from another website but nothing to offer me any advice after I kept receiving the permissions error.
100 Kudo’s to you!
Hi
As u prescribe i did the same and i got permission to access but the problem is that when i go to setting and add the adsense cose and update it it again show me the permission error can u plz help me out this
@John White
Hello, have you deleted the adsense plugin folder in your webhost? usually that error occurs because you need to delete it.
Thanks!
Do Not be Shy. Share Your thoughts!