( ! ) 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.0000233392{main}( ).../index.php:0
20.0017639864Cake\Http\Server->run( ).../index.php:40
30.00701904000Cake\Http\Runner->run( ).../Server.php:81
40.00711904112Cake\Http\Runner->__invoke( ).../Runner.php:51
50.00731919184Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.00731919184Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.00741925192Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.00741925224Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.00741925560Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.00872033384Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.00872033520Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.00892045344Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01022235944Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01032236464Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01032237672App\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.0000233392{main}( ).../index.php:0
20.0017639864Cake\Http\Server->run( ).../index.php:40
30.00701904000Cake\Http\Runner->run( ).../Server.php:81
40.00711904112Cake\Http\Runner->__invoke( ).../Runner.php:51
50.00731919184Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.00731919184Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.00741925192Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.00741925224Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.00741925560Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.00872033384Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.00872033520Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.00892045344Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01022235944Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01032236464Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01032237672App\Controller\PagesController->index( ).../Controller.php:440
160.02073175080Cake\Error\BaseErrorHandler->Cake\Error\{closure}( ).../BaseErrorHandler.php:0
170.02073177016Cake\Error\BaseErrorHandler->handleFatalError( ).../BaseErrorHandler.php:105
180.02653855632Cake\Error\BaseErrorHandler->handleException( ).../BaseErrorHandler.php:225
190.02653855760Cake\Error\ErrorHandler->_displayException( ).../BaseErrorHandler.php:187
200.02854167264Cake\Error\ExceptionRenderer->render( ).../ErrorHandler.php:138
210.02884175304Cake\Error\ExceptionRenderer->_outputMessage( ).../ExceptionRenderer.php:200
220.02884175728Cake\Controller\Controller->render( ).../ExceptionRenderer.php:325
230.03414342064Cake\View\View->render( ).../Controller.php:623
240.03434344840Cake\View\View->_render( ).../View.php:765
250.03434344968Cake\View\View->_evaluate( ).../View.php:1157
260.03444376248include( '/var/www/html/downloads/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp' ).../View.php:1196
270.03454394648xdebug_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