Cms: Structure URLs not updated when changing section URI

Created on 13 May 2017  Â·  3Comments  Â·  Source: craftcms/cms

Description

Structure URLs not updating until entry is resaved.

Steps to reproduce

  1. Create a new section e.g. Pages, leave "Entry URI Format" as is i.e "pages/{slug}".
  2. Add new entry called "Test" in newly created structure.
  3. Open entry using the "View webpage" link.
  4. URL should be "/pages/test".
  5. Go back to structure settings and change "Entry URI Format" to be "{slug}", save.
  6. Go back to entries and open entry using the "View webpage" link - URL hasn't updated - still "/pages/test".
  7. Open entry and re-save.
  8. Open entry using the "View webpage" link, entry URL has changed to "/test".

Additional info

  • Craft version: 3.0.0-beta.15
  • PHP version: 7.1.4
  • Database driver & version: MySQL 5.7.18
  • Plugins & versions: None
bug

Most helpful comment

Bingo. I had a queue of stuck background jobs. Raising the PHP memory_limit to 1024 solved it for me. Thanks!

On Dec 3, 2018, at 6:19 AM, Brandon Kelly notifications@github.com wrote:

@emersonthis https://github.com/emersonthis It was, but the actual URL updating occurs over a background task that is kicked off after saving the section. Make sure you don’t have any stuck/failed jobs in the queue. Updating to the latest version of Craft 3 probably wouldn’t hurt either.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/craftcms/cms/issues/1705#issuecomment-443725359, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpeixfUDDyLeOcyyLzMdzLz4s-rcx37ks5u1TLXgaJpZM4NaInz.

All 3 comments

Did this ever get fixed? I'm having the same problem now (2018) with v3.0.9

@emersonthis It was, but the actual URL updating occurs over a background task that is kicked off after saving the section. Make sure you don’t have any stuck/failed jobs in the queue. Updating to the latest version of Craft 3 probably wouldn’t hurt either.

Bingo. I had a queue of stuck background jobs. Raising the PHP memory_limit to 1024 solved it for me. Thanks!

On Dec 3, 2018, at 6:19 AM, Brandon Kelly notifications@github.com wrote:

@emersonthis https://github.com/emersonthis It was, but the actual URL updating occurs over a background task that is kicked off after saving the section. Make sure you don’t have any stuck/failed jobs in the queue. Updating to the latest version of Craft 3 probably wouldn’t hurt either.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/craftcms/cms/issues/1705#issuecomment-443725359, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpeixfUDDyLeOcyyLzMdzLz4s-rcx37ks5u1TLXgaJpZM4NaInz.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

angrybrad picture angrybrad  Â·  3Comments

mccombs picture mccombs  Â·  3Comments

michaelhue picture michaelhue  Â·  3Comments

timkelty picture timkelty  Â·  3Comments

richhayler picture richhayler  Â·  3Comments