Fix AdSense Deluxe For WordPress 2.8.1
If you are using the AdSense Deluxe plugin and upgraded to WordPress version 2.8.1 and tried to access the AdSense Deluxe dashboard menu you probably got this message: ” You do not have sufficient permissions to access this page.” Here is the fix I found for it.
Please read and understand this post in its entirety before you attempt to edit your files. You may not have noticed any problem with the AdSense Deluxe plugin if its setup, because it still shows ads in the posts and you can still add the ad code into new posts. The error started in WordPress version 2.8.1 with (I guess) some additional security measures in that update. And since the AdSense Deluxe plugin is no longer supported by the author it looked like it was going to be another plugin rendered useless. But since this is a pretty popular plugin there are some pretty talented people (not me) using it and shared how they fixed it for themselves.
There are a two areas of code in the plugins file that need edited to gain access to the dashboard menu. To edit the plugin in the dashboard go to Plugins, Editor. On the top right select the Adsense-Deluxe plugin from the drop-down list to load it in the editor.
First make sure to backup the file and save it on your computer. Select all the code, copy it and save it as a text file in Notepad. You have been warned! Now you need to find the first area of code to replace toward the bottom around line 1013.
First you need to comment out the offending code, you could just delete it but I suggest keeping it in the file just in case things change back in the future. To comment out code in the plugin simply put /* on the line above the code and */ on the line under it as shown below:
Next you need to add the correct code to replace what was just commented out right below it. Here is the code to add:
function add_adsense_deluxe_menu(){
add_options_page(__('AdSense-Deluxe Configuration', 'adsense-deluxe'),
__('AdSense-Deluxe', 'adsense-deluxe'), 8, 'adsense-deluxe',
'AdsenseDeluxeAdminPage');
}
function AdsenseDeluxeAdminPage(){
require (WP_PLUGIN_DIR . '/adsense-deluxe.php');
}
The last part of code can just be replaced and that is around line 1095. Find and remove this code:
add_action('admin_head', 'add_adsense_deluxe_menu');
And replace it with this code:
add_action('admin_menu', 'add_adsense_deluxe_menu');
Finally scroll down and click Update File. That should gain you access to the AdSense Deluxe plugin menu in the WordPress dashboard for version 2.8.1. Remember this is for WordPress version 2.8.1 and AdSense Deluxe version 0.8. Things might change in the next version of WordPress or someone might pickup the development of the plugin and update it. So in other words this might be a time-sensitive solution. WordPress Max has no association with and assumes no free support for the AdSense Deluxe plugin, so use this guide at your own risk.
The source of this fix and more information can be found on the WordPress Support Forum. Use that link to get the code if you can’t copy it from this post.
Similar Posts:
- Clean Up WordPress Database
- Remove WordPress Blog Title And Description
- Add Comments To WordPress Pages
- Move WordPress Blog To Main Domain
If you liked this post, feel free to leave a comment that is relevant to the post or subscribe to the feed and get future articles delivered to your feed reader.
Sorry but due to the spamming of a few all comments are moderated and will appear when approved and all drive-by comments will be deleted!

















