Hi all,
I installed drupal 4.4.1 this weekend and all was running well. I am running on a Debian Woody box, with the latest version of Postgres from backports.org. I had to modify on line in /usr/share/pear to get things working (fix found on this site) and all was fine. I went about putting stuff on the site. At some point, which I am pretty certain is following an attempt to post anonymously (which was allowed - to be queued for approval) I started getting the following error on some pages when I was logged in:
user error: DB Error: unknown error
query: SELECT n.*, u.uid, u.name, u.data FROM node n INNER JOIN users u ON u.uid = n.uid WHERE n.nid = '' in /var/www/portal/includes/database.pear.inc on line 89.
This appears at the top of the page and I've no idea how to get rid of it! I'm not skilled enough in either php or sql to dive through the code and try and work out what the problem is, but I'm pretty sure that nid should be an integer. On the create content -> Forum topic it appears to be trying the following:
SELECT n.*, u.uid, u.name, u.data FROM node n INNER JOIN users u ON u.uid = n.uid WHERE n.nid = 'forum'
Running this in psql gives - ERROR: invalid input syntax for integer: "forum".
Running manually the following query:
SELECT n.*, u.uid, u.name, u.data FROM node n INNER JOIN users u ON u.uid = n.uid WHERE n.type = 'forum'
returns records ok.