Undefined array key 1 related to PageRoutesService #222
Unanswered
moolchanddigidoers
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @Z3d0X,
This error seems to be related to the route parsing logic within PageRoutesService. The issue is triggered when accessing or generating certain dynamic pages. I have reviewed Issue #198, which appears to describe a similar situation, but the problem still persists in the current release.
Expected behavior
Routes should be parsed correctly without throwing an Undefined array key 1 error. The Fabricator should handle all configured pages gracefully, including those with custom slugs or nested paths. i think you just need to check the key if it's not exist in the $idToUrlsMapping then Fabricator should handle that thing without throwing the exception.
Environment:
PHP version: 8.2
Laravel version: 11
Filament version: 3.3
Fabricator version: 2.5
Server: Laravel Vapor
Beta Was this translation helpful? Give feedback.
All reactions