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

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

Open
angelokeirsebilck opened this issue Aug 20, 2024 · 2 comments

Comments

@angelokeirsebilck
Copy link

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.

/**

  • @var string The plugin’s schema version number
    */
    public string $schemaVersion = '2.0.0';
@lindseydiloreto
Copy link
Collaborator

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
Copy link
Author

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.

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

2 participants