Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Fatal error regarding duplicate IDs #2330

Open
FrittenKeeZ opened this issue Jan 14, 2019 · 0 comments
Open

Fatal error regarding duplicate IDs #2330

FrittenKeeZ opened this issue Jan 14, 2019 · 0 comments

Comments

@FrittenKeeZ
Copy link

Describe the bug
Somehow the content of stache::duplicates had one or more entries without :: so the explode() only had one entry and died on trying to get offset 1.
The problem was resolved by clearing cache.

To Reproduce
No idea when or why it happened.

Expected behavior
The code shouldn't rely on certain offsets existing.

Environment details (please complete the following information):

  • Statamic Version: 2.11.3
  • PHP Version: 7.2

Additional context
First part of the stack trace:

[2019-01-14 09:17:12] stage.ERROR: ErrorException: Undefined offset: 1 in /app/statamic/core/Stache/Stache.php:384
Stack trace:
#0 /app/statamic/core/Stache/Stache.php(384): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined offse...', '/app/statamic/c...', 384, Array)
#1 [internal function]: Statamic\Stache\Stache->Statamic\Stache\{closure}(Array, '15d4b7bc-2d2a-4...')
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant