Undefined array key 1
i am getting this error when trying to clear config, route etc. i don't know how to solve it. Anyone got any ideas?
11 Replies
anyone?
Since this has to do with #z3d0x-fabricator, its best to ask that question there
Noone answers there
I have asked the question there
ah I see...
Im not sure to be honest. Maybe remove the package, clear and download again?
Be careful with that though
Im not sure what the package does
Also, its been less than 2 hours since you asked. Have some patience and someone will respond. I saw that the github repo is still actively maintained, so its very likely that the package creator or someone else will respond
yes thanks.
i am also getting this error
anyone knows what is going on?
Good Morning @raheel3031 - I am gonna throw my two cents in and you can take it for what you think its worth.
It seems to me when reading the code you posted that the error is with
$urls = $idToUrlsMapping[$page->id];
Maybe update your code to have a fallback if $page->id
is missing.
Again this was just my two cent when looking at what you provided.
Edit: If you wrong your code with 3x ` then its easier to read.
The error might be triggered turing Config/Route clearing because the removeUrlsOf() method is invoked during route clearing, likely via:
Make sure the Page models that are being passed exist and are valid.again this error
am i having only this problem? no one else that is having this problem all of a sudden?
GitHub
Update PageRoutesService.php by rezadindar · Pull Request #196 · Z3...
For Fix This Error On Run "php artisan optimize:clear" And Run "php artisan optimize" Again
`ErrorException
Undefined array key 1
at vendor\z3d0x\filament-fabric...
Running optimize clear and optimize? This would fix it temporarily. There is a problem in the package.
try to open an issue here
GitHub
Issues · Z3d0X/filament-fabricator
Block-Based Page Builder Skeleton for your Filament Apps - Issues · Z3d0X/filament-fabricator
Thanks for your help. I placed the issue two days ago on the forum as well.