( ! ) Fatal error: Call to a member function toArray() on null in /var/www/html/currentaffairs/src/Controller/PagesController.php on line 470
Call Stack
#TimeMemoryFunctionLocation
10.0001233456{main}( ).../index.php:0
20.0019640144Cake\Http\Server->run( ).../index.php:40
30.00961905312Cake\Http\Runner->run( ).../Server.php:81
40.00961905424Cake\Http\Runner->__invoke( ).../Runner.php:51
50.00981920512Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.00981920512Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.00991926520Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.00991926552Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.00991926888Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.01122029232Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.01122029368Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.01142041208Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01272234272Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01282234792Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01282235968App\Controller\PagesController->subjectwise( ).../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/currentaffairs/src/Controller/PagesController.php
Line: 470


( ! ) Xdebug: user triggered in /var/www/html/currentaffairs/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp on line 36
Call Stack
#TimeMemoryFunctionLocation
10.0001233456{main}( ).../index.php:0
20.0019640144Cake\Http\Server->run( ).../index.php:40
30.00961905312Cake\Http\Runner->run( ).../Server.php:81
40.00961905424Cake\Http\Runner->__invoke( ).../Runner.php:51
50.00981920512Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.00981920512Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.00991926520Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.00991926552Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.00991926888Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.01122029232Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.01122029368Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.01142041208Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.01272234272Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.01282234792Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.01282235968App\Controller\PagesController->subjectwise( ).../Controller.php:440
160.02263193976Cake\Error\BaseErrorHandler->Cake\Error\{closure}( ).../BaseErrorHandler.php:0
170.02263195912Cake\Error\BaseErrorHandler->handleFatalError( ).../BaseErrorHandler.php:105
180.02413325376Cake\Error\BaseErrorHandler->handleException( ).../BaseErrorHandler.php:225
190.02413325504Cake\Error\ErrorHandler->_displayException( ).../BaseErrorHandler.php:187
200.02613637104Cake\Error\ExceptionRenderer->render( ).../ErrorHandler.php:138
210.02633645064Cake\Error\ExceptionRenderer->_outputMessage( ).../ExceptionRenderer.php:200
220.02633645488Cake\Controller\Controller->render( ).../ExceptionRenderer.php:325
230.10613812112Cake\View\View->render( ).../Controller.php:623
240.10633814840Cake\View\View->_render( ).../View.php:765
250.10633814968Cake\View\View->_evaluate( ).../View.php:1157
260.10643846032include( '/var/www/html/currentaffairs/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp' ).../View.php:1196
270.10653864440xdebug_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