Problem/Motivation

TypeError: Cannot access offset of type array on array in Drupal\xnttjson\Plugin\ExternalEntities\StorageClient\JsonFiles->parseFile() (line 108 of modules/contrib/xnttjson/src/Plugin/ExternalEntities/StorageClient/JsonFiles.php).

Steps to reproduce

  1. Checkout the latest release (1.0.0-beta5), with drupal/external_entities (3.0.0-beta6)
  2. create and configure a new External Entity type JSON Files storage client with a json file
  3. Save and open the corresponding entity list

Comments

tvoesenek created an issue. See original summary.

tvoesenek’s picture

Status: Active » Needs review
StatusFileSize
new1.41 KB

The problem is caused by a config change in the latest version of external_entities (3.0.0-beta6).
This patch fixes the problem.

guignonv’s picture

Status: Needs review » Fixed

Thanks for reporting and the patch. Sorry for the delay, I was focusing on external entities issues to have a release candidate and I neglected other modules. Your patch works but I prefer to use "static" binding rather than the hard coded interface name. But I'll credit you for the fix! ;-)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.