Error: Call to a member function getEntityTypeId() on bool in Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator->getRouteMethodSummary() (line 306 of /var/www/html/transdis/web/modules/contrib/openapi_jsonapi/src/Plugin/openapi/OpenA

Created on 9 August 2024, 6 months ago

When I access /admin/config/services/openapi/swagger/jsonapi, the error occured.

Error: Call to a member function getEntityTypeId() on bool in Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator->getRouteMethodSummary() (line 306 of /var/www/html/transdis/web/modules/contrib/openapi_jsonapi/src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php).

#0 /var/www/html/drupal/web/modules/contrib/openapi_jsonapi/src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php(239): Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator->getRouteMethodSummary()
#1 /var/www/html/drupal/web/modules/contrib/openapi/src/Plugin/openapi/OpenApiGeneratorBase.php(138): Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator->getPaths()
#2 /var/www/html/drupal/web/modules/contrib/openapi/src/Controller/OpenApiUiController.php(43): Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase->getSpecification()
#3 [internal function]: Drupal\openapi\Controller\OpenApiUiController->generate()
#4 /var/www/html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#5 /var/www/html/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#6 /var/www/html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#7 /var/www/html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#8 /var/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /var/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#10 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#11 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#12 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#13 /var/www/html/drupal/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#14 /var/www/html/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#15 /var/www/html/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#16 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#17 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#18 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#19 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#20 /var/www/html/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#21 /var/www/html/drupal/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#22 {main}

I installed jsonapi, openapi, openapi_jsonapi, schemata, schemata_json_schema, openapi_ui and openapi_ui_swagger. All are the latest stable versions. Drupal 10.2, PHP 8.2

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇳China fishfree

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

Comments & Activities

Production build 0.71.5 2024