statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
4.12k stars 540 forks source link

Call to a member function routeData() on null #10025

Open eminos opened 6 months ago

eminos commented 6 months ago

Bug description

New v5 installation with statamic/cli. Going to Collection Pages in the CP works fine the first time after a php artisan cache:clear, but on subsequent loads I get this error message.

How to reproduce

Install Statamic 5.0.0. Go to CP -> Collections -> Pages. Reload the page. Check the browser Dev Tools Network tab.

Logs

[2024-05-09 15:27:55] local.ERROR: Call to a member function routeData() on null {"userId":"c4eee08d-8992-4cdc-a347-98381e01f6ce","exception":"[object] (Error(code: 0): Call to a member function routeData() on null at /app/vendor/statamic/cms/src/Structures/Page.php:441)
[stacktrace]
#0 /app/vendor/statamic/cms/src/Routing/UrlBuilder.php(80): Statamic\\Structures\\Page->routeData()
#1 /app/vendor/statamic/cms/src/Routing/UrlBuilder.php(52): Statamic\\Routing\\UrlBuilder->routeData()
#2 /app/vendor/statamic/cms/src/Structures/Page.php(232): Statamic\\Routing\\UrlBuilder->build('{{ parent_uri }...')
#3 /app/vendor/laravel/framework/src/Illuminate/Support/Optional.php(128): Statamic\\Structures\\Page->uri()
#4 /app/vendor/statamic/cms/src/Structures/CollectionStructure.php(47): Illuminate\\Support\\Optional->__call('uri', Array)
#5 /app/vendor/statamic/cms/src/Entries/Entry.php(924): Statamic\\Structures\\CollectionStructure->entryUri(Object(Statamic\\Entries\\Entry))
#6 /app/vendor/statamic/cms/src/Entries/Entry.php(1064): Statamic\\Entries\\Entry->uri()
#7 /app/vendor/statamic/cms/src/Query/ResolveValue.php(52): Statamic\\Entries\\Entry->getQueryableValue('uri')
#8 /app/vendor/statamic/cms/src/Query/ResolveValue.php(34): Statamic\\Query\\ResolveValue->getItemPartValue(Object(Statamic\\Entries\\Entry), 'uri')
#9 /app/vendor/statamic/cms/src/Query/ResolveValue.php(22): Statamic\\Query\\ResolveValue->resolveItemPartValue(Object(Statamic\\Entries\\Entry), 'uri')
#10 /app/vendor/statamic/cms/src/Stache/Indexes/Value.php(18): Statamic\\Query\\ResolveValue->__invoke(Object(Statamic\\Entries\\Entry), 'uri')
#11 /app/vendor/statamic/cms/src/Stache/Indexes/Value.php(12): Statamic\\Stache\\Indexes\\Value->getItemValue(Object(Statamic\\Entries\\Entry))
#12 [internal function]: Statamic\\Stache\\Indexes\\Value->Statamic\\Stache\\Indexes\\{closure}(Object(Statamic\\Entries\\Entry), 'home')
#13 /app/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(605): array_map(Object(Closure), Array, Array)
#14 /app/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(777): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#15 /app/vendor/statamic/cms/src/Stache/Indexes/Value.php(11): Illuminate\\Support\\Collection->map(Object(Closure))
#16 /app/vendor/statamic/cms/src/Stache/Indexes/Index.php(95): Statamic\\Stache\\Indexes\\Value->getItems()
#17 /app/vendor/statamic/cms/src/Stache/Indexes/Index.php(79): Statamic\\Stache\\Indexes\\Index->update()
#18 /app/vendor/statamic/cms/src/Stache/Stores/CollectionEntriesStore.php(236): Statamic\\Stache\\Indexes\\Index->load()
#19 /app/vendor/statamic/cms/src/Stache/Stores/BasicStore.php(26): Statamic\\Stache\\Stores\\CollectionEntriesStore->getCachedItem('home')
#20 /app/vendor/statamic/cms/src/Stache/Stores/Store.php(74): Statamic\\Stache\\Stores\\BasicStore->getItem('home')
#21 [internal function]: Statamic\\Stache\\Stores\\Store->Statamic\\Stache\\Stores\\{closure}('/app/content/co...', 'home')
#22 /app/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(605): array_map(Object(Closure), Array, Array)
#23 /app/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(777): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#24 /app/vendor/statamic/cms/src/Stache/Stores/Store.php(73): Illuminate\\Support\\Collection->map(Object(Closure))
#25 /app/vendor/statamic/cms/src/Stache/Indexes/Value.php(11): Statamic\\Stache\\Stores\\Store->getItemsFromFiles()
#26 /app/vendor/statamic/cms/src/Stache/Indexes/Index.php(95): Statamic\\Stache\\Indexes\\Value->getItems()
#27 /app/vendor/statamic/cms/src/Stache/Indexes/Index.php(79): Statamic\\Stache\\Indexes\\Index->update()
#28 /app/vendor/statamic/cms/src/Stache/Stores/Store.php(47): Statamic\\Stache\\Indexes\\Index->load()
#29 /app/vendor/statamic/cms/src/Stache/Query/Builder.php(114): Statamic\\Stache\\Stores\\Store->index('id')
#30 /app/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(96): Statamic\\Stache\\Query\\Builder->getWhereColumnKeysFromStore('pages', Array)
#31 [internal function]: Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}('pages', 0)
#32 /app/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(605): array_map(Object(Closure), Array, Array)
#33 /app/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(777): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#34 /app/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(401): Illuminate\\Support\\Collection->map(Object(Closure))
#35 /app/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(95): Illuminate\\Support\\Collection->flatMap(Object(Closure))
#36 /app/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(87): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWhere(Object(Illuminate\\Support\\Collection), Array)
#37 /app/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(792): Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}(NULL, Array, 0)
#38 /app/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(84): Illuminate\\Support\\Collection->reduce(Object(Closure))
#39 /app/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(68): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWheres(Object(Illuminate\\Support\\Collection), Array)
#40 /app/vendor/statamic/cms/src/Stache/Query/Builder.php(26): Statamic\\Stache\\Query\\EntryQueryBuilder->getFilteredKeys()
#41 /app/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Stache\\Query\\Builder->resolveKeys()
#42 /app/vendor/statamic/cms/src/Query/Concerns/FakesQueries.php(18): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#43 /app/vendor/statamic/cms/src/Stache/Query/Builder.php(44): Statamic\\Query\\Builder->withFakeQueryLogging(Object(Closure))
#44 /app/vendor/statamic/cms/src/Query/Builder.php(584): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#45 /app/vendor/statamic/cms/src/Stache/Query/Builder.php(44): Statamic\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#46 /app/vendor/statamic/cms/src/Structures/Tree.php(365): Statamic\\Stache\\Query\\Builder->get()
#47 /app/vendor/spatie/blink/src/Blink.php(306): Statamic\\Structures\\Tree->Statamic\\Structures\\{closure}()
#48 /app/vendor/statamic/cms/src/Structures/Tree.php(359): Spatie\\Blink\\Blink->once('home', Object(Closure))
#49 /app/vendor/statamic/cms/src/Structures/Page.php(159): Statamic\\Structures\\Tree->entry('home')
#50 /app/vendor/statamic/cms/src/Structures/Page.php(169): Statamic\\Structures\\Page->entry()
#51 /app/vendor/statamic/cms/src/Structures/TreeBuilder.php(63): Statamic\\Structures\\Page->referenceExists()
#52 [internal function]: Statamic\\Structures\\TreeBuilder->Statamic\\Structures\\{closure}(Object(Statamic\\Structures\\Page), 0)
#53 /app/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(605): array_map(Object(Closure), Array, Array)
#54 /app/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(777): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#55 /app/vendor/statamic/cms/src/Structures/TreeBuilder.php(62): Illuminate\\Support\\Collection->map(Object(Closure))
#56 /app/vendor/statamic/cms/src/Structures/TreeBuilder.php(45): Statamic\\Structures\\TreeBuilder->toTree(Object(Illuminate\\Support\\Collection), Array)
#57 /app/vendor/statamic/cms/src/Structures/TreeBuilder.php(77): Statamic\\Structures\\TreeBuilder->build(Array)
#58 /app/vendor/statamic/cms/src/Http/Controllers/CP/Collections/CollectionTreeController.php(21): Statamic\\Structures\\TreeBuilder->buildForController(Array)
#59 /app/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Statamic\\Http\\Controllers\\CP\\Collections\\CollectionTreeController->index(Object(Illuminate\\Http\\Request), Object(Statamic\\Entries\\Collection))
#60 /app/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#61 /app/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Statamic\\Http\\Controllers\\CP\\Collections\\CollectionTreeController), 'index')
#62 /app/vendor/laravel/framework/src/Illuminate/Routing/Route.php(206): Illuminate\\Routing\\Route->runController()
#63 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#64 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#65 /app/vendor/statamic/cms/src/Http/Middleware/DeleteTemporaryFileUploads.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\DeleteTemporaryFileUploads->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /app/vendor/statamic/cms/src/Http/Middleware/CP/AddVaryHeaderToResponse.php(11): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\AddVaryHeaderToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /app/vendor/statamic/cms/src/Http/Middleware/CP/CountUsers.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\CountUsers->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /app/vendor/statamic/cms/src/Http/Middleware/CP/BootUtilities.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\BootUtilities->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /app/vendor/statamic/cms/src/Http/Middleware/CP/BootPreferences.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\BootPreferences->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /app/vendor/statamic/cms/src/Http/Middleware/CP/BootPermissions.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\BootPermissions->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /app/vendor/statamic/cms/src/Http/Middleware/CP/SelectedSite.php(15): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\SelectedSite->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /app/vendor/statamic/cms/src/Http/Middleware/CP/Localize.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\Localize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 /app/vendor/statamic/cms/src/Http/Middleware/CP/Authorize.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#82 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\Authorize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#83 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#84 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#85 /app/vendor/statamic/cms/src/Http/Middleware/CP/AddToasts.php(22): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#86 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\AddToasts->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#87 /app/vendor/statamic/cms/src/Http/Middleware/CP/AuthGuard.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#88 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\AuthGuard->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /app/vendor/statamic/cms/src/Http/Middleware/CP/ContactOutpost.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\ContactOutpost->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 /app/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(88): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#95 /app/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#96 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#97 /app/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#98 /app/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#99 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#100 /app/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#101 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#102 /app/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#103 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#104 /app/vendor/statamic/cms/src/Http/Middleware/SwapExceptionHandler.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#105 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\SwapExceptionHandler->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#106 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#107 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#108 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#109 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#110 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#111 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#112 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#113 /app/vendor/statamic/cms/src/Http/Middleware/StopImpersonating.php(12): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#114 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\StopImpersonating->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#115 /app/vendor/statamic/cms/src/Http/Middleware/DisableFloc.php(17): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#116 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\DisableFloc->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#117 /app/vendor/statamic/cms/src/Http/Middleware/CheckMultisite.php(15): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#118 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckMultisite->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#119 /app/vendor/statamic/cms/src/Http/Middleware/CheckComposerJsonScripts.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#120 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckComposerJsonScripts->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#121 /app/vendor/statamic/cms/src/Http/Middleware/PoweredByHeader.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#122 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\PoweredByHeader->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#123 /app/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(66): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#124 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#125 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#126 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#127 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#128 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(47): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#129 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#130 /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#131 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#132 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#133 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#134 /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#135 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#136 /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#137 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#138 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#139 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#140 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#141 /app/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1172): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#142 /app/public/index.php(17): Illuminate\\Foundation\\Application->handleRequest(Object(Illuminate\\Http\\Request))
#143 {main}
"}

Environment

Environment
Application Name: Statamic
Laravel Version: 11.7.0
PHP Version: 8.3.6
Composer Version: 2.2.22
Environment: local
Debug Mode: ENABLED
URL: statamic5.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.0.0 Solo

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

eminos commented 6 months ago

More insights:

Same on PHP 8.3 and 8.2. I'm using Lando for my dev setup. (But Statamic 4 works perfectly fine, so I don't think it's Lando related in this case)

jolora commented 6 months ago

I've just upgraded from beta4 to 5.0.2 and now I'm seeing this same error in the CP where there was no error before. No error occured on a couple of empty collecitons.

Clearing the stache fixed the issue and it's not reappeared... yet.

eminos commented 6 months ago

@jasonvarga is there a known workaround for this? I'd like to start creating websites on v5 🙂❤️

ewhicher commented 6 months ago

I'm on 5.1.0 and had the same issue. Clearing the stache fixed the issue for me too.

eminos commented 6 months ago

Clearing the stache (php please stache:clear) doesn't solve the problem for me. Same as clearing the full application cache (php artisan cache:clear). It works on the very next CP request/reload, but then the error comes back after that. I tried 5.1.0 as well.

jbreuer95 commented 6 months ago

We are having the same problem, our deploy script is very broken now. somehow it only happens on our production server (that should be identical to our staging server). not sure what is causing the difference yet

jbreuer95 commented 6 months ago

I figured out that it happens when people try to access a statamic page in the time between php artisan cache:clear and php please stache:warm. if i wait for stache warm to finish before accessing a page nothing bad happens

pixelastronauts commented 6 months ago

I figured out that it happens when people try to access a statamic page in the time between php artisan cache:clear and php please stache:warm. if i wait for stache warm to finish before accessing a page nothing bad happens

I can confirm this. Had the same problem. After clearing the caching, you first need to wait for the Stache to warm. After that everything is working fine.

davidatkinswwt commented 6 months ago

Also having the same issues on 5.2.0

I upgraded from 4.51.0...everything >4.51.0 was causing this issue for me as well.

I did however get it to load up once on 5.2.0 using php please stache:clear, php please cache:clear, and then finally php please stache:warm.

The tree view times out loading but list view seems to be fine for me.

DanielDarrenJones commented 6 months ago

Also hitting this same issue on v4.57.2.

jasonvarga commented 6 months ago

Also hitting this same issue on v4.57.2.

Really? That might help narrow things down. Can you post the stack trace?

DanielDarrenJones commented 6 months ago

@jasonvarga Added below for you, as others have said it looks like a cache clear and stache warm fixed for me (at least i'm assuming it was that part of our deploy script).

[2024-05-21 11:31:46] production.ERROR: Call to a member function routeData() on null {"userId":"34699d3b-64fe-45b7-8550-1c78fcedf580","exception":"[object] (Error(code: 0): Call to a member function routeData() on null at /home/forge/pelorustravel.com/vendor/statamic/cms/src/Structures/Page.php:401)
[stacktrace]
#0 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Routing/UrlBuilder.php(80): Statamic\\Structures\\Page->routeData()
#1 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Routing/UrlBuilder.php(52): Statamic\\Routing\\UrlBuilder->routeData()
#2 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Structures/Page.php(208): Statamic\\Routing\\UrlBuilder->build()
#3 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Support/Optional.php(128): Statamic\\Structures\\Page->uri()
#4 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Structures/CollectionStructure.php(47): Illuminate\\Support\\Optional->__call()
#5 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Entries/Entry.php(877): Statamic\\Structures\\CollectionStructure->entryUri()
#6 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Routing/Routable.php(75): Statamic\\Entries\\Entry->uri()
#7 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Routing/Routable.php(70): Statamic\\Entries\\Entry->absoluteUrlWithoutRedirect()
#8 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Resources/CP/Entries/ListedEntry.php(44): Statamic\\Entries\\Entry->absoluteUrl()
#9 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(107): Statamic\\Http\\Resources\\CP\\Entries\\ListedEntry->toArray()
#10 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(254): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve()
#11 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#12 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(84): json_encode()
#13 /home/forge/pelorustravel.com/vendor/symfony/http-foundation/JsonResponse.php(49): Illuminate\\Http\\JsonResponse->setData()
#14 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(32): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct()
#15 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(102): Illuminate\\Http\\JsonResponse->__construct()
#16 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/PaginatedResourceResponse.php(17): Illuminate\\Routing\\ResponseFactory->json()
#17 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(134): Illuminate\\Http\\Resources\\Json\\PaginatedResourceResponse->toResponse()
#18 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(114): Illuminate\\Http\\Resources\\Json\\ResourceCollection->preparePaginatedResponse()
#19 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toResponse()
#20 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse()
#21 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse()
#22 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#23 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/DeleteTemporaryFileUploads.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#24 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\DeleteTemporaryFileUploads->handle()
#25 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/CountUsers.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#26 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\CountUsers->handle()
#27 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/BootUtilities.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#28 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\BootUtilities->handle()
#29 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/BootPreferences.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#30 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\BootPreferences->handle()
#31 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/BootPermissions.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#32 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\BootPermissions->handle()
#33 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/SelectedSite.php(15): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#34 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\SelectedSite->handle()
#35 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/Localize.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#36 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\Localize->handle()
#37 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/Authorize.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#38 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\Authorize->handle()
#39 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/AddToasts.php(22): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#40 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\AddToasts->handle()
#41 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/AuthGuard.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#42 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\AuthGuard->handle()
#43 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CP/ContactOutpost.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#44 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CP\\ContactOutpost->handle()
#45 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#46 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#47 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#48 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#49 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#50 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#51 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#52 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#53 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle()
#54 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#55 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#56 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#57 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#58 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/SwapExceptionHandler.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#59 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\SwapExceptionHandler->handle()
#60 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#61 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then()
#62 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack()
#63 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute()
#64 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute()
#65 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch()
#66 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#67 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/StopImpersonating.php(12): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#68 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\StopImpersonating->handle()
#69 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/DisableFloc.php(17): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#70 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\DisableFloc->handle()
#71 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CheckMultisite.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#72 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckMultisite->handle()
#73 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/CheckComposerJsonScripts.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#74 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckComposerJsonScripts->handle()
#75 /home/forge/pelorustravel.com/vendor/statamic/cms/src/Http/Middleware/PoweredByHeader.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#76 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\PoweredByHeader->handle()
#77 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#78 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#79 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#80 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#81 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#82 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#83 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#84 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#85 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#86 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#87 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#88 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle()
#89 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#90 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#91 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#92 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#93 /home/forge/pelorustravel.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#94 /home/forge/pelorustravel.com/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle()
#95 {main}
"} 
jasonvarga commented 6 months ago

What URL are you on when you get that error?

DanielDarrenJones commented 6 months ago

@jasonvarga We were hitting this when viewing the "Experiences" collection on the "Yachting US" site, the collection wouldn't load at all and just fired the error. URL would have been something like this: https://pelorustravel.com/cp/collections/experiences?sort=order&order=desc&page=1&perPage=50&filters=eyJzaXRlIjp7InNpdGUiOiJ5YWNodGluZ191cyJ9fQ%3D%3D&columns=title%2Csite%2Cslug%2Cdate%2Cstatus

DanielDarrenJones commented 4 months ago

@jasonvarga I'm seeing this re-occuring today running 5.14.0, has there been a regression here?

jbreuer95 commented 4 months ago

@DanielDarrenJones I still get this error every day, even since the fix. It still happens between php artisan cache:clear and php please stache:warm only now stache:warm doesnt crash anymore

jasonvarga commented 4 months ago

@jbreuer95

It still happens between php artisan cache:clear and php please stache:warm

How can you tell it happens between those two?

jbreuer95 commented 4 months ago

@jbreuer95

It still happens between php artisan cache:clear and php please stache:warm

How can you tell it happens between those two?

Those 2 steps are in our deploy script. Based on the timestamps in sentry it happens between those 2

jbreuer95 commented 4 months ago

@jasonvarga

image

when using this code (between the cache clear and stache warm):

        $this->template = EntryFacade::query()
            ->where('collection', 'communications')
            ->where('slug', $id)
            ->where('locale', $this->locale)
            ->first();
schwemmer commented 3 months ago

I also still see this error happen whenever I run php artisan optimize:clear and php please stache:clear

OleksiiBrylin commented 2 months ago

I have the same issue for Statamic 5.20.0 version

OleksiiBrylin commented 2 months ago

To reproduce the issue on Statamic v5.20.0

  1. Change order of page collection with nested pages 3+ levels
  2. Page collection has 'route: '{{ parent_uri }}/{{ slug }}' settings
  3. remove one page with nested pages
  4. run full cache clear via CP
  5. get 500 error with "all to a member function routeData()"
  6. try to run \Statamic\Facades\Entry::find('0eb8e7fd-6ced-4c2f-af97-80889c8290d8'). Will be empty result (BUT the page exists as .md file)
beliven-fabrizio-gortani commented 2 months ago

Same issue on Statamic 5.12.0.

when our customer clear all site cache, a lot of errors appear inside our log collector and all the frontend routes fails throwing a 500 error (homepage included)

The error message is:

Call to a member function routeData() on null

the error location is:

/home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Structures/Page.php:441

When we run the command:

php please stache:refresh

the errors gone and all is fine.

Here the a stacktrace:

[2024-09-17 08:53:41] production.ERROR: Call to a member function routeData() on null {"exception":"[object] (Error(code: 0): Call to a member function routeData() on null at /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Structures/Page.php:441)
[stacktrace]
#0 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Routing/UrlBuilder.php(80): Statamic\\Structures\\Page->routeData()
#1 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Routing/UrlBuilder.php(52): Statamic\\Routing\\UrlBuilder->routeData()
#2 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Structures/Page.php(232): Statamic\\Routing\\UrlBuilder->build()
#3 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Support/Optional.php(128): Statamic\\Structures\\Page->uri()
#4 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Structures/CollectionStructure.php(47): Illuminate\\Support\\Optional->__call()
#5 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(920): Statamic\\Structures\\CollectionStructure->entryUri()
#6 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(1060): Statamic\\Entries\\Entry->uri()
#7 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/ResolveValue.php(52): Statamic\\Entries\\Entry->getQueryableValue()
#8 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/ResolveValue.php(34): Statamic\\Query\\ResolveValue->getItemPartValue()
#9 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/ResolveValue.php(22): Statamic\\Query\\ResolveValue->resolveItemPartValue()
#10 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Value.php(18): Statamic\\Query\\ResolveValue->__invoke()
#11 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Value.php(12): Statamic\\Stache\\Indexes\\Value->getItemValue()
#12 [internal function]: Statamic\\Stache\\Indexes\\Value->Statamic\\Stache\\Indexes\\{closure}()
#13 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#14 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#15 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Value.php(11): Illuminate\\Support\\Collection->map()
#16 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(99): Statamic\\Stache\\Indexes\\Value->getItems()
#17 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(81): Statamic\\Stache\\Indexes\\Index->update()
#18 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/CollectionEntriesStore.php(239): Statamic\\Stache\\Indexes\\Index->load()
#19 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/BasicStore.php(26): Statamic\\Stache\\Stores\\CollectionEntriesStore->getCachedItem()
#20 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(74): Statamic\\Stache\\Stores\\BasicStore->getItem()
#21 [internal function]: Statamic\\Stache\\Stores\\Store->Statamic\\Stache\\Stores\\{closure}()
#22 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#23 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#24 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(73): Illuminate\\Support\\Collection->map()
#25 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Value.php(11): Statamic\\Stache\\Stores\\Store->getItemsFromFiles()
#26 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(99): Statamic\\Stache\\Indexes\\Value->getItems()
#27 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(81): Statamic\\Stache\\Indexes\\Index->update()
#28 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(47): Statamic\\Stache\\Indexes\\Index->load()
#29 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(115): Statamic\\Stache\\Stores\\Store->index()
#30 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(96): Statamic\\Stache\\Query\\Builder->getWhereColumnKeysFromStore()
#31 [internal function]: Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#32 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#33 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#34 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(404): Illuminate\\Support\\Collection->map()
#35 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(95): Illuminate\\Support\\Collection->flatMap()
#36 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(87): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWhere()
#37 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(791): Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#38 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(84): Illuminate\\Support\\Collection->reduce()
#39 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(68): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWheres()
#40 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(27): Statamic\\Stache\\Query\\EntryQueryBuilder->getFilteredKeys()
#41 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(46): Statamic\\Stache\\Query\\Builder->resolveKeys()
#42 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Concerns/FakesQueries.php(13): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#43 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->withFakeQueryLogging()
#44 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(584): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#45 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->onceWithColumns()
#46 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(539): Statamic\\Stache\\Query\\Builder->get()
#47 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Repositories/EntryRepository.php(56): Statamic\\Query\\Builder->first()
#48 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Statamic\\Stache\\Repositories\\EntryRepository->find()
#49 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(947): Illuminate\\Support\\Facades\\Facade::__callStatic()
#50 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasOrigin.php(75): Statamic\\Entries\\Entry->getOriginByString()
#51 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasOrigin.php(101): Statamic\\Entries\\Entry->origin()
#52 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(202): Statamic\\Entries\\Entry->hasOrigin()
#53 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasDirtyState.php(50): Statamic\\Entries\\Entry->getCurrentDirtyStateAttributes()
#54 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/BasicStore.php(28): Statamic\\Entries\\Entry->syncOriginal()
#55 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(74): Statamic\\Stache\\Stores\\BasicStore->getItem()
#56 [internal function]: Statamic\\Stache\\Stores\\Store->Statamic\\Stache\\Stores\\{closure}()
#57 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#58 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#59 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(73): Illuminate\\Support\\Collection->map()
#60 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Value.php(11): Statamic\\Stache\\Stores\\Store->getItemsFromFiles()
#61 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(99): Statamic\\Stache\\Indexes\\Value->getItems()
#62 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(81): Statamic\\Stache\\Indexes\\Index->update()
#63 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(47): Statamic\\Stache\\Indexes\\Index->load()
#64 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(115): Statamic\\Stache\\Stores\\Store->index()
#65 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(96): Statamic\\Stache\\Query\\Builder->getWhereColumnKeysFromStore()
#66 [internal function]: Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#67 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#68 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#69 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(404): Illuminate\\Support\\Collection->map()
#70 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(95): Illuminate\\Support\\Collection->flatMap()
#71 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(87): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWhere()
#72 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(791): Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#73 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(84): Illuminate\\Support\\Collection->reduce()
#74 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(68): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWheres()
#75 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(27): Statamic\\Stache\\Query\\EntryQueryBuilder->getFilteredKeys()
#76 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(46): Statamic\\Stache\\Query\\Builder->resolveKeys()
#77 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Concerns/FakesQueries.php(13): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#78 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->withFakeQueryLogging()
#79 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(584): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#80 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->onceWithColumns()
#81 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(539): Statamic\\Stache\\Query\\Builder->get()
#82 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Repositories/EntryRepository.php(56): Statamic\\Query\\Builder->first()
#83 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Statamic\\Stache\\Repositories\\EntryRepository->find()
#84 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(947): Illuminate\\Support\\Facades\\Facade::__callStatic()
#85 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasOrigin.php(75): Statamic\\Entries\\Entry->getOriginByString()
#86 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasOrigin.php(101): Statamic\\Entries\\Entry->origin()
#87 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(202): Statamic\\Entries\\Entry->hasOrigin()
#88 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasDirtyState.php(50): Statamic\\Entries\\Entry->getCurrentDirtyStateAttributes()
#89 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/BasicStore.php(28): Statamic\\Entries\\Entry->syncOriginal()
#90 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(74): Statamic\\Stache\\Stores\\BasicStore->getItem()
#91 [internal function]: Statamic\\Stache\\Stores\\Store->Statamic\\Stache\\Stores\\{closure}()
#92 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#93 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#94 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(73): Illuminate\\Support\\Collection->map()
#95 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Value.php(11): Statamic\\Stache\\Stores\\Store->getItemsFromFiles()
#96 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(99): Statamic\\Stache\\Indexes\\Value->getItems()
#97 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(81): Statamic\\Stache\\Indexes\\Index->update()
#98 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(47): Statamic\\Stache\\Indexes\\Index->load()
#99 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(115): Statamic\\Stache\\Stores\\Store->index()
#100 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(96): Statamic\\Stache\\Query\\Builder->getWhereColumnKeysFromStore()
#101 [internal function]: Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#102 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#103 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#104 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(404): Illuminate\\Support\\Collection->map()
#105 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(95): Illuminate\\Support\\Collection->flatMap()
#106 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(87): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWhere()
#107 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(791): Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#108 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(84): Illuminate\\Support\\Collection->reduce()
#109 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(68): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWheres()
#110 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(27): Statamic\\Stache\\Query\\EntryQueryBuilder->getFilteredKeys()
#111 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(46): Statamic\\Stache\\Query\\Builder->resolveKeys()
#112 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Concerns/FakesQueries.php(13): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#113 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->withFakeQueryLogging()
#114 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(584): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#115 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->onceWithColumns()
#116 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(539): Statamic\\Stache\\Query\\Builder->get()
#117 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Repositories/EntryRepository.php(56): Statamic\\Query\\Builder->first()
#118 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Statamic\\Stache\\Repositories\\EntryRepository->find()
#119 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(947): Illuminate\\Support\\Facades\\Facade::__callStatic()
#120 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasOrigin.php(75): Statamic\\Entries\\Entry->getOriginByString()
#121 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasOrigin.php(101): Statamic\\Entries\\Entry->origin()
#122 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(202): Statamic\\Entries\\Entry->hasOrigin()
#123 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasDirtyState.php(50): Statamic\\Entries\\Entry->getCurrentDirtyStateAttributes()
#124 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/BasicStore.php(28): Statamic\\Entries\\Entry->syncOriginal()
#125 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(74): Statamic\\Stache\\Stores\\BasicStore->getItem()
#126 [internal function]: Statamic\\Stache\\Stores\\Store->Statamic\\Stache\\Stores\\{closure}()
#127 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#128 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#129 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(73): Illuminate\\Support\\Collection->map()
#130 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Value.php(11): Statamic\\Stache\\Stores\\Store->getItemsFromFiles()
#131 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(99): Statamic\\Stache\\Indexes\\Value->getItems()
#132 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(81): Statamic\\Stache\\Indexes\\Index->update()
#133 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(47): Statamic\\Stache\\Indexes\\Index->load()
#134 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(115): Statamic\\Stache\\Stores\\Store->index()
#135 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(96): Statamic\\Stache\\Query\\Builder->getWhereColumnKeysFromStore()
#136 [internal function]: Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#137 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#138 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#139 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(404): Illuminate\\Support\\Collection->map()
#140 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(95): Illuminate\\Support\\Collection->flatMap()
#141 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(87): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWhere()
#142 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(791): Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#143 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(84): Illuminate\\Support\\Collection->reduce()
#144 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(68): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWheres()
#145 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(27): Statamic\\Stache\\Query\\EntryQueryBuilder->getFilteredKeys()
#146 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(46): Statamic\\Stache\\Query\\Builder->resolveKeys()
#147 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Concerns/FakesQueries.php(13): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#148 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->withFakeQueryLogging()
#149 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(584): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#150 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->onceWithColumns()
#151 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(539): Statamic\\Stache\\Query\\Builder->get()
#152 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Repositories/EntryRepository.php(56): Statamic\\Query\\Builder->first()
#153 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Statamic\\Stache\\Repositories\\EntryRepository->find()
#154 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(947): Illuminate\\Support\\Facades\\Facade::__callStatic()
#155 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasOrigin.php(75): Statamic\\Entries\\Entry->getOriginByString()
#156 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasOrigin.php(101): Statamic\\Entries\\Entry->origin()
#157 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Entries/Entry.php(202): Statamic\\Entries\\Entry->hasOrigin()
#158 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/HasDirtyState.php(50): Statamic\\Entries\\Entry->getCurrentDirtyStateAttributes()
#159 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/BasicStore.php(28): Statamic\\Entries\\Entry->syncOriginal()
#160 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(74): Statamic\\Stache\\Stores\\BasicStore->getItem()
#161 [internal function]: Statamic\\Stache\\Stores\\Store->Statamic\\Stache\\Stores\\{closure}()
#162 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#163 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#164 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(73): Illuminate\\Support\\Collection->map()
#165 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Value.php(11): Statamic\\Stache\\Stores\\Store->getItemsFromFiles()
#166 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(99): Statamic\\Stache\\Indexes\\Value->getItems()
#167 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Indexes/Index.php(81): Statamic\\Stache\\Indexes\\Index->update()
#168 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Stores/Store.php(47): Statamic\\Stache\\Indexes\\Index->load()
#169 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(115): Statamic\\Stache\\Stores\\Store->index()
#170 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(96): Statamic\\Stache\\Query\\Builder->getWhereColumnKeysFromStore()
#171 [internal function]: Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#172 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map()
#173 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map()
#174 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(404): Illuminate\\Support\\Collection->map()
#175 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(95): Illuminate\\Support\\Collection->flatMap()
#176 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(87): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWhere()
#177 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(791): Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}()
#178 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(84): Illuminate\\Support\\Collection->reduce()
#179 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/EntryQueryBuilder.php(68): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWheres()
#180 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(27): Statamic\\Stache\\Query\\EntryQueryBuilder->getFilteredKeys()
#181 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(46): Statamic\\Stache\\Query\\Builder->resolveKeys()
#182 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Concerns/FakesQueries.php(13): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#183 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->withFakeQueryLogging()
#184 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(584): Statamic\\Stache\\Query\\Builder->Statamic\\Stache\\Query\\{closure}()
#185 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Query/Builder.php(45): Statamic\\Query\\Builder->onceWithColumns()
#186 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Query/Builder.php(539): Statamic\\Stache\\Query\\Builder->get()
#187 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Stache/Repositories/EntryRepository.php(81): Statamic\\Query\\Builder->first()
#188 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/DataRepository.php(70): Statamic\\Stache\\Repositories\\EntryRepository->findByUri()
#189 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/DataRepository.php(41): Statamic\\Data\\DataRepository->attemptAllRepositories()
#190 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Data/DataRepository.php(60): Statamic\\Data\\DataRepository->findByUri()
#191 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Statamic\\Data\\DataRepository->findByRequestUrl()
#192 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Controllers/FrontendController.php(30): Illuminate\\Support\\Facades\\Facade::__callStatic()
#193 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Statamic\\Http\\Controllers\\FrontendController->index()
#194 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction()
#195 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#196 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#197 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#198 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#199 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/StaticCaching/Middleware/Cache.php(63): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#200 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\StaticCaching\\Middleware\\Cache->handle()
#201 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/AuthGuard.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#202 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\AuthGuard->handle()
#203 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/AddViewPaths.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#204 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\AddViewPaths->handle()
#205 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/Localize.php(38): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#206 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\Localize->handle()
#207 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/HandleToken.php(13): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#208 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\HandleToken->handle()
#209 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/StacheLock.php(29): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#210 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\StacheLock->handle()
#211 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#212 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#213 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#214 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#215 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#216 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#217 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#218 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#219 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle()
#220 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#221 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#222 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#223 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#224 /home/my-user/www.my-fake-domain.com/vendor/rias/statamic-redirect/src/Http/Middleware/HandleNotFound.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#225 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Rias\\StatamicRedirect\\Http\\Middleware\\HandleNotFound->handle()
#226 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#227 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then()
#228 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack()
#229 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute()
#230 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute()
#231 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch()
#232 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#233 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/StopImpersonating.php(12): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#234 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\StopImpersonating->handle()
#235 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/DisableFloc.php(17): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#236 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\DisableFloc->handle()
#237 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/CheckMultisite.php(15): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#238 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckMultisite->handle()
#239 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/CheckComposerJsonScripts.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#240 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckComposerJsonScripts->handle()
#241 /home/my-user/www.my-fake-domain.com/vendor/statamic/cms/src/Http/Middleware/PoweredByHeader.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#242 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\PoweredByHeader->handle()
#243 /home/my-user/www.my-fake-domain.com/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(59): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#244 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle()
#245 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#246 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#247 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#248 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#249 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#250 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#251 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#252 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#253 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#254 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#255 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#256 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle()
#257 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#258 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#259 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#260 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#261 /home/my-user/www.my-fake-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#262 /home/my-user/www.my-fake-domain.com/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle()
#263 {main}
daun commented 1 month ago

To reproduce the issue on Statamic v5.20.0

  1. Change order of page collection with nested pages 3+ levels
  2. Page collection has 'route: '{{ parent_uri }}/{{ slug }}' settings
  3. remove one page with nested pages
  4. run full cache clear via CP
  5. get 500 error with "all to a member function routeData()"
  6. try to run \Statamic\Facades\Entry::find('0eb8e7fd-6ced-4c2f-af97-80889c8290d8'). Will be empty result (BUT the page exists as .md file)

Seeing this error as well in v5.25 with the exact same scenario as described by @OleksiiBrylin. After a page reorder, somehow the stache gets out of sync with the actual entries on disk and tries to read routeData() on null somewhere.