Skip to content

Purge Varnish from Magento 2.4.6: laminas error

We did setup Varnish correctly and working fine to cache the files.

However, when Magento try to purge cache on product saving or from cache management, we have the following error:

[2024-04-16T02:27:24.463621+00:00] main.CRITICAL: No cache server(s) could be purged Cache host: 10.0.2.112:80resulted in error message: Deprecated Functionality: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /bitnami/magento/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php on line 457 {"method":"POST","url":"https://domain.tld/index.php/admin/admin/cache/massRefresh/","invalidateInfo":{"servers":[{"Laminas\Uri\Uri":"//10.0.2.112:80/"}],"formattedTagsChunk":".*"}} []

curl is working fine to reach Varnish.