- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2021
06:31 AM
07-22-2021
06:31 AM
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.
Labels:
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2021
10:11 PM
07-22-2021
10:11 PM
Re: PHP invalid parameter configuration
Run below command:
php -dmemory_limit=-1 bin/magento setup:static-content:deploy -f
chmod -Rf 777 pub/ var/ generated/
chmod -Rf 777 pub/ var/ generated/
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2021
01:31 AM
07-23-2021
01:31 AM
Re: PHP invalid parameter configuration
Thanks for the reply! I tried this, but unfortunately it did not help, the error still persists!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023
08:15 PM
10-24-2023
08:15 PM
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_