craftcms / craftcms/cms

Project config sync error: Changes to the project config are not possible while in read-only mode.

Open
#3,957 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

I updated my website in local (which updated my project.yaml) and uploaded it to my staging. On staging, I tried to run the project-config/sync command, but it gave me the error "Changes to the project config are not possible while in read-only mode." And the changes are not applied (new fields and entry types are not there), but the config file is saved in the craft_info table.

When I debug, I can see that the culprit is a matrix field.

I could send you my database (and project.yaml), but it's 200MB.

Additional info
  • Craft version: 3.1.16
  • PHP version: 7.2
  • Database driver & version: MariaDB

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing project-config/sync on Craft 3.1.16 with a project containing a matrix field, then trace where read-only mode blocks the configuration change. Done means the sync completes without the error and the new fields and entry types are applied rather than only saved in the craft_info table.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, php
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.