Hello,

Updating to the latest version and having multiple sub-websites. The main website has no problem but all the subsites encounter the following error:

TypeError: Argument 2 passed to Drupal\jsonapi\Routing\Routes::Drupal\jsonapi\Routing\{closure}() must be an instance of Drupal\jsonapi\ResourceType\ResourceType, null given in Drupal\jsonapi\Routing\Routes::Drupal\jsonapi\Routing\{closure}() (line 330 of modules/contrib/jsonapi/src/Routing/Routes.php).

I have tried to manually rebuild the `router.builder` in the subsites but it didn't help. Besides, I have checked other jsonapi versions and noticed that the problem doesn't exist in the version 1.0.

Looking into the issue list, I have found this issue very similar to this one. I followed the related issues and found out this one and finally this one. However, apparently I was wrong and the last issue was not really related to this one. Therefore, dear Wim Leers asked me to open a new issue.

So, I hope the given information is useful for solving this issue. Thank you very much for your support and for maintaining this awesome module.

Sincerely yours,
Ramin

CommentFileSizeAuthor
#5 3003552-5-debug-do-not-test.patch1.48 KBwim leers

Comments

hedeshy created an issue. See original summary.

hedeshy’s picture

Issue summary: View changes
hedeshy’s picture

Issue summary: View changes
hedeshy’s picture

Issue summary: View changes
wim leers’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new1.48 KB

Can you apply the attached debug patch and try again? That will add some useful debug output that'll help us pinpoint the root cause. Thanks!

hedeshy’s picture

Status: Postponed (maintainer needs more info) » Active

Hi Wim,

Thank you very much for following up this issue. When I was patching the module I have noticed that `Schemata` module has also a route class. I assumed it can potentially cause this issue so I removed it but it didn't fix the problem.

Well, here is what I get from the debug patch you have sent me. Hope it helps.


