Closed krystal25 closed 4 years ago
You must add a parameter to your _sylius.yaml
file in your project
Hello all,
Cannot install mailchimp-plugin, and same error, i ' ve not understood the solution before:
"You must add a parameter to your _sylius.yaml file in your project"
Need help...
@luckylucciano Late, but mb for other people. You must add before installation in _sylius.yaml under parameters:
parameters: sylius_core.public_dir: '%kernel.project_dir%/public' mailchimp.api_key: '%env(resolve:MAIL_CHIMP_API_KEY)%' mailchimp.list_id: '%env(resolve:MAIL_CHIMP_LIST_ID)%'
After installing the plugin, and setting the API keys in .env, I get the following error:
I can see the parameters declared in vendor\bitbag\mailchimp-plugin\tests\Application\config\packages_sylius.yaml_sylius.yaml
and they are called in services.yml and contexts.yml
So why does it say it does not exist? If I replace
%mailchimp.api_key%
with the actual key, it works, but I do not want that as I need the key to be taken from .env