ResourceType, null given to fetch jsonapi/menu_items/{menu_machine_name}

Created on 1 September 2022, over 2 years ago
Updated 14 July 2023, over 1 year ago

Problem/Motivation

facing issue while try to access jsonapi/menu_items/{menu_machine_name}
getting error
The website encountered an unexpected error. Please try again later.
TypeError: Drupal\jsonapi\JsonApiResource\ResourceObject::__construct(): Argument #2 ($resource_type) must be of type Drupal\jsonapi\ResourceType\ResourceType, null given, called in C:\xampp\htdocs\caas-devportal\docroot\modules\contrib\jsonapi_menu_items\src\Resource\MenuItemsResource.php on line 206 in Drupal\jsonapi\JsonApiResource\ResourceObject->__construct() (line 91 of core\modules\jsonapi\src\JsonApiResource\ResourceObject.php).

Steps to reproduce

added jsonapi_menu_items , jsonapi_resources, jsonapi_hypermedia modules in drupal 9.4 site. and after enabling trying to access menu items through jsonapi/menu_items/{menu_machine_name} but getting error

if anyone facing such issue .Let me know how to resolve this one

💬 Support request
Status

Active

Version

1.2

Component

Code

Created by

🇮🇳India Chetanac

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