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.

2 REPLIES 2

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"

Re: PHP invalid parameter configuration

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