hi,
i just installed the v6 dev on drupal 6.8 and it doesnt seem to have created all the needed tables; i get this error on my homepage:
* user warning: Unknown column 'node_data_field_station_playlist_date.field_station_playlist_dat' in 'where clause' query: SELECT COUNT(*) FROM (SELECT node.nid AS nid FROM node node LEFT JOIN content_type_station_playlist node_data_field_station_playlist_date ON node.vid = node_data_field_station_playlist_date.vid WHERE ((node.type in ('station_playlist')) AND (node.status <> 0 OR node.uid = 1 or 1 = 1)) AND (DATE_FORMAT(FROM_UNIXTIME(node_data_field_station_playlist_date.field_station_playlist_date_value), '%Y-%m-%d\T%H') <= '2008-12-13T03') ) count_alias in /var/www/drupal6/sites/all/modules/views/includes/view.inc on line 697.
* user warning: Unknown column 'node_data_field_station_playlist_date.field_station_playlist_dat' in 'field list' query: SELECT node.nid AS nid, node_data_field_station_playlist_date.field_station_playlist_date_value AS node_data_field_station_playlist_date_field_station_playlist_date_value FROM node node LEFT JOIN content_type_station_playlist node_data_field_station_playlist_date ON node.vid = node_data_field_station_playlist_date.vid WHERE ((node.type in ('station_playlist')) AND (node.status <> 0 OR node.uid = 1 or 1 = 1)) AND (DATE_FORMAT(FROM_UNIXTIME(node_data_field_station_playlist_date.field_station_playlist_date_value), '%Y-%m-%d\T%H') <= '2008-12-13T03') ORDER BY node_data_field_station_playlist_date_field_station_playlist_date_value DESC LIMIT 0, 10 in /var/www/drupal6/sites/all/modules/views/includes/view.inc on line 723.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | station_346479.patch | 3.54 KB | drewish |
| #3 | station_346479.patch | 1.21 KB | drewish |
| #2 | station_346479.patch | 0 bytes | drewish |
Comments
Comment #1
jjbarrows commentedoops, sorry, that error was at the station-->playlsits page. the error reported at the homepage is:
* user warning: Unknown column 'node_data_field_station_playlist_date.field_station_playlist_dat' in 'field list' query: SELECT node.nid AS nid, node_data_field_station_playlist_date.field_station_playlist_date_value AS node_data_field_station_playlist_date_field_station_playlist_date_value, node_data_field_station_playlist_date.nid AS node_data_field_station_playlist_date_nid, node.type AS node_type FROM node node LEFT JOIN content_type_station_playlist node_data_field_station_playlist_date ON node.vid = node_data_field_station_playlist_date.vid WHERE ((node.type in ('station_playlist')) AND (node.status <> 0 OR node.uid = 1 or 1 = 1)) AND (DATE_FORMAT(FROM_UNIXTIME(node_data_field_station_playlist_date.field_station_playlist_date_value), '%Y-%m-%d\T%H') > '2008-12-13T03') ORDER BY node_data_field_station_playlist_date_field_station_playlist_date_value DESC in /var/www/drupal6/sites/all/modules/views/includes/view.inc on line 727.
* user warning: Unknown column 'node_data_field_station_playlist_date.field_station_playlist_dat' in 'where clause' query: SELECT COUNT(*) FROM (SELECT node.nid AS nid FROM node node LEFT JOIN content_type_station_playlist node_data_field_station_playlist_date ON node.vid = node_data_field_station_playlist_date.vid WHERE ((node.type in ('station_playlist')) AND (node.status <> 0 OR node.uid = 1 or 1 = 1)) AND (DATE_FORMAT(FROM_UNIXTIME(node_data_field_station_playlist_date.field_station_playlist_date_value), '%Y-%m-%d\T%H') <= '2008-12-13T03') ) count_alias in /var/www/drupal6/sites/all/modules/views/includes/view.inc on line 697.
* user warning: Unknown column 'node_data_field_station_playlist_date.field_station_playlist_dat' in 'field list' query: SELECT node.nid AS nid, node_data_field_station_playlist_date.field_station_playlist_date_value AS node_data_field_station_playlist_date_field_station_playlist_date_value, node_data_field_station_playlist_date.nid AS node_data_field_station_playlist_date_nid, node.type AS node_type FROM node node LEFT JOIN content_type_station_playlist node_data_field_station_playlist_date ON node.vid = node_data_field_station_playlist_date.vid WHERE ((node.type in ('station_playlist')) AND (node.status <> 0 OR node.uid = 1 or 1 = 1)) AND (DATE_FORMAT(FROM_UNIXTIME(node_data_field_station_playlist_date.field_station_playlist_date_value), '%Y-%m-%d\T%H') <= '2008-12-13T03') ORDER BY node_data_field_station_playlist_date_field_station_playlist_date_value DESC LIMIT 0, 10 in /var/www/drupal6/sites/all/modules/views/includes/view.inc on line 723.
* user warning: Table 'drupal6.station_playlist' doesn't exist query: SELECT COUNT(nid) FROM station_playlist sp WHERE sp.program_nid = 9 in /var/www/drupal6/sites/all/modules/station/playlist/station_playlist.module on line 87.
Comment #2
drewish commentedWas this an upgrade or a clean installation? I think all the correct tables are being created it's just that some of the code is still referering to tables and columns that have been removed. The attached patch should fix the last error you listed in comment #2.
Which version of the date module do you have installed?
Comment #3
drewish commentedlast patch was empty.
Comment #4
drewish commentedI've committed the attached which should fix some of it. I think the other problems are views and date related. Make sure you've got the latest versions of both installed.
Please re-open the issue if you're still seeing the problem.
Comment #5
jjbarrows commentedcheers! installed the new version of station and fixed the errors (i already had uptodate version of everything else)
Comment #6
drewish commentedgreat! i just rolled an unstable release to make testing easier: http://drupal.org/node/347649
it includes this fix.