WordPress problem with PostgreSQL

I found strange errors like the following in my apache_error.log

[Thu May 02 20:59:58 2013] [error] [client 84.114.158.229] WordPress database error ERROR:
  column p.id does not exist\\\\\\\\nLINE 1: SELECT p.id FROM wp_posts AS p  WHERE ...

I found out that this comes from line 1178 in wp-includes/link-template.php. Just change the p.id at after the SELECT to p.ID and save the file (SELECT p.ID …). That’s the trick.

Leave a Comment