Replies: 1 comment
-
Undefined array key 1 at vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87 1 vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87 2 vendor\z3d0x\filament-fabricator\src\Commands\ClearRoutesCacheCommand.php:47 |
Beta Was this translation helpful? Give feedback.
-
i am getting this error
when performing php artisan config:clear
`Undefined array key 1
at vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87
83▕ public function removeUrlsOf(Page $page): void
84▕ {
85▕ // First remove the entries from the (ID -> URI) mapping
86▕ $idToUrlsMapping = $this->getIdToUrisMapping();
➜ 87▕ $urls = $idToUrlsMapping[$page->id];
88▕ $idToUrlsMapping[$page->id] = null;
89▕ unset($idToUrlsMapping[$page->id]);
90▕ $this->replaceIdToUriMapping($idToUrlsMapping);
91▕
1 vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap{closure}("Undefined array key 1", "C:\xampp\htdocs\nextxlfabricator\vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php")
2 vendor\z3d0x\filament-fabricator\src\Commands\ClearRoutesCacheCommand.php:47
Z3d0X\FilamentFabricator\Services\PageRoutesService::removeUrlsOf(Object(Z3d0X\FilamentFabricator\Models\Page))`
`Undefined array key 6
at vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87
83▕ public function removeUrlsOf(Page $page): void
84▕ {
85▕ // First remove the entries from the (ID -> URI) mapping
86▕ $idToUrlsMapping = $this->getIdToUrisMapping();
➜ 87▕ $urls = $idToUrlsMapping[$page->id];
88▕ $idToUrlsMapping[$page->id] = null;
89▕ unset($idToUrlsMapping[$page->id]);
90▕ $this->replaceIdToUriMapping($idToUrlsMapping);
91▕
1 vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap{closure}("Undefined array key 6", "C:\xampp\htdocs\nextxlfabricator\vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php")
2 vendor\z3d0x\filament-fabricator\src\Commands\ClearRoutesCacheCommand.php:47
Z3d0X\FilamentFabricator\Services\PageRoutesService::removeUrlsOf(Object(Z3d0X\FilamentFabricator\Models\Page))`
Z3d0X\FilamentFabricator\PageBlocks\PageBlock::preloadRelatedData(): Argument #1 ($page) must be of type Z3d0X\FilamentFabricator\Models\Contracts\Page, null given, called in C:\xampp\htdocs\nextxlfabricator\storage\framework\views\7bc23af4b28fbaa47e8a0267dacb0daa.php on line 45
Beta Was this translation helpful? Give feedback.
All reactions