Closed (fixed)
Project:
Privatemsg
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
10 Oct 2007 at 17:45 UTC
Updated:
12 Nov 2007 at 22:42 UTC
I've been using the 5.x-2.x-dev version of privatemsg. I noticed today that it had broke in the past week or so. I try to send a message and an error is thrown and the message is not delivered. This is the error I'm getting:
* user warning: Unknown column 'variables' in 'field list' query: INSERT INTO privatemsg (id, author, recipient, subject, message, timestamp, newmsg, hostname, format, thread, type, variables) VALUES (26, 1, 7, 'chicken', 'chicken subject', 1192037965, 1, '10.4.70.185', 1, 18, 'private-message', 'a:0:{}') in /var/www/html/drupal/includes/database.mysql.inc on line 172.
* user warning: Unknown column 'p.variables' in 'field list' query: SELECT p.id, u.uid, u.name, p.author, p.timestamp, p.subject, p.message, p.newmsg, p.recipient, p.folder, p.format, p.thread, p.type, p.variables FROM privatemsg p INNER JOIN users u ON p.author = u.uid WHERE p.id = 26 in /var/www/html/drupal/includes/database.mysql.inc on line 172.
Comments
Comment #1
mr.andrey commentedI second that - when I try to view a message, I get to following error:
Comment #2
McPille commentedI have the same problem.
I'm using the 11 of Oct. dev. version of subscriptions and the 2nd of Oct. version dev. of privatemsg for drupal 5.2
Andreas
Comment #3
michelleIt looks like the privatemsg table needs the field "variables" added to it. I looked through the .install file and didn't find it. I added it as longtext and it works. It has another error, though, relating to the autocomplete, but it doesn't prevent the message from sending.
Michelle
Comment #4
bardkerbie commentedI did the same as MIchelle; I added the variables field as type text and the error message went away.
Comment #5
mr.andrey commentedI confirm this too - extra field "variables" of type "text" added at the end of the "privatemsg" table makes the error messages go away and the module seems to work fine.
Andrey.
Comment #6
manuj_78 commentedI tried to upgrade the module today and got the following error
Any help will be greatly appreciated
Comment #7
manuj_78 commentedSorry for posting it here. I had to post it in http://drupal.org/node/180549 but made a mistake.
Comment #8
reikiman commentedMy site has the same behavior .. the following "fixes" the problem. Clearly something equivalent should be in privatemsg.install
Comment #9
Zen commentedThe variables field and the update function have now been added to the .install file. There is no update path as this is a development branch. However, as reikiman has stated, the following query should do the trick:
ALTER TABLE privatemsg ADD variables longtext-K
Comment #10
Zen commentedActually, it might be best to follow these instructions instead.
Comment #11
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.