From 8409c7bbae6bd5c37cedf3299393f19d3311de13 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Sun, 8 Mar 2026 22:14:52 +0100 Subject: [PATCH 1/2] Document property_info not loaded error --- extra/troubleshooting.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/extra/troubleshooting.md b/extra/troubleshooting.md index 8afb4e6bc65..864d5caa875 100644 --- a/extra/troubleshooting.md +++ b/extra/troubleshooting.md @@ -58,6 +58,31 @@ The JMS Serializer service is available as `jms_serializer`. **Note:** if you are using JMSSerializerBundle along with FOSRestBundle and considering migrating to API Platform, you might want to take a look at [this guide](migrate-from-fosrestbundle.md) too. +## "The service has a dependency on a non-existent service property_info" Error + +If you get the following error after upgrading API Platform or Symfony: + +``` +The service "api_platform.metadata.property.name_collection_factory.property_info" +has a dependency on a non-existent service "property_info". +``` + +This means the `property_info` component is not enabled. Recent versions of Symfony require it to be +explicitly activated in your configuration: + +```yaml +# config/packages/property_info.yaml +framework: + property_info: + enabled: true +``` + +Clear your cache after making the change: + +```console +php bin/console cache:clear +``` + ## "upstream sent too big header while reading response header from upstream" NGINX 502 Error Some of your API calls fail with a 502 error and the logs for the API container shows the following From 56876a1ac866ca1a22ba58de76da0f07f8efa76b Mon Sep 17 00:00:00 2001 From: lacatoire Date: Sun, 8 Mar 2026 22:18:26 +0100 Subject: [PATCH 2/2] Fix lint: add language to fenced code block --- extra/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/troubleshooting.md b/extra/troubleshooting.md index 864d5caa875..5707a3ed760 100644 --- a/extra/troubleshooting.md +++ b/extra/troubleshooting.md @@ -62,7 +62,7 @@ API Platform, you might want to take a look at [this guide](migrate-from-fosrest If you get the following error after upgrading API Platform or Symfony: -``` +```text The service "api_platform.metadata.property.name_collection_factory.property_info" has a dependency on a non-existent service "property_info". ```