Error: Cannot instantiate abstract class Drupal\quiz\Entity\QuizQuestion

Created on 22 August 2022, about 2 years ago
Updated 10 September 2024, 2 months ago

Hi,

I'm using the quiz module version 6.0.0-alpha7 with Drupal 9.4.2.

When I try to go to Quiz > Question (/admin/quiz/questions), I got this fatal error :

Error: Cannot instantiate abstract class Drupal\quiz\Entity\QuizQuestion in /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php on line 509 #0 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(427): Drupal\Core\Entity\Sql\SqlContentEntityStorage->mapFromStorageRecords()
#1 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(393): Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage()
#2 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/Entity/EntityStorageBase.php(346): Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple()
#3 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/Entity/EntityListBuilder.php(87): Drupal\Core\Entity\EntityStorageBase->loadMultiple()
#4 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/Entity/EntityListBuilder.php(218): Drupal\Core\Entity\EntityListBuilder->load()
#5 /srv/data/web/vhosts/dev.fr/htdocs/modules/contrib/quiz/src/Config/Entity/QuizQuestionListBuilder.php(18): Drupal\Core\Entity\EntityListBuilder->render()
#6 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/Entity/Controller/EntityListController.php(23): Drupal\quiz\Config\Entity\QuizQuestionListBuilder->render()
#7 [internal function]: Drupal\Core\Entity\Controller\EntityListController->listing()
#8 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#9 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#11 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#12 /srv/data/web/vhosts/dev.fr/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /srv/data/web/vhosts/dev.fr/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#14 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#15 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#16 /srv/data/web/vhosts/dev.fr/htdocs/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#17 /srv/data/web/vhosts/dev.fr/htdocs/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#18 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#19 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#20 /srv/data/web/vhosts/dev.fr/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#21 /srv/data/web/vhosts/dev.fr/htdocs/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#22 /srv/data/web/vhosts/dev.fr/htdocs/index.php(19): Drupal\Core\DrupalKernel->handle()

Has anyone encountered the same error before?

Kind regards,

Clรฉment

๐Ÿ› Bug report
Status

Active

Version

7.0

Component

Code - Quiz core

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance Tocard

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024