Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295245

"This value should be of the correct primitive type" error when field has no value

$
0
0

I have a Field API field and I have attached it to an entity. This field has multiple fields in it. When I submit the form without all fields filled I get the "This value should be of the correct primitive type." error.

Is this a bug or am I doing something wrong? I was having trouble with serialized field for storing metadata but I've been able to get around it by setting it to computed field. But I cannot do that in this case.

Steps to Reproduce
I found this bug in branch 8.0.x and 8.1.x
PHP 5.6.14

Follow these steps to reproduce the problem.

1. Applying actual patch from ImageFormatter does not support SVGs
2. Install and enable ImageMagick
3. Go to configuration module and set enable svg
4. Go to modification any image field, add svg to allow extension
5. Try add svg image to any node


Viewing all articles
Browse latest Browse all 295245

Trending Articles