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\Locales::fetchLocale() must be an instance of Inpage\models\Locale, array returned in /www/inpage.new/modules/Inpage/src/models/Locales.php:36 Stack trace: #0 /www/inpage.new/app/controllers/inpage/default/plugins/Service.php(229): Inpage\models\Locales->fetchLocale(1, 1, 1) #1 /www/inpage.new/vendor/zendframework/zendframework1/library/Zend/Controller/Plugin/Broker.php(260): Zoner_Controller_Plugin_Service->routeShutdown(Object(Zend_Controller_Request_Http)) #2 /www/inpage.new/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(923): Zend_Controller_Plugin_Broker->routeShutdown(Object(Zend_Controller_Request_Http)) #3 /www/inpage.new/wwwroot-inpage/index.php(32): Zend_Controller_Front->dispatch() #4 {main} thrown in /www/inpage.new/modules/Inpage/src/models/Locales.php on line 36