When I updated from beta3 to current HEAD, I ended up with an uncaught exception in a view with a taxonomy term filter (view attached). The commit in question is 2275e953edf12b4f319416a8bae1904c38dfa35d. If you remove the taxonomy term filter and recreate it all is well. I'm assuming since we're still in beta it's okay to ask people to fix their views by hand, but the exception seems worth catching.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ksenzee’s picture

Status: Active » Needs review
FileSize
702 bytes

Here's a quick patch that simply catches the exception. Not sure if anything more is needed.

dawehner’s picture

Here is a slighly improved version

* catch the errors with a single try catch
* remove the try catch from preview, it's not needed anymore
* throw the error message as drupal_set_message in the live preview, so developers see them.

dawehner’s picture

Commited this version.

dawehner’s picture

Status: Needs review » Fixed

Okay commited this patch.

There is one issue: you don't see the exception when you initially load the view, because the exception is part of the executing of the view which happens per default on pre_render, which is too late for $messages.

Status: Fixed » Closed (fixed)

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