Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2009 at 11:09 UTC
Updated:
27 Oct 2016 at 13:10 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedcache_views_data is created via an update in 2.6. Did you run update.php? If so you may need to go back and re-run the last update in Views I think.
Comment #2
avolve commentedThanks merlin — re-running the update has resolved this.
Comment #3
bay6 commentedSame problem but rerunning update.php didn't solve the problem. To resolve this I had to uninstall Views then reinstall.
Comment #4
ferrangil commentedYes, re-running update.php worked for me (I had some problems with the date module and it's updates... so maybe views didn't update well initially). No more issues now.
Comment #5
AgentD commentedI'm now having this issue, and seems to be affecting creation of new views.
I'm using 2.6, and was getting this error. I re-ran the update and that didn't work. I then uninstalled Views, reinstalled and tried recreating a View.
I cannot create views now, when trying to add a field to a block view I get this error:
* Display "Defaults" uses fields but there are none defined for it or all are excluded.
* Display "Block" uses fields but there are none defined for it or all are excluded.
Along with this error in a pop-up:
An error occurred at http://xxx.com/admin/build/views/ajax/add-item/xxx/block_1/field.
I looked at the log for the uninstall of Views and found this error:
Unknown table 'cache_views_data' query: DROP TABLE cache_views_data in /home/xxx/public_html/includes/database.mysql-common.inc on line 261.
Stuck on what to do now.
Help is greatly appreciated (I'm using Drupal 6.14).
Comment #6
jwilson3Really old issue, but if you come across this, and need a quick fix: create a file in the Drupal site root called
fix-cache-views-data.phpwith the following content:Then execute it using drush or access it via the web browser: