WARNING(2): "count(): Parameter must be an array or an object that implements Countable"

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 31809120 bytes) in /var/www/web34/htdocs/gx/system/core/logging/LogEvent.inc.php on line 579