Problem/Motivation

On an existing site, I enabled Parameters, Parameters UI, ECA Parameters, and ECA Parameters UI. When I go to /admin/config/parameters and click to add a new collection, I get a fatal error. The logged error is:

Symfony\Component\Serializer\Exception\UnexpectedValueException: The type link relation must be specified. in Drupal\hal\Normalizer\ContentEntityNormalizer->denormalize() (line 129 of /mnt/www/html/exelonrfpc7pyprpyav/docroot/modules/contrib/hal/src/Normalizer/ContentEntityNormalizer.php).

The collection is created, but if I try to edit any collection (new or default ones) I get the same fatal error.

Proposed resolution

Identify and fix the source of the error.

Issue fork parameters-3361533

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mandclu created an issue. See original summary.

mxh’s picture

Title: Fatal error when creating or editing a collection » Incompatible with HAL module

  • mxh committed c9ea48fe on 1.0.x
    Issue #3361533 by mandclu, mxh: Incompatible with HAL module
    
mxh’s picture

Version: 1.2.6 » 1.0.x-dev

Created a hotfix that at least should get rid of the error. Need to look at this again for a proper solution.

Could you maybe try out whether the error is gone on your side? I've committed this into 1.0.x.

mxh’s picture

Status: Active » Needs review
mandclu’s picture

Status: Needs review » Fixed

Looks like this was already committed, so breaking protocol and moving this straight to fixed. The changes did indeed resolve my fatal error and allowed me to successfully use this module.

mxh’s picture

Status: Fixed » Needs work

Thanks for reporting back.

I need to work on a proper fix, therefore setting to needs work. Addressing this in an issue fork here.

  • mxh committed 28e689e6 on 1.0.x
    Issue #3361533: Incompatible with HAL module
    
mxh’s picture

Status: Needs work » Fixed

Have manually tested the new fix and it seems to work. Assuming to be fixed, but if you still encounter problems, feel free to reopen this.

Status: Fixed » Closed (fixed)

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