william - 2 months ago

I am moving a site to a new server and doing so i stumble upon this. It's a pyrocms v3.5 site. If i create a new pagetype, and create a page with it, no issues.

[2018-05-26 14:26:01] local.ERROR: View [pages.types.1.layout] not found. {"userId":1,"email":"william@pixney.com","exception":"[object] (InvalidArgumentException(code: 0): View [pages.types.1.layout] not found. at /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137)
[stacktrace]
#0 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php(92): Illuminate\\View\\FileViewFinder->findInPaths('pages.types.1.l...', Array)
#1 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php(76): Illuminate\\View\\FileViewFinder->findNamespacedView('storage::pages....')
#2 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/View/Factory.php(128): Illuminate\\View\\FileViewFinder->find('storage::pages....')
#3 /home/runcloud/webapps/driverlessratings/core/anomaly/pages-module/src/Page/PageContent.php(69): Illuminate\\View\\Factory->make('storage::pages....', Array)
#4 /home/runcloud/webapps/driverlessratings/core/anomaly/default_page_handler-extension/src/Command/MakePage.php(58): Anomaly\\PagesModule\\Page\\PageContent->make(Object(Anomaly\\PagesModule\\Page\\PageModel))
#5 [internal function]: Anomaly\\DefaultPageHandlerExtension\\Command\\MakePage->handle(Object(Anomaly\\PagesModule\\Page\\PageLoader), Object(Anomaly\\PagesModule\\Page\\PageContent), Object(Anomaly\\PagesModule\\Page\\PageResponse), Object(Anomaly\\PagesModule\\Page\\PageAuthorizer), Object(Anomaly\\PagesModule\\Page\\PageBreadcrumb))
#6 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array(Array, Array)
#7 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#8 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#9 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Container/Container.php(549): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#10 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(94): Illuminate\\Container\\Container->call(Array)
#11 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(114): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(Anomaly\\DefaultPageHandlerExtension\\Command\\MakePage))
#12 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Anomaly\\DefaultPageHandlerExtension\\Command\\MakePage))
#13 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#14 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(76): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(Anomaly\\DefaultPageHandlerExtension\\Command\\MakePage))
#15 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Foundation/Bus/DispatchesJobs.php(17): Illuminate\\Bus\\Dispatcher->dispatch(Object(Anomaly\\DefaultPageHandlerExtension\\Command\\MakePage))
#16 /home/runcloud/webapps/driverlessratings/core/anomaly/default_page_handler-extension/src/DefaultPageHandlerExtension.php(32): Anomaly\\Streams\\Platform\\Addon\\Addon->dispatch(Object(Anomaly\\DefaultPageHandlerExtension\\Command\\MakePage))
#17 /home/runcloud/webapps/driverlessratings/core/anomaly/pages-module/src/Http/Controller/PagesController.php(42): Anomaly\\DefaultPageHandlerExtension\\DefaultPageHandlerExtension->make(Object(Anomaly\\PagesModule\\Page\\PageModel))
#18 [internal function]: Anomaly\\PagesModule\\Http\\Controller\\PagesController->view(Object(Anomaly\\PagesModule\\Page\\PageResolver), Object(Anomaly\\Streams\\Platform\\View\\ViewTemplate))
#19 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#20 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('view', Array)
#21 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Anomaly\\PagesModule\\Http\\Controller\\PagesController), 'view')
#22 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\Routing\\Route->runController()
#23 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\\Routing\\Route->run()
#24 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/runcloud/webapps/driverlessratings/vendor/anomaly/streams-platform/src/Http/Middleware/CheckForMaintenanceMode.php(95): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\Streams\\Platform\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/runcloud/webapps/driverlessratings/core/anomaly/users-module/src/Http/Middleware/AuthorizeRoutePermission.php(128): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\UsersModule\\Http\\Middleware\\AuthorizeRoutePermission->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/runcloud/webapps/driverlessratings/core/anomaly/users-module/src/Http/Middleware/AuthorizeControlPanel.php(44): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\UsersModule\\Http\\Middleware\\AuthorizeControlPanel->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/runcloud/webapps/driverlessratings/core/anomaly/users-module/src/Http/Middleware/AuthorizeModuleAccess.php(54): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\UsersModule\\Http\\Middleware\\AuthorizeModuleAccess->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/runcloud/webapps/driverlessratings/core/anomaly/users-module/src/Http/Middleware/AuthorizeRouteRoles.php(132): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\UsersModule\\Http\\Middleware\\AuthorizeRouteRoles->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/runcloud/webapps/driverlessratings/core/anomaly/users-module/src/Http/Middleware/CheckSecurity.php(86): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\UsersModule\\Http\\Middleware\\CheckSecurity->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/runcloud/webapps/driverlessratings/vendor/anomaly/streams-platform/src/Http/Middleware/ApplicationReady.php(49): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\Streams\\Platform\\Http\\Middleware\\ApplicationReady->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/runcloud/webapps/driverlessratings/vendor/anomaly/streams-platform/src/Http/Middleware/CheckLocale.php(50): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\Streams\\Platform\\Http\\Middleware\\CheckLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/runcloud/webapps/driverlessratings/vendor/anomaly/streams-platform/src/Http/Middleware/SetLocale.php(125): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\Streams\\Platform\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/runcloud/webapps/driverlessratings/vendor/anomaly/streams-platform/src/Http/Middleware/PoweredBy.php(38): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\Streams\\Platform\\Http\\Middleware\\PoweredBy->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/runcloud/webapps/driverlessratings/vendor/anomaly/streams-platform/src/Http/Middleware/VerifyCsrfToken.php(108): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\Streams\\Platform\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#61 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#62 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#63 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#64 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/runcloud/webapps/driverlessratings/vendor/anomaly/streams-platform/src/Http/Middleware/SetLocale.php(125): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Anomaly\\Streams\\Platform\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#75 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#82 /home/runcloud/webapps/driverlessratings/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#83 /home/runcloud/webapps/driverlessratings/public/index.php(53): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#84 {main}
"}

william - 2 months ago

I resaved the pagetype with a new layout "BUTT". Then butt is displayed and things work.

Then i pasted my old layout

{% for block in page.grid %}
                        <div class="block {{ block.type }}_block_type">
                            {% include "theme::blocks/global/" ~ block.type %}
                        </div>
                    {% endfor %}

and now i don't get the first issue, but now i it throws :

[2018-05-26 14:45:12] local.ERROR: Method Anomaly\EditorFieldType\EditorFieldTypePresenter::__toString() must not throw an exception, caught InvalidArgumentException: View [grid.contact_form.1.code_editor] not found. {"userId":1,"email":"william@pixney.com","exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 1): Method Anomaly\\EditorFieldType\\EditorFieldTypePresenter::__toString() must not throw an exception, caught InvalidArgumentException: View [grid.contact_form.1.code_editor] not found. at /home/runcloud/webapps/driverlessratings/storage/framework/views/twig/65/65904adb5a7ac3ad3605c9d141afa9d3f114f7ed20079b6c9f686d57bb4b01f9.php:0)
[stacktrace]
#0 {main}
"}