Syfmony 2.8: You have requested a non-existent parameter "kernel.bundles_metadata"

443 Views Asked by At

I am a newbie to PHP, We are trying to upgrade our old Symfony project from 2.6 to 2.8.

After executing the below two commands, When I tried to run the app, I am getting the below exception.

composer update symfony/symfony 

composer update

Exception:

ParameterNotFoundException in ParameterBag.php line 84: You have requested a non-existent parameter "kernel.bundles_metadata".

Could anyone help me with this? TIA.

1

There are 1 best solutions below

0
Dhandapani Sudhakar On

The below steps solved my problem in Windows 10

Step 1: Remove the vendor folder and run the below commands

composer dump-autoload 

composer install --no-scripts

Step 2: Remove the folders available under the cache folder

Step 3: Remove the "boostrap.php.cache" file and recreate the "boostrap.php.cache" file using the below command

php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php

Step 4: Clear the cache for all the environments and run the app

php app/console cache:clear --env=prod/qa/dev