Notice: Undefined index: locale in /home/vhosts/sitepack.io/src/Sites/Repository/SitesRepository.php on line 416

Fatal error: Uncaught TypeError: Argument 1 passed to SitePack\Sites\Entities\SiteEntity::setLocale() must be of the type string, null given, called in /home/vhosts/sitepack.io/src/Sites/Repository/SitesRepository.php on line 416 and defined in /home/vhosts/sitepack.io/src/Sites/Entities/SiteEntity.php:246 Stack trace: #0 /home/vhosts/sitepack.io/src/Sites/Repository/SitesRepository.php(416): SitePack\Sites\Entities\SiteEntity->setLocale(NULL) #1 /home/vhosts/sitepack.io/vendor/internetpixels/repository-manager/src/Repositories/AbstractRepository.php(135): SitePack\Sites\Repository\SitesRepository->dataToEntity(Array) #2 /home/vhosts/sitepack.io/src/Sites/Repository/SitesRepository.php(271): InternetPixels\RepositoryManager\Repositories\AbstractRepository->executeQueryForSingleResult('SELECT * FROM s...') #3 /home/vhosts/sitepack.io/src/Render/Service/RenderService.php(149): SitePack\Sites\Repository\SitesRepository->findByDomain('internetpixels....') #4 /home/vhosts/sitepack.io/src/Controllers/RenderController.php(164): in /home/vhosts/sitepack.io/src/Sites/Entities/SiteEntity.php on line 246