Skip to content
New issue

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

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

Already on GitHub? # to your account

"Cache is corrupted" Twig error in Control Panel #3257

Closed
angrybrad opened this issue Sep 2, 2018 · 0 comments
Closed

"Cache is corrupted" Twig error in Control Panel #3257

angrybrad opened this issue Sep 2, 2018 · 0 comments
Labels
bug severity:normal Bugs that affect typical usage

Comments

@angrybrad
Copy link
Member

angrybrad commented Sep 2, 2018

Description

There are some circumstances where you can get a Twig Runtime Error that states "cache is corrupted" when using an Asset field with the "Restrict uploads to a single folder" setting set and you use a |kebab filter or reference postDate without passing in a format.

Steps to reproduce

  1. Make a fresh install of the latest Craft 3.
  2. Create an Asset Volume.
  3. Create an Asset field that uses the volume.
  4. Check "Restrict uploads to a single folder"
  5. Set the upload location to test/{slug|kebab} or test/{postDate}
  6. Add the Asset field to a section.
  7. Create a new entry in that section.
  8. Get the following error:

annotation

Additional info

  • Craft version: 3.0.22
  • PHP version: 7.1
  • Database driver & version: MySQL 5.7
  • Plugins & versions: n/a
@angrybrad angrybrad added bug severity:normal Bugs that affect typical usage labels Sep 2, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug severity:normal Bugs that affect typical usage
Projects
None yet
Development

No branches or pull requests

1 participant