Grid issue when trying to view posts

william - 5 months ago

When i am trying to view /posts, it seems like it's looking for a grid i created earlier and deleted. I have run streams:compile, asset:clear and view:clear.

Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Class 'Anomaly\Streams\Platform\Model\Grid\GridImageTxtEntryModel' not found"

Stacktrace:
#0 Symfony\Component\Debug\Exception\FatalThrowableError in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:827

Answer

- 5 months ago

Ah I understand.. there needs to be a null catch if the grid no longer exists. I can do that!

piterden - 5 months ago

Did you try to run this?

php artisan streams:refresh

or maybe this

php artisan streams:cleanup

william - 5 months ago

Thanks, but it won't help.

When looking into it, it has to do with the streams module. I had earlier created a field with the slug image_and_text. Then when it was deleted i guess things weren't updated correctly.

I deleted all streams and fields now. And then i got the errror below. And then i tried uninstalling streams from the admin gui and got the error below that.

ErrorException thrown with message "Trying to get property of non-object"

Stacktrace:
#46 ErrorException in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Http/Middleware/PoweredBy.php:40
#45 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Http/Middleware/PoweredBy.php:40
#44 Anomaly\Streams\Platform\Http\Middleware\PoweredBy:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#43 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#42 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65
#41 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#40 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#39 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/AuthorizeRoutePermission.php:107
#38 Anomaly\UsersModule\Http\Middleware\AuthorizeRoutePermission:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#37 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#36 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/AuthorizeControlPanel.php:44
#35 Anomaly\UsersModule\Http\Middleware\AuthorizeControlPanel:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#34 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#33 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/AuthorizeModuleAccess.php:54
#32 Anomaly\UsersModule\Http\Middleware\AuthorizeModuleAccess:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#31 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#30 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/AuthorizeRouteRoles.php:106
#29 Anomaly\UsersModule\Http\Middleware\AuthorizeRouteRoles:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#28 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#27 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/CheckSecurity.php:86
#26 Anomaly\UsersModule\Http\Middleware\CheckSecurity:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#25 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#24 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#23 Illuminate\Pipeline\Pipeline:then in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Router.php:655
#22 Illuminate\Routing\Router:runRouteWithinStack in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Router.php:629
#21 Illuminate\Routing\Router:dispatchToRoute in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Router.php:607
#20 Illuminate\Routing\Router:dispatch in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:268
#19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/barryvdh/laravel-debugbar/src/Middleware/Debugbar.php:51
#17 Barryvdh\Debugbar\Middleware\Debugbar:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#14 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64
#11 Illuminate\Session\Middleware\StartSession:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#8 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59
#5 Illuminate\Cookie\Middleware\EncryptCookies:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#2 Illuminate\Pipeline\Pipeline:then in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:150
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:117
#0 Illuminate\Foundation\Http\Kernel:handle in /home/vagrant/Code/williamastrom.dev/public/index.php:53
Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Type error: Argument 1 passed to Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\NavigationFactory::make() must be of the type array, integer given, called in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Ui/ControlPanel/Component/Navigation/NavigationBuilder.php on line 53"

