Hello guys,
After updating from version v1.10.1 to v1.11.0-rc1 we found the following error when mailing the mail by running the job /opt/lampp/bin/php /opt/lampp/htdocs/osticket/api/cron.php
Fatal error: Declaration of CachedResultSet::count() must be compatible with BaseList::count($mode = COUNT_NORMAL) in /opt/lampp/htdocs/osticket/include/class.orm.php on line 1662
After looking at the codes we proceeded with the modification of the "count" function by adding the parameter $ mode = COUNT_NORMAL inside the file /opt/lampp/htdocs/osticket/include/class.orm.php:
function count($mode=COUNT_NORMAL) {
$this->asArray();
return count($this->storage);
}
We have made this change because the function is incompatible with the one in the "BaseList" class in the file /opt/lampp/htdocs/osticket/include/class.util.php:
// Countable
function count($mode=COUNT_NORMAL) {
return count($this->storage, $mode);
}
Now the mail fatching works correctly and for now we have not detected other problems.
We would like to know if even some of you happened to make the following change. If you have done so we would like to know if you think this could or may not compromise the operation of other features of the software.
Thanks a lot.