cancel
Showing results for 
Search instead for 
Did you mean: 

PHP invalid parameter configuration

PHP invalid parameter configuration

Hello,

I am getting the following error after installing Magento 2 on my webserver.

 

Uncaught UnexpectedValueException: Invalid parameter configuration provided for $enforcedOptions argument of Magento\Framework\App\Cache\Frontend\Factory.

 

Any clues as to what this may refer to? Thanks!

The PHP code in question is this:

 

public function __construct(
        \Magento\Framework\ObjectManagerInterface $objectManager,
        Filesystem $filesystem,
        \Magento\Framework\App\ResourceConnection $resource,
        array $enforcedOptions = [],
        array $decorators = []
    ) {
        $this->_objectManager = $objectManager;
        $this->_filesystem = $filesystem;
        $this->_resource = $resource;
        $this->_enforcedOptions = $enforcedOptions;
        $this->_decorators = $decorators;
    }

 

Install specs:

Composer version: 2.0.14

PHP version: 7.4.20

Magento version: 2.4

All Document required PHP packages were installed.

3 REPLIES 3

Re: PHP invalid parameter configuration

@nathan_metsala 

Run below command:
php -dmemory_limit=-1 bin/magento setup:static-content:deploy -f
chmod -Rf 777 pub/ var/ generated/
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: PHP invalid parameter configuration

Thanks for the reply! I tried this, but unfortunately it did not help, the error still persists!

Re: PHP invalid parameter configuration

Hi,

 

After Magento 2.3 into 2.4.2 upgrade successfully i got below error, i removed existing cache configuration but its not working, please suggest answer.

https://prnt.sc/EVKyafIs6V2_