If you disable a page display (or if the View defaults to disabled) in the "Basic settings", its menu item is apparently still defined. If you visit it, you get a WSOD, and it still appears in whatever menu you had it set to if you specified a menu item type. I'm guessing the solution is somewhere in views_plugin_display_page::execute_hook_menu()?

Comments

rszrama’s picture

Oh, I meant to say, this is easily reproducible by enabling the frontpage View, editing it so its "Display status" is set to Disabled, and browse to /frontpage.

dawehner’s picture

This is very confusing.

If you look into the display 'enabled' is TRUE.

rszrama’s picture

StatusFileSize
new23.24 KB
new28.62 KB

Not sure if you mean the bug report is confusing or the reported Views behavior is confusing. : )

Are you saying if you look into the export of the View the display 'enabled' is TRUE? When I look at it through the UI, disabling the default display propagates to the page display. Neither does it appear as enabled in my export code. : ?

Basic settings of the page display after disabling on the default display:

Snippet of the export pertaining to the page display shows no overrides:

dawehner’s picture

Basically i saw the same problem but with views_get_view.

It's not in there so this issue is not as easy to fix as it seems to be.

merlinofchaos’s picture

Status: Active » Fixed

All we had to do is fix views_get_applicable_displays() do skip disabled displays.

Fixed in 7.x-3.x and 6.x-3.x

rszrama’s picture

Woohoo, thanks Earl. Putting my View back in now (it's disabled by default and can show all the orders that are somewhere in the checkout process). : )

Status: Fixed » Closed (fixed)

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