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

Error in Seo.php line 165 when site doesn't have a 'payoff' configured in config.yaml #41

Open
LeoEurope opened this issue May 18, 2023 · 0 comments

Comments

@LeoEurope
Copy link

My site doesn't use a 'payoff' so in /config/bolt/config.yaml the whole payoff section is commented out.

The bolt-seo extension doesn't seem to like it as it expects a value there. It fails with :
Argument 1 passed to Appolo\BoltSeo\Seo\Seo::cleanUp() must be of the type string, null given, called in /home/user/www/example.com/vendor/appolodev/bolt-seo/src/Seo/Seo.php on line 165

Line 165 reads:
$description = $this->cleanUp($this->boltConfig->get('general/payoff'));

It makes no difference if I leave the payoff blank or comment it out altogether. The plugin expects a payoff and errors out if there is none.

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