droptica / droopler

https://www.droopler.com
GNU General Public License v2.0
60 stars 20 forks source link

Drupal\Core\Database\InvalidQueryException: Query condition 'nfd.nid IN ()' cannot be empty #828

Open almadorx opened 2 years ago

almadorx commented 2 years ago

I've installed Droopler 8.3.1 with instructions from: https://github.com/droptica/droopler_project

In the last step, I checked to install example content.

Opening the new site throws an error:

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

After enabling errors verbose:

Drupal\Core\Database\InvalidQueryException: **Query condition 'nfd.nid IN ()' cannot be empty**. in Drupal\Core\Database\Query\Condition->condition() (line 117 of core/lib/Drupal/Core/Database/Query/Condition.php).
Drupal\Core\Database\Query\Select->condition('nfd.nid', Array, 'IN') (Line: 177)
Drupal\d_p_reference_content\Helpers\ContentHelper->getPublishedContent(Array) (Line: 57)
d_p_reference_content_preprocess_paragraph__d_p_reference_content(Array, 'paragraph', Array)
call_user_func_array('d_p_reference_content_preprocess_paragraph__d_p_reference_content', Array) (Line: 287)
Drupal\Core\Theme\ThemeManager->render('paragraph', Array) (Line: 422)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 54)
__TwigTemplate_0164865b778cfa8e58ddeb6df28c1337fd5522a806b33eab8c17c5edb0fdef4d->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('profiles/contrib/droopler/themes/custom/droopler_theme/templates/field/field--field-page-section.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 422)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 58)
__TwigTemplate_2d0dddf0acd79aeaddfc773fc31e3934c7f6cb6528c1da7cf13c9362c3e38b85->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('profiles/contrib/droopler/themes/custom/droopler_theme/templates/content/node--content-page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 422)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 241)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)`
grzegorz-pietrzak-droptica commented 2 years ago

Hi, thanks for reporting the bug, I added it to drupal.org's bug tracker https://www.drupal.org/project/droopler/issues/3324922