Site icon Nabtron

You do not have sufficient permissions to access this page – landingpage theme for wordpress by after10

I got a query today that one of my client wasn’t able to enter the theme’s options page as it gave error when he tried to goto theme options page. The error said:

You do not have sufficient permissions to access this page.

Pretty simple! yet too confusing initially. Why the hell do i don’t have the permission to access that page man? well because that page don’t exist infact! atleast not as what we expect it to be.

The theme name was Landpage theme by After10 that my client got in some frank kern list control course. The fancy theme was getting on his nerves as you can expect!

Well he tried upgrading the wordpress, then tried installing wordpress multiuser (don’t know what he was thinking and installed wp mu! ) but still no benefit! so there was me to get in to help :p After trying to reinstall wp on his server and installing this theme, i still got this error! so the error was probably from the theme ofcourse!

Why did i reinstall wordpress? because this error can also occur if wordpress files are not properly copied to the server or if you try to upgrade old version of wordpress to new one and it don’t go through properly. So just to rule out this possibility i installed a fresh test wordpress installation.

Anyway… ok ok! i am coming to the point! so how did i fix this error? simple man! goto the theme folder:

/<wp root>/wp-content/themes/landingpage/

Look for the file named

functions.php

In the functions.php file, look for the code (near line 437):

add_options_page("Landing Page Options", "Landing Page Options", 1, "Landing Page Options", "flowerstore_admin");

and change this code to:

add_options_page("LandingPageOptions", "LandingPageOptions", 1, "LandingPageOptions", "flowerstore_admin");

Actually what we did is we removed spaces between Landing Page Options. Why we did it? simply because it was causing the error :D

Hold on! there is one more place to edit! (i don’t know if it’s really important, but it should be too!)

Look for the code (near line 447):

var message = '<p>This <strong>After10</strong> comes with a <a href="<?php echo admin_url('options-general.php?page=Landing Page Options'); ?>">comprehensive options panel</a>.</p>';

and replace this one too with:

var message = '<p>This <strong>After10</strong> comes with a <a href="<?php echo admin_url('options-general.php?page=LandingPageOptions'); ?>">comprehensive options panel</a>.</p>';

And here too we basically changed Landing Page Options to LandingPageOptions. Why? Oh comeon ! . . .

Save the page to make changes.

(it’s better to save the old code by making backup of the file itself before editing, or else by copying the line of code and commenting one of it and editing the other one, so that the original code is still there with you but be careful with it)

Now goto your wordpress admin panel (dashboard) and click on the LandingPageOptions again at the bottom of the page and voila! no more error and you can see the admin page for the Landing page theme for wordpress by after10 (using wordpress 3.0)

If you still have issue with this and want my assistance to do it for you like i did for the client, do let me know. In other case, you can also ask for the edited version of functions.php to just copy and replace over your old errornous functions.php file of your landingpage theme.

If you need similar assistance with any other theme too, do let me know!

Exit mobile version