Questions tagged [project.yaml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

Best Approach for Merging Two Craft CMS Sites with Database Changes to Avoid Data Loss?

I'm currently in the process of merging two Craft CMS websites into one. To achieve this, I've made several changes directly to the database locally, rather than managing these changes through Git and ...
Zico123's user avatar
1 vote
1 answer
33 views

Craft sites not stored in project.yaml

Today I installed a Craft project (Craft version 4.5.9) onto a new server (git pull, manualy copy of web/assets, composer install, db dump import, craft up). Everything runs fine except one thing: The ...
Moritz's user avatar
  • 69
1 vote
1 answer
87 views

Internal Server Error YAML Parse Exception

I'm getting a Craft-styled internal server error, and when I inspect the logs, it says [error][Symfony\Component\Yaml\Exception\ParseException] Symfony\Component\Yaml\Exception\ParseException: You ...
Erol's user avatar
  • 65
1 vote
1 answer
74 views

Upgrade from craft 2 fails due to read-only mode

I'm trying to upgrade an old Site from Craft 2.9.x. The goal is to eventually upgrade to Craft 4.x, but I thought it would be easier to first update to Craft 3.x. When trying to Finish up my database, ...
Sandro's user avatar
  • 43
0 votes
1 answer
85 views

Project config in Git, conflicting with changes already applied in admin CP

I recently started a project where I inherited a fully functional website and the owner asked me to perform some tweaks. I started by making a duplicate of both the codebase and the database into a ...
gleerman's user avatar
  • 103
0 votes
1 answer
523 views

What exactly happens when YAML files pending changes are applied?

When I get a fresh copy of whatever lives in a git repository, I may be getting some changes to the project YAML files. So far, so good. When Craft detects that those files contain un-applied changes, ...
Álvaro Franz's user avatar
0 votes
2 answers
1k views

How to fix corrupted Craft project config files

Looking to get some advice on fixing some issues I'm having with my Craft DEV environment. I merged some changes which worked fine locally, but are causing some issues on my deployed version. Problems ...
Kyle Lambert's user avatar
3 votes
1 answer
1k views

Your project config YAML files are expecting different versions to be installed

I'm working on a site on shared hosting and I can't run composer install from CLI to install the vendor folder because I get The Process class relies on proc_open, which is not available on your PHP ...
Tyssen's user avatar
  • 653
2 votes
1 answer
213 views

Where can a module safely store Project Config settings?

I can add a custom setting to the Project Config like so: Craft::$app->getProjectConfig()->set('modules.module-name.settingName', true); In the project.yaml file that would get saved at the top ...
Ben Parizek's user avatar
  • 13.4k
3 votes
1 answer
134 views

How do you download multiple plugins vis Command Line?

Coming from Drupal, we often use drush to download modules (plugins) and install them. For example this is what we might do using drush: drush dl bootstrap mailchimp stripe-php This would download the ...
Adrian's user avatar
  • 437
1 vote
1 answer
87 views

Why can't I log in anymore when I change primary site manually in database?

Because of a bug (https://github.com/craftcms/cms/issues/7657), I got locked out from admin because no site seemed to be marked as primary in the DB, even though one of the site files clearly had a ...
jishi's user avatar
  • 263
1 vote
1 answer
1k views

Applying changes from your project config files ... No site settings exist for section 20

Deploying on production is giving me this error. Applying changes from your project config files ... No site settings exist for section 20 Deploying to stage is working no problem. Production isn't ...
MartinD's user avatar
  • 31
1 vote
1 answer
460 views

How can I configure multi-site base URLs where the subdomains are static but the domain name is dynamic?

For example, let's say I have two sites: abc.example.com and xyz.example.com but I want to also host test versions of those sites at example-test.com. It'd be nice if I could set the baseURLs to http:/...
Josh Coady's user avatar
1 vote
1 answer
427 views

Craft and Plugins are licensed, but I'm still seeing warnings on Production

In my production environment, I have administrative changes disabled, so I see the following messages: * You’re running Craft Pro with a Craft Solo license. Please fix on an environment where ...
Vaughn D. Taylor's user avatar
2 votes
1 answer
709 views

Project Config On or Off for Production Server

Should Project Config ('useProjectConfigFile' => true,) be set to 'true' or 'false' on the Production server? I have been reading Craft CMS documentation, watching some CraftQuest Lessons, searching ...
ChrisE's user avatar
  • 85
2 votes
2 answers
216 views

Applying project config changes with post-receive git hook

I site I'm working on uses a post-receive git hook for deploying changes to the server. At the moment, it looks like this: #!/bin/sh # default cpanel stuff branch=$(/usr/local/cpanel/3rdparty/bin/...
Tyssen's user avatar
  • 653
1 vote
1 answer
883 views

Trouble updating Craft when allowAdminChanges is false

I've just updated a multi-environment site from Craft 3.3.5 to 3.4.5. Here's our config/general.php (irrelevant bits removed): return [ '*' => [ 'allowAdminChanges' => false, ...
plaintxt's user avatar
  • 488
1 vote
2 answers
687 views

Should delta.yaml be committed to git?

Getting started with CraftCMS 3.1's project config files and I can't find any documentation about whether storage/config-deltas/delta.yaml should be committed to git
maxfenton's user avatar
1 vote
1 answer
113 views

project.yaml synchronize error (not usable anymore)

I had a table field and created a new super table field to try something. After that I removed my table field and gave my super table field the same handle like the old table field had. I did it ...
Peter L's user avatar
  • 86
2 votes
0 answers
35 views

How to protect elements that are being edited during project-config/sync?

Some situations: An editor is editing an entry in the CP while an admin runs project-config/sync. A user starts a front end form to create a new entry before project-config/sync is run, but submits ...
Katie Fritz's user avatar
2 votes
0 answers
224 views

Project config only partially syncing

Not sure if this belongs here but decided to post it after all... I've set up a craft site (Version 3.3.x) and since we're about to add more sites to it etc, we decided to start using a project ...
mrsmn's user avatar
  • 731
2 votes
1 answer
315 views

Craft CMS Project Config file override

Hi I am using Craft CMS with the project config file to keep various environments in sync. This generally works fine but I have run into an issue with plugin settings. I am using the Contact Forms ...
Pedro's user avatar
  • 171
2 votes
1 answer
120 views

Sections in local & LIVE out of sync

I created a new section (single) on my local environment. Then I pushed it to LIVE. There it is not showing up in the entries CP. But it is showing up in the settings. So I guess the project.yaml ...
KSPR's user avatar
  • 3,786
1 vote
1 answer
122 views

Database migrations on environments - in which env do I apply updates to Craft and Plugins?

When developing a Craft 3 site on a multi-environment setup, where would I apply the Craft and Plugin updates? Should I apply them locally and then commit and replace the database in the dev env, or ...
nitech's user avatar
  • 679
1 vote
1 answer
432 views

Response: {"error":"Undefined index: fieldGroup"}

I've recently had to handle a massive merge on a Craft project which resulted in many conflicts in the project.yaml file. I tried to clean up the merge conflicts as best as I can. And now I have this ...
Davina Leong's user avatar
3 votes
1 answer
764 views

project.yaml stopped syncing changes in the staging process

I'am a bit helpless at the moment, because my project staging workflow using project.yaml stopped working and a) I don't know why and b) have no clue if I can solve it. Problem: Until some days ago ...
Matthias Redl-Mann's user avatar