craftcms / craftcms/cms

Couldn’t save single entry due to validation errors on the slug and/or URI

Open
#4,151 6 comments 0 reactions 1 assignee View on GitHub

@andris-sevcenko is already working on this.

Since Apr 17, 2019.

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

Description

Description

Error while project sync
Exception: Couldn’t save single entry due to validation errors on the slug and/or URI (/usr/share/nginx/vendor/craftcms/cms/src/services/Sections.php:1590)
uriFormat: __home__ is failing for single entry while project sync

Steps to reproduce
  1. Create a single section in craft cms 3 and leave the URI blank which creates a single entry in project.yaml with uriFormat: __home__
  2. Now apply the above changes on your another craft cms instance(staging, dev etc..) via craft project-config/sync
Additional info
  • Craft version: 3.1.22
  • PHP version: 7.3.3
  • Database driver & version: MySQL 5.6.0
  • Plugins & versions:
    "vlucas/phpdotenv": "^2.4.0"

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.