I'm using latest drupal version ( 8.4.5) and latest context dev version.When you try to delete a context , the drupal site breaks until you rebuild the cache.This error appears in logs:

Drupal\Core\Database\InvalidQueryException: Query condition 'menu_link_content.uuid IN ()' cannot be empty. in Drupal\Core\Database\Query\Condition->condition() (line 103 of /var/www/html/web/core/lib/Drupal/Core/Database/Query/Condition.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nkoporec created an issue. See original summary.

nkoporec’s picture

Status: Active » Needs review
FileSize
639 bytes

I wrote a patch to fix this problem, please review it.

icurk’s picture

What are the steps to reproduce this error. I have drupal 8.5.0 installed and dev version of the module and I don't get any error.

nkoporec’s picture

Retested the issue and the issue is gone in Drupal 8.5 but remains on Drupal 8.4

Steps to reproduce:
1.Create a new context
2.Delete context

An error The website encountered an unexpected error. Please try again later. occur.

nkoporec’s picture

After debugging the issue, even more, I found out that this error is related to module Admin toolbar which I have installed on both Drupal(same latest versions of admin_toolbar-1.23).Even though the site doesn't break on Drupal 8.5, another minor bug appears which is related to this issue(see screenshot) and my patch fixes both problems(site break and this minor bug) since it rebuilds the menu when a context is deleted.

maaty388’s picture

Status: Needs review » Reviewed & tested by the community

I can reproduce bug when you delete context, an item is still displayed in the menu...
This patch fixes this problem.

  • boshtian committed 807502c on 8.x-4.x authored by nkoporec
    Issue #2948251 by nkoporec, icurk, matjaz_zavski: Drupal site breaks...
boshtian’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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