( ! ) Fatal error: Call to a member function toArray() on null in /var/www/html/currentaffairs/src/Controller/PagesController.php on line 360
Call Stack
#TimeMemoryFunctionLocation
10.0000232624{main}( ).../index.php:0
20.0014639304Cake\Http\Server->run( ).../index.php:40
30.00601904272Cake\Http\Runner->run( ).../Server.php:81
40.00601904384Cake\Http\Runner->__invoke( ).../Runner.php:51
50.00621919472Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.00621919472Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.00631925480Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.00631925512Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.00631925848Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.00732017776Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.00732017912Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.00742029752Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.00862222096Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.00872222616Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.00882223552App\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: 360


( ! ) Xdebug: user triggered in /var/www/html/currentaffairs/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp on line 36
Call Stack
#TimeMemoryFunctionLocation
10.0000232624{main}( ).../index.php:0
20.0014639304Cake\Http\Server->run( ).../index.php:40
30.00601904272Cake\Http\Runner->run( ).../Server.php:81
40.00601904384Cake\Http\Runner->__invoke( ).../Runner.php:51
50.00621919472Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke( ).../Runner.php:65
60.00621919472Cake\Http\Runner->__invoke( ).../ErrorHandlerMiddleware.php:98
70.00631925480Cake\Routing\Middleware\AssetMiddleware->__invoke( ).../Runner.php:65
80.00631925512Cake\Http\Runner->__invoke( ).../AssetMiddleware.php:88
90.00631925848Cake\Routing\Middleware\RoutingMiddleware->__invoke( ).../Runner.php:65
100.00732017776Cake\Http\Runner->__invoke( ).../RoutingMiddleware.php:104
110.00732017912Cake\Http\BaseApplication->__invoke( ).../Runner.php:65
120.00742029752Cake\Http\ActionDispatcher->dispatch( ).../BaseApplication.php:108
130.00862222096Cake\Http\ActionDispatcher->_invoke( ).../ActionDispatcher.php:93
140.00872222616Cake\Controller\Controller->invokeAction( ).../ActionDispatcher.php:119
150.00882223552App\Controller\PagesController->subjectwise( ).../Controller.php:440
160.01643157768Cake\Error\BaseErrorHandler->Cake\Error\{closure}( ).../BaseErrorHandler.php:0
170.01643159704Cake\Error\BaseErrorHandler->handleFatalError( ).../BaseErrorHandler.php:105
180.01793288872Cake\Error\BaseErrorHandler->handleException( ).../BaseErrorHandler.php:225
190.01793289000Cake\Error\ErrorHandler->_displayException( ).../BaseErrorHandler.php:187
200.01983600624Cake\Error\ExceptionRenderer->render( ).../ErrorHandler.php:138
210.02003608584Cake\Error\ExceptionRenderer->_outputMessage( ).../ExceptionRenderer.php:200
220.02003609008Cake\Controller\Controller->render( ).../ExceptionRenderer.php:325
230.02393775352Cake\View\View->render( ).../Controller.php:623
240.02413778080Cake\View\View->_render( ).../View.php:765
250.02413778208Cake\View\View->_evaluate( ).../View.php:1157
260.02423809208include( '/var/www/html/currentaffairs/vendor/cakephp/cakephp/src/Template/Error/fatal_error.ctp' ).../View.php:1196
270.02433827616xdebug_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