PHP

WordPress error in Apache log.

TAGs: 0 Comment

Posted By: eligeske on in PHP, Wordpress

This error was driving me nuts.

Error in Apache Log:
[error] [client 127.0.0.1] WordPress database error Table ‘wp_categories’ doesn’t exist for query SELECT cat_name FROM wp_categories WHERE category_nicename = ’12′ made by require, require_once, include, get_header, locate_template, load_template, require_once, breadcrumbs, referer:

I edited the core files to no end. Of course the last thing I checked after four to five hours of hacking was the breadcrumb plugin by Daniel R Naylor. Because I was sending custom URL Params it was trying to grab the category out of a depecrated table.

FIX: Either use another breadrumb if your going to be using custom URL Parameters or edit the current one.
– comment out this entire elseif statment:
elseif ( !empty($category_name)

That keeps it from looking for that table and will end the errors.

0 Responses to "WordPress error in Apache log."

"SHARING IS CARING"

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Learning DHTMLX Suite UI

Learn the foundation of the DHTMLX Suite quickly while building a single page application with multiple components in harmony.

Popular post