I am getting the following errors:
Your project.yaml file was created for different versions of Craft and/or plugins than what鈥檚 currently installed.
Craft CMS currently installed has the schema version of 3.3.3 (expected 3.2.16)
Rollbar currently installed has the schema version of 1.0.0 (expected 3.0.4)
Submissions currently installed has the schema version of 1.0.0 (expected 2.1.0)
Try running composer install from your terminal to resolve.
Running composer install has no effect.
Deleting the vendor folder then running composer install has no effect.
When I look at my project.yaml file, for example, Craft CMS is installed with the correct schema version; there is no mention of 3.3.3 in the whole file:
system:
edition: pro
live: true
name: ECL
timeZone: Europe/London
schemaVersion: 3.2.16
Rollbar and Submissions are two of our custom plugins which we install through our VCS, but the schema versions in project.yaml are what the error message says it's expecting:
submissions:
settings: null
licenseKey: null
enabled: '1'
schemaVersion: 2.1.0
rollbar:
settings: null
licenseKey: null
enabled: '1'
schemaVersion: 3.0.4
Could this be an issue with installing plugins from a private instance of GitLab, which is where Submissions and Rollbar are stored?
When I look at my
project.yamlfile, for example, Craft CMS is installed with the correct schema version; there is no mention of3.3.3in the whole file
Right. The error is saying that project.yaml as it stands is expecting Craft to be installed with a schema version set to 3.2.16, based on the fact that system.schemaVersion in project.yaml is set to 3.2.16 as you demonstrated.
The last release where the schemaVersion was set to 3.2.16 was version Craft 3.2.10:
https://github.com/craftcms/cms/blob/620fa9e16ae1d6d205868754959c459f55128da2/src/config/app.php#L6-L7
So you could try rolling back to Craft 3.2.10; and also update your Rollbar and Submissions plugins to whatever versions where the schemaVersion matches what project.yaml is expecting (3.0.4 and 2.1.0, respectively).
As to how you got in this state in the first place, perhaps there was a failed update that wasn鈥檛 dealt with properly or something, not really sure. This error occurs whenever there are pending project.yaml changes but the locally installed versions don鈥檛 match up with the versions recorded in project.yaml. (So Craft isn鈥檛 feeling confident that the installed version of Craft & plugins are going to be able to accurately handle the incoming project.yaml changes.)
Had the same issue. It was because the schemaVersion in the database mismatched with the version specified in config/project.yaml.
Solved it like this:
info table has the same version and schemaVersion as defined in the config/project.yaml$ rm -rf vendor$ composer clearcache$ composer installI keep getting this error every now and then. It often happens if I update to a bigger release (going from 3.4.X to 3.5.X for instance) locally, do a few changes to fields, and then deploy everything to production. Whenever the Your project.yaml file was created for different versions of Craft and/or plugins than what鈥檚 currently installed. occur I do the following.
Most helpful comment
Had the same issue. It was because the
schemaVersionin the database mismatched with the version specified inconfig/project.yaml.Solved it like this:
infotable has the sameversionandschemaVersionas defined in theconfig/project.yaml$ rm -rf vendor$ composer clearcache$ composer install