Notice: Undefined property: view::$disabled in views_ui_admin_menu_map() (line 151 of /home/xxx/public_html/sites/all/modules/admin_menu/admin_menu.map.inc).

screenshot: http://img836.imageshack.us/img836/3673/croppercapture20.jpg

shows up upon clear cache. on refresh it all disappears.

Files: 
CommentFileSizeAuthor
#5 admin_menu-views-undefined-disabled-2.patch470 bytesdixon_
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View
#4 admin_menu-views-undefined-disabled.patch392 bytesdixon_
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View

Comments

duckx’s picture

ok so i fixed this by adding the following conditional on top of it:

if (isset($view->disabled)) {
if (!$view->disabled) {
$views[] = $name;
}
}

obviously theres a better way to fix this. so its up for grabs.

IWasBornToWin’s picture

having same problem

IWasBornToWin’s picture

Priority: Normal » Major

It's been about 10 days since this was posted so I'm changing the priority. No site can use this when they are constantly getting a dozen of these red notices.

Any suggestions besides rolling back to earlier version?

dixon_’s picture

Assigned: Unassigned » dixon_
Priority: Major » Normal
Status: Active » Reviewed & tested by the community
FileSize
392 bytes
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View

I have the same problem. I think it might have appeared when I updated Views. Anyhow, here's a very simple patch that solves the problem.
I'm gonna put this as RTBC, because it's a trivial fix.

dixon_’s picture

FileSize
470 bytes
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View

Hang on. Mind slip! Here's a better one, also using proper API functions for the task ;)

sun’s picture

Title: Drupal 7 Admin Menu - Notice Undefined Property View Disabled in admin_menu.map.inc » PHP notice in views_ui_admin_menu_map()
Status: Reviewed & tested by the community » Fixed

Thanks for reporting, reviewing, and testing! Committed to all 3.x branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.