( ! ) 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.0000233008{main}( ).../index.php:0
20.0021639504Cake\Http\Server->run( ).../index.php:40
30.00891903536Cake\Http\Runner->run( ).../Server.php:81
40.00891903648Cake\Http\Runner->__invoke( ).../Runner.php:51
50.00921918720Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.00921918720Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.00931924728Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.00931924760Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.00931925096Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.01092038160Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.01102038296Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.01112050120Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01272240360Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01282240880Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01282242088App\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.0000233008{main}( ).../index.php:0
20.0021639504Cake\Http\Server->run( ).../index.php:40
30.00891903536Cake\Http\Runner->run( ).../Server.php:81
40.00891903648Cake\Http\Runner->__invoke( ).../Runner.php:51
50.00921918720Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.00921918720Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.00931924728Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.00931924760Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.00931925096Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.01092038160Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.01102038296Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.01112050120Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01272240360Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01282240880Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01282242088App\Controller\PagesController->index( ).../Controller.php:440
160.02473179488Cake\Error\BaseErrorHandler->Cake\Error\{closure}( ).../BaseErrorHandler.php:0
170.02483181424Cake\Error\BaseErrorHandler->handleFatalError( ).../BaseErrorHandler.php:105
180.02663312200Cake\Error\BaseErrorHandler->handleException( ).../BaseErrorHandler.php:225
190.02663312328Cake\Error\ErrorHandler->_displayException( ).../BaseErrorHandler.php:187
200.02883623752Cake\Error\ExceptionRenderer->render( ).../ErrorHandler.php:138
210.02913631776Cake\Error\ExceptionRenderer->_outputMessage( ).../ExceptionRenderer.php:200
220.02913632200Cake\Controller\Controller->render( ).../ExceptionRenderer.php:325
230.03503798520Cake\View\View->render( ).../Controller.php:623
240.03523801296Cake\View\View->_render( ).../View.php:765
250.03523801424Cake\View\View->_evaluate( ).../View.php:1157
260.03533832680include( '/var/www/html/downloads/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp' ).../View.php:1196
270.03543851080xdebug_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