Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc3
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2011 at 19:12 UTC
Updated:
19 Jan 2012 at 01:23 UTC
I just updated views from 7.x-3.0-rc1 to 7.x-3.0-rc3 and now I am getting the following error on views that include relationships created by the Node References module (micity is a node reference field).
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_data_field_micity.nid' in 'on clause'
Here is the error log message:
User notice:
'Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column \'field_data_field_city.nid\' in \'on clause\''
in views_plugin_query_default->execute() (line 1386 of /home/pace/public_html/imc/sites/all/modules/views/plugins/views_plugin_query_default.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2011-11-17 at 2.08.34 PM.png | 166.21 KB | flugga |
Comments
Comment #1
jhm commentedI had exactly the same problem and painstakingly rolled back from a database backup ...
Comment #2
jhm commentedcheck if http://drupal.org/node/1344248 is the solution
Comment #3
flugga commentedupdating reference does the trick, but I don't like the idea of using a dev version.
Comment #4
dawehnerUpdate to the current version of the references module or better next time search the issue queue. We got a lot of reports like that.
Comment #5
larsdesigns commentedThe user notice message is persistent even while running the current version of the references module.
Comment #6
larsdesigns commentedSeems to be a problem with the upgrade path. Perhaps it is related to this patch: http://drupal.org/files/1072860-Fix-for-views_update_nn-functions-in-vie... ?
Comment #7
dawehner@larsdesign
Please post more detailed information about your issue, as for flugga updating references module did the trick.
Comment #8
merlinofchaos commentedThis appears to be #1275096: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column ...
In this case, fixing a bug in Views seems to have revealed a bug in references. This is not a problem with the upgrade path, per se.
This kind of thing is inevitable, unfortunately. Perhaps we can convince the maintainer of references to put out a new release to help prevent this kind of issue.
larsdesigns: I can only conclude that you have a different error, or you either do not have the current version of references or have not cleared cache.
Comment #9
dawehnerThere is an issue in the references module issue queue which suggests to put out a new release #1345374: Add a new release
Comment #10
esmerel commentedComment #10.0
esmerel commentedproofing edit