Another solution for WordPress’ “You do not have sufficient permissions to access this page.”

Many WordPress users have run in to the error “You do not have sufficient permissions to access this page.”

Sometimes, it is because you changed the table prefix and the solution is a database change.

For other folks, it was due to old plugin incompatibility. To fix it, you need to replace admin_head with admin_menu.

Unfortunately, neither solution worked for me. However, the latter (and some digging) pointed me in the right direction.

In my case, I had to change the parameters to—and order of—the add_submenu_page() and add_menu_page() calls.

Here’s the old code:

function thgs_add_menus() {
 add_submenu_page(__FILE__, "Heather Gold Show", "Shows", 8, "thgs/shows.php");
 add_submenu_page(__FILE__, "Heather Gold Show", "Venues", 8, "thgs/venues.php");
 add_menu_page('Show Management', 'Shows', 8, __FILE__);
}

And here’s the fix, which works with WP 2.8.4:

function thgs_add_menus() {
  add_menu_page('Show Management', 'THGS', "administrator", "thgs/shows.php");
  add_submenu_page("thgs/shows.php", "Manage Shows", "Shows", "administrator", "thgs/shows.php");
  add_submenu_page("thgs/shows.php", "Manage Venues", "Venues", "administrator", "thgs/venues.php");
} 

Designing Obama

Scott Thomas, the design director for Obama for America (and the guy who kicked my butt every day for two months to make sure Vote for Change was as good as it could be) has put together Designing Obama.

This a fantastic book chronicling the art both from and inspired by the Obama campaign.

Here’s how Scott describes it:

The Obama presidential campaign was innovative. For the first time in American politics, a candidate used art and design to bring together the American people—capturing their voices in a visual way.

The Design Director of the Obama campaign, Scott Thomas, has collaborated with artists and designers to create Designing Obama, a chronicle of the art from the historic campaign. Get the inside story on how design was used by the campaign, and scope out the pieces, created unofficially, by grassroots supporters.

The 360-page book is full-color and hardbound, highly crafted with an embossed sleeve. Forewords written by Steven Heller and Michael Bierut.

Like the campaign, this book is relying on small contributions to fund it. It will only get made if enough preorders are in place by November 5, 2009.

Reserver your copy today.

MAPLight’s awesome Money Near Votes tool

If you haven’t heard of MAPLight.org before, here’s what they do (which is fantastic):

MAPLight.org, a groundbreaking public database, illuminates the connection between campaign donations and legislative votes in unprecedented ways. Elected officials collect large sums of money to run their campaigns, and they often pay back campaign contributors with special access and favorable laws.

They’re a 501(c)(3) nonprofit, non-partisan organization.

MAPLight recently announced Money Near Votes, which shows you how campaign contributions closely mirror voting records:

…combines information on campaign finance and congressional votes. Journalists, citizen activists and bloggers can easily track campaign contributions from special-interest groups given within a month, a week, or a day of each vote in Congress.

It’s available for every bill they track. It’ll be interesting to follow HR 3200, America’s Affordable Health Choices Act with Money Near Votes.

Hey Chase bank — 1995 called, they want their user agreement back

Buried in my Amazon Chase Visa “This E-Sign Disclosure and Consent” was this gem:

Hardware and Software Requirements. In order to access, view, respond to, and retain electronic Communications that we make available to you, you must have:

  • an Internet browser (Microsoft ® Windows 95 or higher, Windows NT 4.0 or higher with Microsoft Internet Explorer 5+, Netscape 4.6+ or AOL 4+) that supports 128 bit encryption;
  • sufficient electronic storage capacity on your computer’s hard drive or other data storage unit;
  • an e-mail account with an Internet service provider and e-mail software in order to participate in our electronic Communications program;
  • a personal computer (for PCs: Pentium 120 Hhz or higher; for Macintosh, Power Mac 9500, Power PC 604 processor 120-MHz Base or higher), operating system and telecommunications connections to the Internet capable of receiving, accessing, displaying, and either printing or storing Communications received from us in electronic form via a plain text-formatted e-mail or by access to our web site using one of the browsers specified above.

I’ll dig out that Power Mac 9500. It’s around here somewhere…

I’d rather you be right

Jeff Ello wrote an interesting article for Computerworld about managing geeks.

Here’s the heart of it:

While everyone would like to work for a nice person who is always right, IT pros will prefer a jerk who is always right over a nice person who is always wrong. Wrong creates unnecessary work, impossible situations and major failures. Wrong is evil, and it must be defeated. Capacity for technical reasoning trumps all other professional factors, period.