Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.16
Component:
Miscellaneous
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2011 at 15:20 UTC
Updated:
8 Dec 2011 at 18:50 UTC
I just tried to update, because of a security issue and saw these:
Any ideas?
user warning: Unknown column 'core' in 'field list' query: UPDATE views_view SET name = 'order_management', description = 'Order lmanagement', tag = 'order management', base_table = 'uc_orders', core = 0 WHERE vid = 13 in E:\Inetpub\wwwroot\Drupal_Moodle\sites\all\modules\views\includes\view.inc on line 1760.
user warning: Unknown column 'core' in 'field list' query: UPDATE views_view SET name = 'admin_content', description = 'Emulates the Drupal content administration page.', tag = '', base_table = 'node', core = 0 WHERE vid = 14 in E:\Inetpub\wwwroot\Drupal_Moodle\sites\all\modules\views\includes\view.inc on line 1760.
user warning: Unknown column 'core' in 'field list' query: UPDATE views_view SET name = 'admin_users', description = 'Emulates the Drupal user administration page.', tag = '', base_table = 'users', core = 0 WHERE vid = 15 in E:\Inetpub\wwwroot\Drupal_Moodle\sites\all\modules\views\includes\view.inc on line 1760.
Here is my update log messages too:
views module
Update #6010
ALTER TABLE {views_view} DROP view_php
ALTER TABLE {views_view} DROP is_cacheable
Update #6011
UPDATE {blocks} SET cache = -1 WHERE module = 'views' AND delta LIKE '-exp-%'
Update #6013
ALTER TABLE {views_view} ADD `core` INT DEFAULT 0
Comments
Comment #1
goose2000 commentedI should add that I was updating from:
6.x-2.12 to 6.x-2.14
So, looks like :
Update #6013
ALTER TABLE {views_view} ADD `core` INT DEFAULT 0
Had a hard time, as there is no column 'core' in views_view, within 6.x-2.12 apparently.
Checked - no column 'core' in table 'views_view'
So when was 'core' added?
Setting to Major as I think this would be pretty bad for sites and there is a pending red alert
"Security update required! Views 6.x-2.12" - a lot of people probably already tried to update.
Comment #2
dawehnerWell core got added between 6.x-2.11/12 and 6.x-2.14 so running update.php should actually help to fix it.
Comment #3
goose2000 commentedHey, I re-tried again today with the new 2.16 package and it went through with flying green color! Setting to fixed.
THANK YOU - I do appreciate your time and the views module...
Updates came back:
The following queries were executed
views module
Update #6010
ALTER TABLE {views_view} DROP view_php
ALTER TABLE {views_view} DROP is_cacheable
Update #6011
UPDATE {blocks} SET cache = -1 WHERE module = 'views' AND delta LIKE '-exp-%'
Update #6013
ALTER TABLE {views_view} ADD `core` INT DEFAULT 0
Comment #4
ronline commentedIn my case is the sql query is not being executed during upgrading to 2.16 .
When I've tried to create a view, I end up with :
warning: Unknown column 'core' in 'field list' query: INSERT INTO views_view (name, description, tag, base_table, core) VALUES ('front_media', 'Front media', '', 'node', 6) in /home/www/sites/all/modules/views/includes/view.inc on line 1775.
To fix the issue I've had to run two sql queries from Update #6011 and Update #6013.
SQL code:
UPDATE `blocks` SET cache = -1 WHERE module = 'views' AND delta LIKE '-exp-%';
ALTER TABLE `views_view` ADD `core` INT DEFAULT 0;