( ! ) 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.0001232944{main}( ).../index.php:0
20.0028668880Cake\Http\Server->run( ).../index.php:40
30.02991992712Cake\Http\Runner->run( ).../Server.php:81
40.02991992824Cake\Http\Runner->__invoke( ).../Runner.php:51
50.03032008608Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.03032008608Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.03042014944Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.03042014976Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.03052015312Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.03712126728Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.03712126864Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.03742139112Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.05992337752Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.06012338272Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.06022339480App\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.0001232944{main}( ).../index.php:0
20.0028668880Cake\Http\Server->run( ).../index.php:40
30.02991992712Cake\Http\Runner->run( ).../Server.php:81
40.02991992824Cake\Http\Runner->__invoke( ).../Runner.php:51
50.03032008608Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.03032008608Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.03042014944Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.03042014976Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.03052015312Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.03712126728Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.03712126864Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.03742139112Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.05992337752Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.06012338272Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.06022339480App\Controller\PagesController->index( ).../Controller.php:440
160.12343312392Cake\Error\BaseErrorHandler->Cake\Error\{closure}( ).../BaseErrorHandler.php:0
170.12353314328Cake\Error\BaseErrorHandler->handleFatalError( ).../BaseErrorHandler.php:105
180.14293993232Cake\Error\BaseErrorHandler->handleException( ).../BaseErrorHandler.php:225
190.14293993360Cake\Error\ErrorHandler->_displayException( ).../BaseErrorHandler.php:187
200.15904306624Cake\Error\ExceptionRenderer->render( ).../ErrorHandler.php:138
210.16144314664Cake\Error\ExceptionRenderer->_outputMessage( ).../ExceptionRenderer.php:200
220.16154315088Cake\Controller\Controller->render( ).../ExceptionRenderer.php:325
230.17814480944Cake\View\View->render( ).../Controller.php:623
240.17844483720Cake\View\View->_render( ).../View.php:765
250.17854483848Cake\View\View->_evaluate( ).../View.php:1157
260.17864515440include( '/var/www/html/downloads/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp' ).../View.php:1196
270.17884533840xdebug_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