Site running slow – bad code in template?
-
Hi,
I was messing with templates in my theme, trying to figure out how to include another template. I added a line of code that looks like this:
include(TEMPLATEPATH . '/ad-skyscraper.php');
Uploaded to my site and then the site wouldn’t load. I freaked, removed what I thought was the offending line of code and and re-uploaded.
My site is now running painfully slow and I’m not sure how to undo it.
When I check the CGI error logs, I see something that looks like this:
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order ASC' at line 1 for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('link_category') AND ( t.term_id = 7 OR t.term_id = 14 ) AND tt.count > 0 ORDER BY order ASC made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, wp_widget_mylinkorder, wp_list_bookmarks, get_terms
Not sure where I went wrong – I definitely haven’t changed any core files, on some template files within my theme.
Can anyone point me in the right direction?
- The topic ‘Site running slow – bad code in template?’ is closed to new replies.