WordPress issue with blank admin pages

So I’ve been banging my head against the metaphorical wall for hours, trying to find a solution to a buggy WordPress admin panel. I am moving a site from a development server running WP2.3 to the production server on WP2.5.1.

The symptoms:

Possible Solutions:

I searched high and low for a way to solve this, and (have I mentioned lately Google is my best friend?) there are many posts about the issue. I tried a bunch of things that worked for other people:

What worked for me

None of the above worked. Finally, in desperation, I tried renaming the theme to disable it. Aha. We may have something here… Why on earth a theme that controls the public front end breaks the admin pages I have no idea. (Anyone?) But so far, it seems to be the case for me.

Trouble is of course, this is the theme we need to use, so how to find the culprit? I re-enabled the theme, and one by one moved files from their location in the theme folder to a sub-folder. (If you’re playing along at home, don’t start with index.php. That just breaks the theme because it’s required.)

Finally I think I narrowed it down to functions.php. Mine had two things in it. First, the typical register_sidebar() bit, which I didn’t need anyway since we won’t be using widgets. The second function was something I added to the file:

function the_slug() {
$post_data = get_post($post->ID, ARRAY_A);
$slug = $post_data['post_name'];
return $slug;
}

Turns out I only ended up using it in a few places, so rather than try to figure out the issue in functions.php I just replaced those places with

echo $post->post_name;

I removed the functions.php file altogether since it’s not required. And so far, so good. The admin panel appears to be stable.

If you have any experience with this issue, what was it for you?

Write a comment





Previous post: « Allow me a brief rant on web advertising
Next post: Great tunes to work to: FNDMNTL »

Recently Written:

Categories

RSSSubscribe to RSS Feed

About

Tzaddi Gordon
link to linked in profile

Zodomatica is the personal site of Tzaddi Gordon, a web designer from Roberts Creek, BC, Canada. I'm passionate about design that balances form and function. I design, code, and hack other people's scripts. Lately I groove on WordPress as a CMS.
My portfolio