Updating to the Sept 9 version, I have suddenly lost access to admin/content

No content link is shown on the administration toolbar, and when I try to access admin/content, I get a "Access Denied: You are not authorized to access this page" error.

I am logged in as user/1.

Any ideas?

Cynthia

Comments

Cynthia Ewer’s picture

Adding that switching to the current dev version does not fix the issue.

I'm just an end user, but this error message might be helpful. From the logs:

Notice: Trying to get property of non-object in user_access() (line 820 of /home/XXX/www/html/modules/user/user.module).

And finally, I created a test user with site administration permissions; receives the same error.

Thanks for any help you can give me; I loved this module while it worked.

tdurocher’s picture

Priority: Normal » Major

Same thing with me since the upgrade. And same error in the logs. But for me, at least, it is only two views: admin/content and admin/people. They also disappeared from the admin menu. Previewing the views doesn't give the same error but there are fields I never put there and most of the fields I put there are empty.

I've cleared Views cache and all Caches.

Changing status to Major. My site is severely degraded without these views.

tdurocher’s picture

By the way, if you just disable the admin views that are giving you trouble, the built-in pages at those urls will take over.

damiankloip’s picture

Status: Active » Fixed

Duplicate of #1780004: Trying to get property of non-object in user_access() with 2 admin views on the same path. You need to revert your views if you are upgrading from the alpha to the 1.0 release

damiankloip’s picture

Priority: Major » Normal
tdurocher’s picture

Status: Fixed » Closed (duplicate)

This is a duplicate of #1780004. There is some more information there. Ultimately for me, upgrading to the latest Views version fixed my problems.

tswaters’s picture

I updated from a really old version of admin_views and encountered this issue myself. After digging around I found #1780004: Trying to get property of non-object in user_access() with 2 admin views on the same path, comment #6 which basically says the old admin views are in the database and are conflicting with the new views.... The resolution is to disable or simply delete the old views... I was able to do this with the following datafix :

DELETE vv.*, vd.* FROM views_view vv, views_display vd WHERE vv.vid=vd.vid AND vv.name in('admin_content_node', 'admin_user_user', 'admin_content_comment');