Notice (8): Undefined offset: 0 [APP/Controller/PagesController.php, line 104]
Notice (8): Undefined offset: 0 [APP/Controller/PagesController.php, line 106]
Notice (8): Undefined offset: 0 [APP/Controller/PagesController.php, line 106]
Notice (8): Undefined offset: 0 [APP/Controller/PagesController.php, line 107]
Notice (8): Undefined offset: 0 [APP/Controller/PagesController.php, line 108]
Notice (8): Undefined offset: 0 [APP/Controller/PagesController.php, line 109]
Notice (8): Undefined offset: 0 [APP/Controller/PagesController.php, line 109]

( ! ) 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.0003233392{main}( ).../index.php:0
20.0023656488Cake\Http\Server->run( ).../index.php:40
30.01051960640Cake\Http\Runner->run( ).../Server.php:81
40.01051960752Cake\Http\Runner->__invoke( ).../Runner.php:51
50.01071976536Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.01071976536Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.01081982872Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.01081982904Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.01081983240Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.01232094568Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.01232094704Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.01242106952Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01382305480Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01392306000Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01392307208App\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.0003233392{main}( ).../index.php:0
20.0023656488Cake\Http\Server->run( ).../index.php:40
30.01051960640Cake\Http\Runner->run( ).../Server.php:81
40.01051960752Cake\Http\Runner->__invoke( ).../Runner.php:51
50.01071976536Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.01071976536Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.01081982872Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.01081982904Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.01081983240Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.01232094568Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.01232094704Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.01242106952Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01382305480Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01392306000Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01392307208App\Controller\PagesController->index( ).../Controller.php:440
160.06804992272Cake\Error\BaseErrorHandler->Cake\Error\{closure}( ).../BaseErrorHandler.php:0
170.06814994144Cake\Error\BaseErrorHandler->handleFatalError( ).../BaseErrorHandler.php:105
180.06885027888Cake\Error\BaseErrorHandler->handleException( ).../BaseErrorHandler.php:225
190.06885028016Cake\Error\ErrorHandler->_displayException( ).../BaseErrorHandler.php:187
200.07085340896Cake\Error\ExceptionRenderer->render( ).../ErrorHandler.php:138
210.07115348800Cake\Error\ExceptionRenderer->_outputMessage( ).../ExceptionRenderer.php:200
220.07115349224Cake\Controller\Controller->render( ).../ExceptionRenderer.php:325
230.08275893400Cake\View\View->render( ).../Controller.php:623
240.08285896720Cake\View\View->_render( ).../View.php:765
250.08295896848Cake\View\View->_evaluate( ).../View.php:1157
260.08305928344include( '/var/www/html/downloads/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp' ).../View.php:1196
270.08305946896xdebug_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