object(Drupal\jsonapi\ResourceType\ResourceType)#78810 (11) { ["entityTypeId":protected]=> string(4) "node" ["bundle":protected]=> string(11) "publikation" ["typeName":protected]=> string(17) "node--publikation" ["deserializationTargetClass":protected]=> string(23) "Drupal\node\Entity\Node" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["nid"]=> string(20) "drupal_internal__nid" ["type"]=> string(9) "node_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__nid"]=> string(3) "nid" ["node_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(7) { ["node_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#78943 (11) { ["entityTypeId":protected]=> string(9) "node_type" ["bundle":protected]=> string(9) "node_type" ["typeName":protected]=> string(20) "node_type--node_type" ["deserializationTargetClass":protected]=> string(27) "Drupal\node\Entity\NodeType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["type"]=> string(21) "drupal_internal__type" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(0) { } } } ["revision_uid"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79603 (11) { ["entityTypeId":protected]=> string(4) "user" ["bundle":protected]=> string(4) "user" ["typeName":protected]=> string(10) "user--user" ["deserializationTargetClass":protected]=> string(23) "Drupal\user\Entity\User" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(1) { ["uid"]=> string(20) "drupal_internal__uid" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__uid"]=> string(3) "uid" } ["relatableResourceTypes"]=> array(2) { ["roles"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79606 (11) { ["entityTypeId":protected]=> string(9) "user_role" ["bundle":protected]=> string(9) "user_role" ["typeName":protected]=> string(20) "user_role--user_role" ["deserializationTargetClass":protected]=> string(23) "Drupal\user\Entity\Role" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["user_picture"]=> array(4) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77746 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "audio" ["typeName":protected]=> string(11) "file--audio" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } [1]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77765 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(8) "document" ["typeName":protected]=> string(14) "file--document" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } [2]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77808 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "image" ["typeName":protected]=> string(11) "file--image" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } [3]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77827 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "video" ["typeName":protected]=> string(11) "file--video" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } } } } } ["uid"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79603 (11) { ["entityTypeId":protected]=> string(4) "user" ["bundle":protected]=> string(4) "user" ["typeName":protected]=> string(10) "user--user" ["deserializationTargetClass":protected]=> string(23) "Drupal\user\Entity\User" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(1) { ["uid"]=> string(20) "drupal_internal__uid" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__uid"]=> string(3) "uid" } ["relatableResourceTypes"]=> array(2) { ["roles"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79606 (11) { ["entityTypeId":protected]=> string(9) "user_role" ["bundle":protected]=> string(9) "user_role" ["typeName":protected]=> string(20) "user_role--user_role" ["deserializationTargetClass":protected]=> string(23) "Drupal\user\Entity\Role" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["user_picture"]=> array(4) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77746 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "audio" ["typeName":protected]=> string(11) "file--audio" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } [1]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77765 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(8) "document" ["typeName":protected]=> string(14) "file--document" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } [2]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77808 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "image" ["typeName":protected]=> string(11) "file--image" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } [3]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77827 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "video" ["typeName":protected]=> string(11) "file--video" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } } } } } ["menu_link"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79713 (11) { ["entityTypeId":protected]=> string(17) "menu_link_content" ["bundle":protected]=> string(17) "menu_link_content" ["typeName":protected]=> string(36) "menu_link_content--menu_link_content" ["deserializationTargetClass":protected]=> string(47) "Drupal\menu_link_content\Entity\MenuLinkContent" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["field_kategorie"]=> array(1) { ["kategorie"]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79232 (11) { ["entityTypeId":protected]=> string(13) "taxonomy_term" ["bundle":protected]=> string(9) "kategorie" ["typeName":protected]=> string(24) "taxonomy_term--kategorie" ["deserializationTargetClass":protected]=> string(27) "Drupal\taxonomy\Entity\Term" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(1) { ["tid"]=> string(20) "drupal_internal__tid" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__tid"]=> string(3) "tid" } ["relatableResourceTypes"]=> array(2) { ["vid"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79130 (11) { ["entityTypeId":protected]=> string(19) "taxonomy_vocabulary" ["bundle":protected]=> string(19) "taxonomy_vocabulary" ["typeName":protected]=> string(40) "taxonomy_vocabulary--taxonomy_vocabulary" ["deserializationTargetClass":protected]=> string(33) "Drupal\taxonomy\Entity\Vocabulary" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["vid"]=> string(20) "drupal_internal__vid" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__vid"]=> string(3) "vid" } ["relatableResourceTypes"]=> array(0) { } } } ["parent"]=> array(1) { ["kategorie"]=> *RECURSION* } } } } ["field_publikation_cover"]=> array(1) { ["image"]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77808 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "image" ["typeName":protected]=> string(11) "file--image" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79603 (11) { ["entityTypeId":protected]=> string(4) "user" ["bundle":protected]=> string(4) "user" ["typeName":protected]=> string(10) "user--user" ["deserializationTargetClass":protected]=> string(23) "Drupal\user\Entity\User" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(1) { ["uid"]=> string(20) "drupal_internal__uid" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__uid"]=> string(3) "uid" } ["relatableResourceTypes"]=> array(2) { ["roles"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#79606 (11) { ["entityTypeId":protected]=> string(9) "user_role" ["bundle":protected]=> string(9) "user_role" ["typeName":protected]=> string(20) "user_role--user_role" ["deserializationTargetClass":protected]=> string(23) "Drupal\user\Entity\Role" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["user_picture"]=> array(4) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77746 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "audio" ["typeName":protected]=> string(11) "file--audio" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } [1]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77765 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(8) "document" ["typeName":protected]=> string(14) "file--document" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } [2]=> *RECURSION* [3]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77827 (11) { ["entityTypeId":protected]=> string(4) "file" ["bundle":protected]=> string(5) "video" ["typeName":protected]=> string(11) "file--video" ["deserializationTargetClass":protected]=> string(36) "Drupal\file_entity\Entity\FileEntity" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(true) ["disabledFields":protected]=> array(1) { [0]=> string(4) "uuid" } ["fieldMapping":protected]=> array(2) { ["fid"]=> string(20) "drupal_internal__fid" ["type"]=> string(9) "file_type" } ["invertedFieldMapping":protected]=> array(2) { ["drupal_internal__fid"]=> string(3) "fid" ["file_type"]=> string(4) "type" } ["relatableResourceTypes"]=> array(2) { ["file_type"]=> array(1) { [0]=> object(Drupal\jsonapi\ResourceType\ResourceType)#77830 (11) { ["entityTypeId":protected]=> string(9) "file_type" ["bundle":protected]=> string(9) "file_type" ["typeName":protected]=> string(20) "file_type--file_type" ["deserializationTargetClass":protected]=> string(34) "Drupal\file_entity\Entity\FileType" ["internal":protected]=> bool(false) ["isLocatable":protected]=> bool(true) ["isMutable":protected]=> bool(false) ["disabledFields":protected]=> array(2) { [0]=> string(4) "uuid" [1]=> string(5) "_core" } ["fieldMapping":protected]=> array(1) { ["id"]=> string(19) "drupal_internal__id" } ["invertedFieldMapping":protected]=> array(1) { ["drupal_internal__id"]=> string(2) "id" } ["relatableResourceTypes"]=> array(0) { } } } ["uid"]=> array(1) { [0]=> *RECURSION* } } } } } } } } } } ["field_publikation_file"]=> array(1) { ["file"]=> NULL } } } array(1) { ["file"]=> NULL }

wim leers’s picture

Status: Active » Postponed (maintainer needs more info)

At the end there is this:

["field_publikation_file"]=> array(1) { ["file"]=> NULL } } } array(1) { ["file"]=> NULL }

This means that there's something off/wrong about the field_publikation_file entity reference field. Can you inspect its configuration and verify that it is correct? I think it's probably referring to a wrong or non-existent entity type or bundle.

hedeshy’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Thanks a lot, Wim!

Yes, the file type was not selected in that field though it is required. So, I am sorry for wasting your precious time. Hopefully, this post can at least help other people who have the same issue.