Comments
Thanks for your fix tutorial, its work for me..
Reply
Hi sir thanks this post must be useful for someone using the plugin yet thinking to upgreade to WP 2.8.1, by the way why bothering using plugin to display Adsense inside the post when it can be done easily only by inserting the ad code inside single.php?
Reply
Thanks for the tip and guidelines, being a WP newbie, I have a real hard time editing Adsense Deluxe, at least now I have a guide, will definitely try it out. A big thanks!
Reply
Thank you very much, I was really worried about that. I wanted to update WP (safety first) but didn’t want to lose adsense deluxe capabilities. Now I can upgrade freely, thanks a lot!
Reply
Well it was not long until the 2.8.2 version has been published.
Reply
thanks for giving the idea for fixing it on my blog & really it worked ver4y well!once again thanks for that!
Reply
Funny thing is that I never used an Adsense plugin on my sites. I just edit the template files and add the code there.
But I’ve always considered trying this kind of plugin..just been too lazy damn!
Reply
Thank you very much, I was really worried about that. I wanted to update WP (safety first) but didn’t want to lose adsense deluxe capabilities. Now I can upgrade freely, than!
Reply
One of my clients was having this specific issue and this provided a fix to the problem. This resource is very helpful
Reply
Thanks for the tips. I’m not yet using the AdSence plugin, but it’s on my list of things to get added to the site. Always good to have knowledge of stuff like this.
Reply
[...] Fix AdSense Deluxe For WordPress 2.8.1 Tags: adsense-deluxe WordPress WP 2.8 WP-Plugins Hat Dir dieser [...]
Since Adsense is primary source for Paying the web hosting charges for many Bloggers it is must for all the word press themes. For others this adsense may be the alternative source of income which may help them to run there households…
Reply
I think I must also put that plugin in my blog. Thanks a lot for this article. I have been thinking how can use adsense more easily.
Reply
Thanks for the tips even I prefer editing the template rather than using plugin
Reply
you mentioned you found the fix for this issue, i was wondering if you could share the sites that you frequent regularly to gather fixes, tips etc. i just stumbled across your site, it looks like it has tons of info that anybody can use, i sure plan to visit in the future to pick up whatever it is that could help me… but right now me and my brother are just starting out with wordpress, we are trying to gather as many valuable resources to help us speed up the learning process, that’s why i was asking about the sites that you trust… many thanks!
Reply
Jeff Replied:
July 22nd, 2009 at 6:11 pm
The link at the end of the post is to the WordPress forum and is where I got the information. I have no particular or frequent sites I just use Google.
Reply
Thank you very much, I was really worried about that. I wanted to update WP (safety first) but didn’t want to lose adsense deluxe capabilities. Now I can upgrade freely, than! Thanks again!
Reply
Thanks for the tips even I prefer editing the template rather than using plugin
Reply
Ah good! I didn’t even know there is a adsense plug-in but have wanted to add adsense to my new theme which is not adsense ready. Will bookmark these instructions. Thank you very much.
Reply
wow this is a great i used the adsense delux for posting of the ads.
it would help me to generate more revenue hopefully
Reply
Wee thanks! I’ve been using this plugin in my other blogs. I was wondering if the same fix is ok with wordpress 2.8.2?
Reply
I just want to give you a biggg “Thank You”.
This plugin is great
Finally they upgraded it for Wordpress 2.8
Cheers man. You got a bookmark from me.
Reply
Jeff Replied:
July 27th, 2009 at 4:22 pm
Whoa slow down cowboy! The AdSense Deluxe plugin hasn’t been upgraded since June 2006. This post is about a patch to keep it limping along a bit longer. And I found a problem with this fix in a certain circumstance too.
My suggestion is if you are not currently using this plugin to not start and find an alternative.
Reply
It’s better not using this plugin just for putting adsense, it’s only about putting adsense on template, you can edit the ads manually.
Plugins eat some resources of ur hosting
Reply
Really its nice blog.I wanted to update WP (safety first) but didn’t want to lose adsense deluxe capabilities.and I was wondering if the same fix is ok with wordpress 2.8.2?
Reply
Jeff Replied:
August 1st, 2009 at 8:10 am
Yes it works on 2.8.2.
Reply
Thanks mate for the solution. I had hard time fighting with that adsense thing
Reply
Good article! Im planning to use this plugin
Thanks for this!
Reply
For sure, some people would find the information here useful. Do you know of any other issues with the upgrade aside from the adsense deluxe? Any other things that people should be aware of?
Reply
I just upgraded to WordPress version 2.8.1 and this helped clear up a big mess for me. I came across this post at just the right time.
Appreciate it!
Reply
Great post that can really save us some trouble with AdSense Deluxe v0.8 and WordPress 2.8.1. Could you please keep us posted when this changes in the new versions of AdSense Deluxe and WordPress?
Reply
Thanks. The post is concise and easy to understand. But is fixing the AdSense deluxe really easy?
Reply
Jeff Replied:
August 24th, 2009 at 7:59 pm
“But is fixing the AdSense deluxe really easy?” Did you actually read the post… Looks like another drive-by comment, No Link For You!
Reply
Hii jeff..thanks for info, it would help me to generate more revenue hopefully.
Reply
Can i use it with wp 2.84?
Reply
Jeff Replied:
September 28th, 2009 at 4:54 pm
Well if I had that question I would just probably give it a try instead of waiting for an answer. But I am one of those crazy individualists that enjoys that type of freedom.
Reply
Leave a comment
Drive-By comments will be deleted! Like "Thanks for sharing", "Nice post", or any other text that doesn't contribute to the discussion. If you ask a very specific question about your particular WordPress theme, it will probably be deleted. I can fix your WordPress site but for a price. If you ask a question like "Why don't my blog work right", it will be deleted. If you ask a question about your WordPress site without a leaving a link to it, it will be deleted. The point is to ask questions and or comment on the the actual content of the post, and to please use some common sense. All comments are moderated and will appear when approved. Thank you.