doublesecretagency / craft-cpcss

Control Panel CSS plugin for Craft CMS
MIT License
117 stars 8 forks source link

Control Panel CSS is installed with schema version 1.0.0, but project.yaml expects 2.0. #24

Open angelokeirsebilck opened 1 month ago

angelokeirsebilck commented 1 month ago

Getting this error when installing craft with php craft setup.

$schemaVersion = $pluginRef->getProperty('schemaVersion')->getDefaultValue(); on line 1206 in craftcms/cms/src/migrations/Install.php always returns 1.0.0 but it expects 2.0.0 set in composer.

The default value of craft is 1.0.0 if there is no schemaVersion property set.

Adding the schemaVersion property in CpCSS.php fixes this.

/**

lindseydiloreto commented 1 month ago

Hi, thanks for reporting. I'm just a hair confused about the circumstances surrounding this error.

If you were installing a fresh copy of Craft, how did you already have CP CSS as part of the equation?

angelokeirsebilck commented 2 weeks ago

I cloned a starter project, where CP CSS was installed. Somehow this bug slipped in when updating Craft CMS on the starter.

Using php craft setup on a newly cloned project this occurs, because there craft is not installed yet.