Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than one YAML document exists named 'spamprotection' #15

Open
dirtybirdnj opened this issue Oct 29, 2019 · 0 comments
Open

More than one YAML document exists named 'spamprotection' #15

dirtybirdnj opened this issue Oct 29, 2019 · 0 comments

Comments

@dirtybirdnj
Copy link

I'm using "silverstripe/recipe-cms": "4.4.4",

I am trying to set up this module, and have already installed the required dependency silverstripe/spamprotection

Following the instructions on your main readme, I add the following content to /app/_config/spamprotection.yml

The error I get when I try to dev/build or load any page is:

Fatal error: Uncaught Exception: More than one YAML document exists named 'spamprotection' in '/work/vendor/silverstripe/spamprotection/_config/spamprotection.yml' and '/work/app/_config/spam.yml' in /work/vendor/silverstripe/config/src/Transformer/YamlTransformer.php:216 Stack trace: #0 /work/vendor/silverstripe/config/src/Transformer/YamlTransformer.php(520): SilverStripe\Config\Transformer\YamlTransformer->getNamedYamlDocuments() #1 /work/vendor/silverstripe/config/src/Transformer/YamlTransformer.php(493): SilverStripe\Config\Transformer\YamlTransformer->filterByOnlyAndExcept() #2 /work/vendor/silverstripe/config/src/Transformer/YamlTransformer.php(103): SilverStripe\Config\Transformer\YamlTransformer->getSortedYamlDocuments() #3 /work/vendor/silverstripe/config/src/Collections/MemoryConfigCollection.php(73): SilverStripe\Config\Transformer\YamlTransformer->transform(Object(SilverStripe\Config\Collections\MemoryConfigCollection)) #4 /work/vendor/silverstripe/framework/src/Core/Config/CoreConfigFactory.php(91): SilverSt in /work/vendor/silverstripe/config/src/Transformer/YamlTransformer.php on line 216

I followed the docs to install/config this module... I'm not sure what went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant