Closed CJDennis closed 2 years ago
please clear the cache
I've cleared the cache, both using the command clear:cache and deleting it completely by removing the whole folder, and it still doesn't work. I did some checks and I believe it crashes in JMS\Serializer\Metadata\ClassMetadata.php, method unserializeFromArray. When we check the values inside the param $data, we see the current values:
Hi! Are you using JMSSerializerBundle ? What is yours cache configuration?
Yes we're using JMSSerializerBundle This is the Cache config with memcached also we clear memcached and not work:
framework:
cache:
default_memcached_provider: "%memcached.parameters%"
pools:
doctrine.result_cache_pool:
adapter: cache.adapter.memcached
doctrine.system_cache_pool:
adapter: cache.adapter.memcached
doctrine.second_level_cache_pool:
adapter: cache.adapter.memcached
doctrine.main_cache_region_pool:
adapter: cache.adapter.memcached
Now it works We upgrade the JMSSerializerBundle from 3.9.x to version 4.0.x and it works. Is it possible that JMSSerializerBundle doesn't had well configure the require version of JMSSerializer in version 3.9.x?
Please make sure to clean the cache (whatever cache you might be using, files, redis, apc...)
1366 added the following lines to
src/Metadata/ClassMetadata.php
:I now get
[PHPUnit\Framework\Error\Warning] Undefined array key 16 at vendor\jms\serializer\src\Metadata\ClassMetadata.php:322
when running tests since$this->discriminatorGroups
(which is already included two lines above) does not exist in the array.Steps required to reproduce the problem
Expected Result
Actual Result
500
in production mode.[PHPUnit\Framework\Error\Warning] Undefined array key 16
in tests.