upgrading caused the following error message:
user warning: Unknown column 'e.has_time' in 'field list' query: SELECT DISTINCT(n.nid), n.uid, n.title, n.type, n.status, n.changed, e.event_start, e.event_end, e.timezone, e.has_time, e.has_end_date, TIMEDIFF(e.event_start, '2007-08-03 14:59:43') AS time_left FROM node n INNER JOIN event e ON n.nid = e.nid WHERE n.status = 1 AND (((e.event_start != e.event_end) AND ('2007-08-03 14:59:43' >= e.event_start AND '2007-08-03 14:59:43' < e.event_end)) OR ((e.event_start = e.event_end) AND ('2007-08-03 14:59:43' <= e.event_start + INTERVAL 7200 SECOND)) OR e.event_start >= '2007-08-03 14:59:43') ORDER BY event_start LIMIT 0, 3 in D:\apache2triad\htdocs\horstead0\includes\database.mysql.inc on line 172.
Comments
Comment #1
michelleMy guess is that's the new boolean field to replace using 00:00-23:59 to determine all day events. Did you run update.php after upgrading the code? Looks like your database didn't get updated.
Michelle
Comment #2
chaos21in commentedHi,
I also got the same error message after yesterday upgrade, evenif i run update.php after upgradation. I guess database upgrade part is not updated in event.install file.
--rafi
Comment #3
artatac commentedyes I did run update.php
Comment #4
stenjo commentedThis happened to me as well. Did the update.php but error still persists and no events show up any more.
What would be a good intermediate solution to this? Add the column manually to the table?
Comment #5
stenjo commentedSorted!
Altered the event table, adding two colums: has_time and has_end_date as tinyints. I have searched through the event.install file and there is no code there inserting these columns into the table.
Suggest new code in new event_update_7():
/Sten
Comment #6
hongpong commentedyeah i got the same thing when i upgraded from 1.x-dev to 2.x-dev, plus another (my paths deleted):
I will try the patch and report if it works. thanks stenjo
Comment #7
hongpong commentedinstead i ran these SQL commands:
and that has indeed solved the problem. bravo!
Comment #8
lias commentedWill this be added to the next version?
Comment #9
gerhard killesreiter commentedthis is in CVS as of a fw days ago.
Comment #10
(not verified) commented