Stacktrace:
#80 Symfony\Component\Debug\Exception\FatalThrowableError in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Ui/ControlPanel/Component/Navigation/NavigationFactory.php:56
#79 Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\NavigationFactory:make in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Ui/ControlPanel/Component/Navigation/NavigationBuilder.php:53
#78 Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\NavigationBuilder:build in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Ui/ControlPanel/Component/Navigation/Command/BuildNavigation.php:40
#77 Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\Command\BuildNavigation:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php:508
#76 call_user_func_array in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php:508
#75 Illuminate\Container\Container:call in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:94
#74 Illuminate\Bus\Dispatcher:Illuminate\Bus\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151
#73 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#72 Illuminate\Pipeline\Pipeline:then in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:98
#71 Illuminate\Bus\Dispatcher:dispatchNow in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:75
#70 Illuminate\Bus\Dispatcher:dispatch in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Bus/DispatchesJobs.php:17
#69 Anomaly\Streams\Platform\Ui\ControlPanel\Command\BuildControlPanel:dispatch in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Ui/ControlPanel/Command/BuildControlPanel.php:45
#68 Anomaly\Streams\Platform\Ui\ControlPanel\Command\BuildControlPanel:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php:508
#67 call_user_func_array in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php:508
#66 Illuminate\Container\Container:call in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:94
#65 Illuminate\Bus\Dispatcher:Illuminate\Bus\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151
#64 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#63 Illuminate\Pipeline\Pipeline:then in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:98
#62 Illuminate\Bus\Dispatcher:dispatchNow in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:75
#61 Illuminate\Bus\Dispatcher:dispatch in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Bus/DispatchesJobs.php:17
#60 Anomaly\Streams\Platform\Ui\ControlPanel\ControlPanelBuilder:dispatch in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Ui/ControlPanel/ControlPanelBuilder.php:64
#59 Anomaly\Streams\Platform\Ui\ControlPanel\ControlPanelBuilder:build in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Ui/ControlPanel/Listener/LoadControlPanel.php:86
#58 Anomaly\Streams\Platform\Ui\ControlPanel\Listener\LoadControlPanel:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:354
#57 call_user_func_array in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:354
#56 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:221
#55 call_user_func_array in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:221
#54 Illuminate\Events\Dispatcher:fire in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Http/Middleware/ApplicationReady.php:39
#53 Anomaly\Streams\Platform\Http\Middleware\ApplicationReady:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#52 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#51 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Http/Middleware/SetLocale.php:88
#50 Anomaly\Streams\Platform\Http\Middleware\SetLocale:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#49 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#48 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/anomaly/streams-platform/src/Http/Middleware/PoweredBy.php:38
#47 Anomaly\Streams\Platform\Http\Middleware\PoweredBy:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#46 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#45 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65
#44 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#43 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#42 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/AuthorizeRoutePermission.php:107
#41 Anomaly\UsersModule\Http\Middleware\AuthorizeRoutePermission:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#40 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#39 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/AuthorizeControlPanel.php:51
#38 Anomaly\UsersModule\Http\Middleware\AuthorizeControlPanel:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#37 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#36 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/AuthorizeModuleAccess.php:63
#35 Anomaly\UsersModule\Http\Middleware\AuthorizeModuleAccess:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#34 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#33 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/AuthorizeRouteRoles.php:106
#32 Anomaly\UsersModule\Http\Middleware\AuthorizeRouteRoles:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#31 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#30 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/core/anomaly/users-module/src/Http/Middleware/CheckSecurity.php:86
#29 Anomaly\UsersModule\Http\Middleware\CheckSecurity:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#28 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#27 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:43
#26 Illuminate\Auth\Middleware\Authenticate:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#25 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#24 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#23 Illuminate\Pipeline\Pipeline:then in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Router.php:655
#22 Illuminate\Routing\Router:runRouteWithinStack in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Router.php:629
#21 Illuminate\Routing\Router:dispatchToRoute in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Router.php:607
#20 Illuminate\Routing\Router:dispatch in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:268
#19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/barryvdh/laravel-debugbar/src/Middleware/Debugbar.php:51
#17 Barryvdh\Debugbar\Middleware\Debugbar:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#14 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64
#11 Illuminate\Session\Middleware\StartSession:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#8 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59
#5 Illuminate\Cookie\Middleware\EncryptCookies:handle in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:33
#3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#2 Illuminate\Pipeline\Pipeline:then in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:150
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/vagrant/Code/williamastrom.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:117
#0 Illuminate\Foundation\Http\Kernel:handle in /home/vagrant/Code/williamastrom.dev/public/index.php:53

william - 5 months ago

So what i ended up doing, was to delete all entries of the stream that used the image text field type which was a grid. I then deleted the field type. Then i could view the blog post page again.

Obviously the reason this happened in the first place is because i was trying to list projects on the blog posts page. But the main issue was because when i deleted the grid of image and text, it wasn't synced with the streams. Not sure if its necessary or not, but i guess it would be good to have some "security" here.

Anyway.. Figured it out..

piterden - 5 months ago

Seems there is a mistake in config. And config of navigation. Did you changed it? Do you have this code shared? Affraid, I couldn't tell you without Ryan's help, or reading the code.

Might you, not actually wanted to it, run this command?

php artisan streams:publish
// or
php artisan app:publish

piterden - 5 months ago

Witch, exactly, way you deleted that grid? With console command?

ryanthompson - 5 months ago

@william you referring to the fact that the garbage information is left in the table?

william - 5 months ago

Hi Piterden. No, i manually deleted it from gui.

william - 5 months ago

@ryanthompson The issue is, that if you create a grid. Then you use that grid in your stream. Then you go back one day and delete the grid. You get the errors i got above on all pages trying to use the stream. I tried clearing, compiling, refreshing and so on, but it still needs the grid that was missing to work.

So i guess the only solution in that case, is to create that grid again to get it working? So, what i am saying is. When you are to delete a grid, maybe we need to check if it's being used by streams (or elsewhere?) before allowing it to be deleted. Or also delete all stream fields using it.

Basically you learn, i was playing around with building streams a week ago. That is why i never thought of the connection today when i ran into this issue viewing my /posts. I think we might be able to leave it up to us as developers to not delete shit we need:)

ryanthompson - 5 months ago

Ah I understand.. there needs to be a null catch if the grid no longer exists. I can do that!