Error applying Project Config when it contains a new Single Section and SEOmatic is installed
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
Describe the bug
Applying project-config changes that contain a new Single section will error saying the section (that you are creating) has no entry type when SEOmatic plugin is installed.
SEOmatic does not appear in the stack trace of the error. SEOmatic does appear in the web.log and console.log but it looks like only for it’s Loaded Event. However whilst trying to debug this issue our team disabled each of the 10+ plugins on the site we are building and only disabling SEOmatic allowed us to apply the project config containing a new Single successfully, and it is reproducible on a fresh craft install with only SEOmatic added.
To reproduce
Steps to reproduce the behaviour:
- Install Craft Pro Trial
- Install SEOmatic Trial
- Export the DB
- Create a new Single section.
- Import the exported DB
- Touch project config
- Apply project config
Expected behaviour
Project config should apply without error and add your new Single section.
Screenshots
Versions
- SEOmatic Plugin version: 3.4.23
- Craft version: 3.7.30.1
- PHP version: 7.4.25
- MySQL version: 5.7.23
- Laravel Valet 2.16.1
project-config-console.log
project-config-web.log
project-config-error.txt
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the project-config apply failure with Craft Pro Trial and SEOmatic Trial, then compare the attached project-config-console.log, project-config-web.log, and project-config-error.txt. Trace the project-config import path involved in creating a new Single section and identify why SEOmatic causes the missing-entry-type error. Done means the project config applies successfully with SEOmatic installed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100