My "Content" menu disappeared after updating the "Administration Views" module.
Im using the latest recommended stable version 7.x-1.0 and latest drupal core 7.16 (7.15 had also problem). Tryed on 2 different servers. One linux live server and one localhost windows with different setups, so the problem wont be in server.
I tried manually typing the URL to the content administration but Firefox cant access it, giving me this error:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept
cookies.
And no, its not the browser. I tried with chrome in private mode and got "Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects."
Possible Solution (Fix):
Check comment #18
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | all-modules-disabled.png | 227.98 KB | ANDiTKO |
| #17 | all-modules-un-installed.png | 16.83 KB | ANDiTKO |
| #13 | admin_views.1817600-13-tests-only.patch | 2.04 KB | damiankloip |
| #13 | admin_views.1817600-13.patch | 3.91 KB | damiankloip |
| #12 | admin_views.1817600-tests-only.patch | 2.04 KB | damiankloip |
Comments
Comment #1
ANDiTKO commentedJust rolled back to "admin_views 7.x-1.0-alpha1" and the old version is working fine.
Comment #2
damiankloip commentedThe issue you have referred to above is not the same issue. You are saying your view at admin/content doesn't work. That is issue is regarding children of that view page. Have you tried this on a vanilla drupal installation? I have a feeling it may be something to do with your site/config.
Comment #3
ANDiTKO commentedThat issue happened to 2 different sites on 2 different servers. On both sites i fixed it by downgrading to "admin_views 7.x-1.0-alpha1".
Although enabling the "Admin Views" module on a clean Drupal install was working fine. So it might be something with the module dependencies versions or configurations.
Is there any way to debug this problem? I cant get dev to load on this page because i get the redirect error. My Apache and PHP error log did not help at all as far as i can remember.
Comment #4
damiankloip commentedThat looks like it is almost certainly your module setup. I guess start enabling modules one by one and see when it breaks.... :)
Comment #5
torrance123 commentedHi,
We're encountering the same/similar issue as reported above after having run a module upgrade to admin_views.
Admin views is removing the admin/content/* menu items from the admin menu. If I disable admin_menu, the admin/content/* menu items reappear, and vice versa.
If I view the list of links that are part of the management menu via the Drupal UI (eg. at admin/structure/menu/manage/management), I also see that admin/content/* menu links are missing. However, if I look directly at the {menu_links} table, I can see the all admin/content/* entries are present.
Happy to help debug further — just point me where to go.
FYI, the version we've just upgraded to is:
Comment #6
standingtallsame issue ...
Administration Views module is not usable anymore and a warning should be put on the module homepage till the point it can be made to work again!!
Comment #7
damiankloip commentedThis issue does not occur on a clean drupal 7 installation, so this must be a conflict with other modules on the sites.
@standingtall and others, A bit more information would be helpful, as there are only a handful of people having this issue, so it obviously isn't happening all the time. Just "It doesn't work" doesn't really help a great deal I'm afraid.
Comment #8
tklawsuc commentedFurther to @torrance123 comment, I have the elFinder module installed. When admin views is disabled I can see all the files at admin/content/files. When admin views is enabled I get a 500 error:
PHP Fatal error: require_once(): Failed opening required '/***/sites/all/modules/contrib/elfinder/custom_pub.admin.inc' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /***/includes/menu.inc on line 514
I haven't had a chance to look into it further but thought I would post it on here in case it helps narrow in on the problem.
Comment #9
tklawsuc commentedAfter some further based on the error, for some reason the menu module is trying to load custom_pub.admin.inc which is part of the custom publishing options module. This only happens when the admin views module is enabled. So I disabled the custom_pub module and I still get the 500 error only this time it's:
[Tue Dec 11 06:42:07 2012] [error] [client 10.242.2.10] PHP Fatal error: require_once(): Failed opening required '/***/sites/all/modules/contrib/elfinder/node.admin.inc' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /***/includes/menu.inc on line 514
My thought is that there is something in the admin views module that is conflicting with either the elfinder module or the admin/content/files path. Could be something like the path along with admin views is trying to load up the admin include files for all modules...failing on the first one it loads. So when custom_pub is enabled it fails on that. If disabled then it fails on the next module which seems to be the node module.
Worth noting that I also have the media module installed and going to admin/content/media works fine. This is why I think the elfinder module might be partially to blame for this issue.
I don't have time now to debug further so I had to go against the drupal bible and added an empty custom_pub.admin.inc file into the elfinder module.
Comment #10
ANDiTKO commented@tklawsuc
I did not had elfinder installed on my site when i was getting this error. So i dont think "elfinder" is to blame.
Any ideas how can i debug this error? The error logs are clean i cannot run devel or anything on the problematic page because it dose not load.
Comment #11
damiankloip commentedThis is not specifically an elfinder issue, this is an issue for any module that provides a callback at admin/content/XX That ISN'T a view page. This is a tricky issue to solve due to router item inheritance. So people can fix this temporarily if they really need to by adding their own 'file' entry to their menu items.
Comment #12
damiankloip commentedok, I wrote a few tests first to expose the actual bug/issue.
I have also got a fix too. I'm happy to commit this, as it works for me, and in the tests but would be good to get feedback from people that are having these issues.
Here's a patch showing failing tests, then hopefully all passing.
Anyone testing; Use the second patch, apply to the latest git checkout of the 7.x-1.x branch and flush caches.
Comment #13
damiankloip commentedGood, that doesn't totally work properly though but I think this might. Same applies as above to testers.
Comment #14
damiankloip commentedI committed a fix for this over in #1786522: Conflict with exported views via Features. This should fix this too. Closing for now. Reviews welcome.... Please pull the latest dev version of the module or wait a few hours to download the snapshot.
Comment #15
damiankloip commentedComment #16
ANDiTKO commentedWell... sorry but the fix dose not work for me. Im going to have to re-open this issue again. Sorry.
I am going to find when and why this bug happens. And maybe post a patch. I will keep you updated here.
Comment #17
ANDiTKO commentedI disabled and un-installed every module possible. But the problem still exists. Also deleted any nodes and content types (i had to do it to disable some of the modules).
So, the problem is NOT a module conflict. Anyone has any ideas how can i debug and find the problem?
If you are interested i can upload a copy of the website that i have problems on. (i will strip it down and make an installation profile).
Check the screenshots that modules were disabled and uninstalled:
Comment #18
ANDiTKO commentedI've found a solution!!! Here is how to fix it:
1) Disable the "Administration Views" Module (under admin/modules)
2) Delete the "admin_content_node" View (under admin/structure/views)
3) Enable the "Administration Views" Module (under admin/modules)
I remember that i had changed the default "admin_content_view" by adding some extra fields like images to display next to my node titles. Maybe that's why it stopped working.
Thanks for making that awesome module :)
- ANDiTKO
Comment #19
ANDiTKO commentedComment #21
standingtall#18 doesn't solve it for me.
Comment #22
damiankloip commentedAfter reverting your views?
Comment #23
damiankloip commentedComment #24
standingtallyes .. reverted all views but still won't work.
Comment #25
damiankloip commented@standingtall - Do you have any more info than that? Generally "won't work" is a bit of an unhelpful diagnosis ;)
Modules, does this work for you on a clean install for instance?
Comment #26
landor commented#18 solves it for me.
I disabled the module, then uninstalled it (modules -> uninstall), then deleted the "admin_content_node" view, then re-enabled the module.
Thanks!
Comment #27
damiankloip commented@landor, good to hear! :)
Comment #28
shock-j commented#18 Does NOT fix the issue for me either. Under every circumstance the Content menu item is missing and going directly to "/admin/content" produces "You have reached a page that you do not have the proper permissions to view."
Comment #29
shock-j commentedOK. I've got it working but it was very strange.
I followed the process in #18 (even un-installed the module and re-installed).
Initial visit to /admin/content yielded permission denied error.
After examining the "Administration: Nodes" View, there was a Page display (to go along with the System display) that BOTH had Paths that pointed to "admin/content" (obvious conflict).
After deleting the Page display (which seemed to be an unnecessary duplicate display and I'm not sure where it came from), everything started to work fine, including the appearance of "Content" menu item.
Is creating a duplicate Page display (at the same path) the default behavior of the Admin Views module? Should I be using a this Page display instead (so that I can maintain the default settings in the System display for reference?) I guess that kind of makes sense, but creating the Page display with the same Path as the System display sounds like a mistake.
Comment #30
damiankloip commentedIs that sarcastic? No, that's not the default behaviour. These problems only occur generally when people have SAVED THESE ADMINS VIEWS (So they are overridden in the database) then upgrade. This is a characteristic of how the CTools export system works in general with in code and overridden items in the database. It will always use the overridden one if it has it there. I also don't think it's a good idea we just delete peoples admin views during a module upgrade.
Seems like that additional display has been added by a user, as we have always used the system display.
I am going to add a note to the project page to warn people that overridden views aren't really supported.
Comment #31
pianomansam commented@damiankloip, I'm glad you've determined that at the present time, overridden views aren't supposed. However, this isn't satisfactory to me as the only reason I install admin_views is I can customize the admin content and user pages. The default pages that admin_views provides are definitely an improvement over the core pages, but each Drupal site is different, and I need the ability to customize these pages to what each site needs.
The bigger issue at work here is that loosing the ability to have overridden views is a regression from 7.x-1.0-alpha1. I'm not sure how it can be okay to have something fundamental be in an alpha, but be missing from two production releases.
Comment #32
damiankloip commentedIts not missing. You are free to do whatever you like with your views, but how do we feasibly support any updates to views if they are overridden? You can't. So I'm afraid calling this a regression is not to true at all.
Comment #33
damiankloip commentedThe best fix we could do is to always remove the old view. As this changed name after the alpha release. But then this would also delete peoples old views if they were upgrading from that version.
Comment #34
pianomansam commentedThe regression aspect I'm referring to is that it was possible in 7.x-1.0-alpha1 to update this module without breaking when the admin views were overridden the database.
Is there a way to decouple the overriding functionality from the actual view export? Perhaps provide a default view that is used, but allow the site admin to select a different one? This way, a site admin could maintain their own views, whether in database, exported to code, or exported through a feature. And updates to the core functionality, that is, this module, wouldn't interfere with the maintenance of the views.
Comment #35
damiankloip commentedHm, I'm not sure exactly what you mean. Are you familiar with the CTools export system? This is just default views which implicitly relies on CTools for this. You are welcome to override your views but if any views change between releases, you will not get these changes.
The ONLY reason we are having issues here is that the views changed name from from the alpha release.
So again, I'm not sure how this is a regression in the functionality. This works much the same as it did before and this module is pretty much default views. If you have upgraded you really just need to remove the old view that was in the database and use the new overriden view with the correct machine name.
This is a fixed issue and 'won't fix' for anything else as far as I'm concerned.. Sorry :/
Comment #36
heylookalive commentedSorry damian, re-opening.
We've not overridden the views, I've tried doing as suggested (disabling, removing any views which stick around, re-enabling). Tried going back to alpha1, tried latest dev, all of which don't work and I've got the issue that:
Go to content view, click "Reset", "The page isn't redirecting properly".
Let me know if there's any other info I can give.
Comment #37
damiankloip commentedThis is not related to this issue. You need to upgrade views. See #1844510: Views "Reset" button causes infinite redirect loop
Comment #38.0
(not verified) commentedAdded solution :)
Comment #38.1
ANDiTKO commentedpossible solution
Comment #39
vulfox commentedI had this problem too.
Turned out that I had Commerce Backoffice view that override admin/content URL
So.. if you have this problem go to /admin/structure/views and search for "admin/content" or any other url you having trouble with and see if some other view is already using that.
Maybe check "Path" too..