Notice: Undefined offset: 2 in /www/inpage.new/app/controllers/inpage/default/plugins/Service.php on line 92

Fatal error: Uncaught TypeError: Return value of Inpage\models\Programs::fetchProgramById() must be an instance of Inpage\models\Program, array returned in /www/inpage.new/modules/Inpage/src/models/Programs.php:37 Stack trace: #0 /www/inpage.new/app/controllers/inpage/default/IndexController.php(108): Inpage\models\Programs->fetchProgramById(3) #1 /www/inpage.new/vendor/zendframework/zendframework1/library/Zend/Controller/Action.php(502): IndexController->preDispatch() #2 /www/inpage.new/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('articleAction') #3 /www/inpage.new/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #4 /www/inpage.new/wwwroot-inpage/index.php(32): Zend_Controller_Front->dispatch() #5 {main} thrown in /www/inpage.new/modules/Inpage/src/models/Programs.php on line 37