Since I updated Drupal to 7.2 I can't see the View link in the Administration > Structure section.
Moreover, I have those Warning/Notice on my homepage:
Notice : Undefined offset: 435 dans file_field_prepare_view() (ligne 201 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Warning : Invalid argument supplied for foreach() dans file_field_prepare_view() (ligne 201 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Notice : Undefined offset: 435 dans file_field_prepare_view() (ligne 207 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Warning : array_values() [function.array-values]: The argument should be an array dans file_field_prepare_view() (ligne 207 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Notice : Undefined offset: 417 dans file_field_prepare_view() (ligne 201 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Warning : Invalid argument supplied for foreach() dans file_field_prepare_view() (ligne 201 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Notice : Undefined offset: 417 dans file_field_prepare_view() (ligne 207 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Warning : array_values() [function.array-values]: The argument should be an array dans file_field_prepare_view() (ligne 207 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Notice : Undefined offset: 418 dans file_field_prepare_view() (ligne 201 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Warning : Invalid argument supplied for foreach() dans file_field_prepare_view() (ligne 201 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Notice : Undefined offset: 418 dans file_field_prepare_view() (ligne 207 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Warning : array_values() [function.array-values]: The argument should be an array dans file_field_prepare_view() (ligne 207 dans /homez.40/anjouspoh/www/modules/file/file.field.inc).
Drupal core: 7.2
Chaos tool suite: 7.x-1.0-alpha4
Views: 7.x-3.0-beta3
PHP: 5.2.17
Comments
Comment #1
dawehnerCan you please take sure that the views_ui module is still enabled?
It works fine for me here.
The Notices aren't related to views.
Comment #2
olafveerman commentedMight be related to #1169426: Field invoke multiple does not handle field language correctly ?
Comment #3
thebeepseal commentedI've just installed 7.2 and THEN Views 7x.3-beta3.0 - and I have the same problem - Views not showing under Admin> Structure. Views UI is enabled.
Comment #4
dawehnerWhat happens if you install 7.x-3.x-dev?
Comment #5
thebeepseal commentedJust tried it and - yes, 7.x-3.x-dev seems to fix the problem.
Comment #6
dawehnerGreat. Update status
Comment #7
oerjann commentedinstalling 7.x-3.x-dev did not fix the problem for me, but applying the patch from the issue mentioned in #2 did
Comment #8
jeffgtr commentedI applied the patch - didn't fix the issue
Downloaded core dev, uploaded field.attach.inc still didn't fix the problem.
Comment #9
jeffgtr commentedI applied the patch - didn't fix the issue
Downloaded core dev, uploaded field.attach.inc still didn't fix the problem.
Comment #10
jeffgtr commentedI updated to the dev version, then clear all cache. It works fine now. I think clearing cache is key. Before you update to 7.xdev try clearing cache and see if that fixes the issue.
Comment #11
merlinofchaos commentedjeffgtr: Please do not change issue statuses on issues you have not first participated in without first reading the very easy to find links to what the status values mean. Setting these issue statuses randomly interferes with the ability of people in this queue to work effectively.
Comment #12
Eru commentedI updated to the dev version of views and uploaded the field.attach.inc (from core 7.x-dev version).
(EDIT: I also emptied the cache several times.)
The "Views" link appears now in the Structure section but the notices/warnings are still present on my homepage :/
Should I create a new bug report?
Comment #13
dawehnerIf you have still this notices create a bug report against drupal core. They don' seem to be related to views at all, at least from my perspective.
Comment #14
David D commentedI had this problem after updating to D7.2. I could only solve it by disabling and uninstalling Views UI (7.x-3.x-dev), then re-enabling it.
Comment #15
Eru commented"disabling and uninstalling": Did you kept your views or did you have to recreate them?
Comment #16
prev commentedI had the same problem and a simple cache clear fixed it.
Comment #17
David D commented@Eru, I only disabled and uninstalled Views UI, not Views. So, no, my views stayed intact.
Comment #18
David D commentedHmm... I just updated to Ctools 7.x-1.0-beta1, and lost admin/structure/views again. Clearing the cache a couple of times fixed it, though.
@merlinofchaos, is this marked Fixed because you understand it to be a Core issue with caching or something?
Comment #19
dawehnerJust to quote the drupal.org/project/views page
There are currently issues with core's cache flushing that means one cache flush isn't necessarily enough.Comment #20
David D commentedI understand that the core caching issues are known, actually. What's not so clear is how cache flushing issues are the cause of this disappearing admin/structure/views. Clearing the caches fixes it, yes. But isn't that after the fact? If it's nothing to do with the module code, couldn't it as easily be a problem in update.php or something else that happens when the new module versions are installed? Sorry if I'm just being dense, but I just haven't seen anything like this happening with any modules other than Views and now CTools.
Comment #21
silvesterd commentedThat is a good point. I had this problem 4 days ago, then updated ctools, views, date, calendar to .dev., that fixed. After that i installed some other modules and updated some of the above mentioned to even newer dev.-versions. no views-access again. is there a way to patch the core myself??
Comment #22
merlinofchaos commentedThis is a problem with update.php calling a registry_rebuild() prior to the system being fully bootstrapped; CTools doesn't get to put plugin classes into the registry, and the Views UI relies on one of these classes. this causes the UI to disappear.
See http://drupal.org/node/1170312#comment-4547662 for a workaround, it explains how to fix your system if it's currently broken, and points to the core patch that rolls back the broken code in update.php.
Comment #23
boiky commentedI got Views mising in Structure after latest Location module update (Location 7.x-3.x-dev (2011-Jun-03)).
For me only disabling\enabling Views UI in Modules was enough to get Views back.
Comment #24
David D commentedI just saw the same effect as @boiky from the new Location update. Flushing the cache fixed it.
Comment #26
webengr commentedI am still seeing this issue as of June 18, 2011. I have updated all modules, and I am using ctools 7.x-1.x-dev 2011-Jun-09 and views 7.x-3.x-dev 2011-Jun-18
Any time I do an update.php for something else, I can also uninstall views_ui and then reinstall views_ui to get it back. After reading the above, I can also clear cache, configuration -> performance and I see the views ui now.
Is this a core problem with drupal, after doing and update.php you have to also clear cache always or is this something that could be fixed with views_ui ???
Comment #27
merlinofchaos commented#26:
I explained the problem in #22. And provided a link to a more detailed explanation. Not sure what you hoped to gain by reopening this.
Comment #28
unipanic commentedI tried the fix in #22 and clearing the caches and removing and re-adding the modules... I still cannot edit my views.