( ! ) Fatal error: Call to a member function toArray() on null in /var/www/html/downloads/src/Controller/PagesController.php on line 120
Call Stack
#TimeMemoryFunctionLocation
10.0001233168{main}( ).../index.php:0
20.0029669104Cake\Http\Server->run( ).../index.php:40
30.01791993072Cake\Http\Runner->run( ).../Server.php:81
40.01791993184Cake\Http\Runner->__invoke( ).../Runner.php:51
50.01862008968Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.01862008968Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.01882015304Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.01882015336Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.01882015672Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.02352127296Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.02352127432Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.02382139680Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.02812338320Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.02832338840Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.02882340048App\Controller\PagesController->index( ).../Controller.php:440
Error: Fatal Error

Fatal Error Cake\Error\FatalErrorException

Documentation API

Error: Call to a member function toArray() on null
File /var/www/html/downloads/src/Controller/PagesController.php
Line: 120


( ! ) Xdebug: user triggered in /var/www/html/downloads/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp on line 36
Call Stack
#TimeMemoryFunctionLocation
10.0001233168{main}( ).../index.php:0
20.0029669104Cake\Http\Server->run( ).../index.php:40
30.01791993072Cake\Http\Runner->run( ).../Server.php:81
40.01791993184Cake\Http\Runner->__invoke( ).../Runner.php:51
50.01862008968Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.01862008968Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.01882015304Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.01882015336Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.01882015672Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.02352127296Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.02352127432Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.02382139680Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.02812338320Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.02832338840Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.02882340048App\Controller\PagesController->index( ).../Controller.php:440
160.05933313160Cake\Error\BaseErrorHandler->Cake\Error\{closure}( ).../BaseErrorHandler.php:0
170.05943315096Cake\Error\BaseErrorHandler->handleFatalError( ).../BaseErrorHandler.php:105
180.08013994168Cake\Error\BaseErrorHandler->handleException( ).../BaseErrorHandler.php:225
190.08013994296Cake\Error\ErrorHandler->_displayException( ).../BaseErrorHandler.php:187
200.08434307520Cake\Error\ExceptionRenderer->render( ).../ErrorHandler.php:138
210.08804315584Cake\Error\ExceptionRenderer->_outputMessage( ).../ExceptionRenderer.php:200
220.08804316008Cake\Controller\Controller->render( ).../ExceptionRenderer.php:325
230.10614481888Cake\View\View->render( ).../Controller.php:623
240.10644484664Cake\View\View->_render( ).../View.php:765
250.10644484792Cake\View\View->_evaluate( ).../View.php:1157
260.10664516432include( '/var/www/html/downloads/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp' ).../View.php:1196
270.10684534832xdebug_print_function_stack ( ).../fatal_error.ctp:36

If you want to customize this error message, create src/Template/Error/fatal_error.ctp

toggle vendor stack frames