An uncaught Exception was encountered

Type: TypeError

Message: Return value of Site_model::getSite() must be of the type array, null returned

Filename: /home/agro/www/application/models/Site_model.php

Line Number: 333

Backtrace:

File: /home/agro/www/application/controllers/Api.php
Line: 119
Function: getSite

File: /home/agro/www/index.php
Line: 315
Function: require_once