eZ Platform Discussions

Ezplatform 1.10 -> latest error "You have requested a non-existent parameter "ezpublish.http_cache.purge_type"."


#1

You have requested a non-existent parameter “ezpublish.http_cache.purge_type”.

I am in the process of attempting to upgrade ezplatform 1.10 -> the latest 2.1

I have hit an issue that I cannot seem to resolve, at this step in the guide:
https://doc.ezplatform.com/en/latest/migrating/migrating_from_ez_publish_platform/#27-re-apply-permissions-and-update-composer

I get an error thrown:

Updating the “app/config/parameters.yml” file

eZ\Bundle\EzPublishCoreBundle\Composer\ScriptHandler::clearCache

In ParameterBag.php line 102:

You have requested a non-existent parameter “ezpublish.http_cache.purge_type”.

Script eZ\Bundle\EzPublishCoreBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception

[RuntimeException]
An error occurred when executing the “‘cache:clear --no-warmup’” command:
In ParameterBag.php line 102:

You have requested a non-existent parameter “ezpublish.http_cache.purge_type”.

The installation is a very simple ez site with only 2 translated site accesses. I cannot find where this ezpublish.http_cache.purge_type is coming from, has anyone else encountered and resolved this?

Cheers
John


#2

ezpublish:
http_cache:
purge_type: 'local

This was the missing ingredient. Note though i could not use the default:

ezpublish:
# HttpCache settings, By default ‘local’ (Symfony HttpCache Proxy), by setting it to ‘http’ you can point it to Varnish
http_cache:
purge_type: ‘%purge_type%’

As this resulted in another error:
"You have requested a non-existent parameter “purge_type”. "