Title: Weird error message after posting
Last modified: August 18, 2016

---

# Weird error message after posting

 *  [dparmet](https://wordpress.org/support/users/dparmet/)
 * (@dparmet)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/weird-error-message-after-posting/)
 * I upgraded to 2.3 last week. All is fine, except after I post anything, I get
   the error messages below. Even though the post goes through fine, and everything
   works, I’m getting this error message.
 * My blog is at [http://www.parmet.net/pr](http://www.parmet.net/pr)
 * Here’s the error message:
 * WordPress database error: [Table ‘pr.wp_post2cat’ doesn’t exist]
    SELECT YEAR(
   post_date) AS `year`, MONTH(post_date) AS `month`, category_id FROM wp_posts 
   INNER JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE post_date
   > 0 AND ID = 1213 ORDER By post_date DESC
 * WordPress database error: [Table ‘pr.wp_post2cat’ doesn’t exist]
    SELECT DISTINCT
   YEAR(p.post_date) AS `year` FROM wp_posts p INNER JOIN wp_post2cat p2c ON (p.
   ID = p2c.post_id) WHERE p.post_date > 0 ORDER By p.post_date DESC
 * WordPress database error: [Table ‘pr.wp_post2cat’ doesn’t exist]
    SELECT DISTINCT
   MONTH(p.post_date) AS `month` FROM wp_posts p INNER JOIN wp_post2cat p2c ON (
   p.ID = p2c.post_id ) WHERE YEAR(p.post_date) = 2007 AND p.post_date_gmt < ‘2007-
   10-17 20:48:28’ ORDER By p.post_date DESC
 * WordPress database error: [Table ‘pr.wp_post2cat’ doesn’t exist]
    SELECT DISTINCT
   MONTH(p.post_date) AS `month` FROM wp_posts p INNER JOIN wp_post2cat p2c ON (
   p.ID = p2c.post_id ) WHERE YEAR(p.post_date) = 2006 AND p.post_date_gmt < ‘2007-
   10-17 20:48:28’ ORDER By p.post_date DESC
 * WordPress database error: [Table ‘pr.wp_post2cat’ doesn’t exist]
    SELECT DISTINCT
   MONTH(p.post_date) AS `month` FROM wp_posts p INNER JOIN wp_post2cat p2c ON (
   p.ID = p2c.post_id ) WHERE YEAR(p.post_date) = 2005 AND p.post_date_gmt < ‘2007-
   10-17 20:48:28’ ORDER By p.post_date DESC
 * WordPress database error: [Table ‘pr.wp_post2cat’ doesn’t exist]
    SELECT DISTINCT
   MONTH(p.post_date) AS `month` FROM wp_posts p INNER JOIN wp_post2cat p2c ON (
   p.ID = p2c.post_id ) WHERE YEAR(p.post_date) = 1969 AND p.post_date_gmt < ‘2007-
   10-17 20:48:28’ ORDER By p.post_date DESC
 * Warning: Invalid argument supplied for foreach() in /home/.garfy/parmet/parmet.
   net/pr/wp-content/plugins/af-extended-live-archive/af-extended-live-archive-include.
   php on line 292
 * Warning: Invalid argument supplied for foreach() in /home/.garfy/parmet/parmet.
   net/pr/wp-content/plugins/af-extended-live-archive/af-extended-live-archive-include.
   php on line 292
 * Warning: Invalid argument supplied for foreach() in /home/.garfy/parmet/parmet.
   net/pr/wp-content/plugins/af-extended-live-archive/af-extended-live-archive-include.
   php on line 292
 * Warning: Invalid argument supplied for foreach() in /home/.garfy/parmet/parmet.
   net/pr/wp-content/plugins/af-extended-live-archive/af-extended-live-archive-include.
   php on line 292
 * WordPress database error: [Table ‘pr.wp_categories’ doesn’t exist]
    SELECT cat_ID,
   cat_name, category_nicename, category_parent FROM wp_categories c WHERE c.cat_ID
   > 0 ORDER BY c.cat_ID asc
 * WordPress database error: [Table ‘pr.wp_categories’ doesn’t exist]
    SELECT c.
   cat_ID, COUNT(distinct p2c.post_id) AS cat_count FROM wp_categories c INNER JOIN
   wp_post2cat p2c ON (c.cat_ID = p2c.category_id) INNER JOIN wp_posts p ON (p.ID
   = p2c.post_id) WHERE p.post_status = ‘publish’ AND p.post_date_gmt < ‘2007-10-
   17 20:48:28’ GROUP BY p2c.category_id
 * Warning: Invalid argument supplied for foreach() in /home/.garfy/parmet/parmet.
   net/pr/wp-content/plugins/af-extended-live-archive/af-extended-live-archive-include.
   php on line 459
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/.garfy/parmet/parmet.net/pr/wp-includes/wp-db.php:160) in /home/.garfy/
   parmet/parmet.net/pr/wp-includes/pluggable.php on line 390

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [xensen](https://wordpress.org/support/users/xensen/)
 * (@xensen)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/weird-error-message-after-posting/#post-639468)
 * I get the same messages. I assume it’s some kind of deprecated code, but I’m 
   not sure just what yet. Did you find a fix?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/weird-error-message-after-posting/#post-639469)
 * See the “sticky post” on the main page of the forum!
 *  [xensen](https://wordpress.org/support/users/xensen/)
 * (@xensen)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/weird-error-message-after-posting/#post-639470)
 * Thanks.
 *  [drew3000](https://wordpress.org/support/users/drew3000/)
 * (@drew3000)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/weird-error-message-after-posting/#post-639474)
 * You can find a mostly fix at [http://blog.tinyau.net/archives/2007/07/07/extended-live-archives-for-wordpress-23/](http://blog.tinyau.net/archives/2007/07/07/extended-live-archives-for-wordpress-23/)
 * He has some fixed files for Live Archive that remedy most all the problems. The
   one thing that remains is when you delete a post. The post does delete but you
   get the following error message:
 * —————
 * 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‘
   AND p.post_date_gmt < ‘2007-11-14 20:31:58′ ORDER By p.post_date DESC’ at line
   6]
    SELECT DISTINCT MONTH(p.post_date) AS `month` FROM wp_posts p INNER JOIN 
   wp_term_relationships tr ON (p.ID = tr.object_id ) WHERE YEAR(p.post_date) = 
   AND p.post_date_gmt < ‘2007-11-14 20:31:58’ ORDER By p.post_date DESC
 * Warning: Invalid argument supplied for foreach() in /home/drewthrz/public_html/
   wp-content/plugins/af-extended-live-archive/af-extended-live-archive-include.
   php on line 292
 * Warning: Invalid argument supplied for foreach() in /home/drewthrz/public_html/
   wp-content/plugins/af-extended-live-archive/af-extended-live-archive-include.
   php on line 465
    1
 * ——-
 * A bit more useful than the sticky post. Anyone know how to fix the delete problem,
   though?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Weird error message after posting’ is closed to new replies.

## Tags

 * [-posting](https://wordpress.org/support/topic-tag/posting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [drew3000](https://wordpress.org/support/users/drew3000/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/weird-error-message-after-posting/#post-639474)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
