Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not generate a unique URI based on the URI format. #4791

Closed
nmann4789 opened this issue Aug 21, 2019 · 9 comments
Closed

Could not generate a unique URI based on the URI format. #4791

nmann4789 opened this issue Aug 21, 2019 · 9 comments

Comments

@nmann4789
Copy link

Description

Unable to save as new entry after updating slug

Steps to reproduce

  1. Change Title
  2. Change Slug
  3. Save as New Entry

Additional info

  • Craft version:Craft Pro 3.2.8
  • PHP version:7.2.14
  • Database driver & version: MySQL 5.7.25
  • Plugins & versions:

Can provide DB upon request.

@brandonkelly
Copy link
Member

Sounds like a duplicate of #4759, which has been fixed for the next release.

@ljfreelancer88
Copy link

ljfreelancer88 commented Mar 13, 2020

I'm seeing this kind of error on my new installed Craft version. I don't even see the Title input field on creating on Entry.

@brandonkelly
Copy link
Member

@ljfreelancer88 check your section’s settings – what is your Entry URI Format?

The Title field can be hidden if you had disabled it from your section’s entry type settings.

@rayhvh
Copy link

rayhvh commented Apr 6, 2020

I've got this issue when making an searchPage entry / section.
then trying to create an entry for this.

This is on loading the new entry page.

@Moucky
Copy link

Moucky commented Apr 17, 2020

I seem to be experiencing a similar problem, my URI format is "section/{slug}". It used to be that if an entry had the same title(there are a lot of Untitled titles) it would have a slug like "untitled-2". Some even seem to have "untitled-1-34" and so forth. It seems I've reached some sort of limit or perhaps something changed in an update?

@brandonkelly
Copy link
Member

@Moucky Have you set a custom maxSlugIncrement config setting value?

@Moucky
Copy link

Moucky commented Apr 17, 2020

I haven't @brandonkelly, thanks for the suggestion. I'd say that's the problem. Is it possible to have no limit or should I just set it to a very high number?

@brandonkelly
Copy link
Member

It’s 100 by default. You can set it as high as you want. It just takes a little time to keep checking for a unique slug.

@Moucky
Copy link

Moucky commented Apr 20, 2020

Thanks so much, that's solved the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants