nystudio107 / craft-seomatic

SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
https://nystudio107.com/plugins/seomatic
Other
162 stars 68 forks source link

Type of nystudio107\seomatic\Seomatic::$schemaVersion must be string #1438

Closed cbovers closed 3 months ago

cbovers commented 3 months ago

Describe the bug

When trying to install Seomatic on a fresh Craft CMS 5 installation. We get the error:

*** installing seomatic PHP Compile Error 'yii\base\ErrorException' with message 'Type of nystudio107\seomatic\Seomatic::$schemaVersion must be string (as in class craft\base\Plugin)'

in /var/www/html/vendor/nystudio107/craft-seomatic/src/Seomatic.php:0

Stack trace:

0 [internal function]: yii\base\ErrorHandler->handleFatalError()

1 {main}

Failed to run craft plugin/install seomatic: exit status 1

To reproduce

Steps to reproduce the behaviour:

  1. ddev composer require nystudio107/craft-seomatic
  2. ddev craft plugin/install seomatic
  3. See error message "PHP Compile Error 'yii\base\ErrorException' with message 'Type of nystudio107\seomatic\Seomatic::$schemaVersion must be string (as in class craft\base\Plugin)'"

Versions

khalwat commented 3 months ago

Yeah you need to set the semver to:

"nystudio107/craft-seomatic": "^5.0.0-beta.1",

...in your composer.json and then do a:

composer update nystudio107/craft-seomatic