( ! ) 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.0001233200{main}( ).../index.php:0
20.0023669128Cake\Http\Server->run( ).../index.php:40
30.01141993112Cake\Http\Runner->run( ).../Server.php:81
40.01141993224Cake\Http\Runner->__invoke( ).../Runner.php:51
50.01172009008Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.01172009008Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.01172015344Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.01182015376Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.01182015712Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.01342127432Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.01342127568Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.01352139816Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01512338552Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01522339072Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01532340280App\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.0001233200{main}( ).../index.php:0
20.0023669128Cake\Http\Server->run( ).../index.php:40
30.01141993112Cake\Http\Runner->run( ).../Server.php:81
40.01141993224Cake\Http\Runner->__invoke( ).../Runner.php:51
50.01172009008Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.01172009008Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.01172015344Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.01182015376Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.01182015712Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.01342127432Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.01342127568Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.01352139816Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01512338552Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01522339072Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01532340280App\Controller\PagesController->index( ).../Controller.php:440
160.02613313424Cake\Error\BaseErrorHandler->Cake\Error\{closure}( ).../BaseErrorHandler.php:0
170.02613315360Cake\Error\BaseErrorHandler->handleFatalError( ).../BaseErrorHandler.php:105
180.03063994432Cake\Error\BaseErrorHandler->handleException( ).../BaseErrorHandler.php:225
190.03063994560Cake\Error\ErrorHandler->_displayException( ).../BaseErrorHandler.php:187
200.03294307784Cake\Error\ExceptionRenderer->render( ).../ErrorHandler.php:138
210.03324315856Cake\Error\ExceptionRenderer->_outputMessage( ).../ExceptionRenderer.php:200
220.03324316280Cake\Controller\Controller->render( ).../ExceptionRenderer.php:325
230.03764482224Cake\View\View->render( ).../Controller.php:623
240.03784485000Cake\View\View->_render( ).../View.php:765
250.03784485128Cake\View\View->_evaluate( ).../View.php:1157
260.03794516792include( '/var/www/html/downloads/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp' ).../View.php:1196
270.03804535192xdebug_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