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

Created on 1 September 2022, almost 3 years ago
Updated 14 July 2023, about 2 years 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.

  • 🇬🇧United Kingdom rakesh.gectcr Manchester

    This patch is working https://www.drupal.org/project/jsonapi_menu_items/issues/3276561#comment... Add support for the Menu Item Extras module Needs review

  • Status changed to Closed: duplicate 3 months ago
  • 🇬🇧United Kingdom alexpott 🇪🇺🌍

    The module is now tested with menu_item_extras and is working. Going to close and mark as a duplicate. If this is happening for other reasons please re-open this issue- or perhaps better - create a new issue with well written steps to reproduce and link to this one.

Production build 0.71.5 2024