« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: mysql_real_escape_string() expects parameter 2 to be resource, object given 
  Error type/ Nr.: Warning - 2 
  File: /var/www/element/data/www/vsl-gates.ru/manager/includes/extenders/dbapi.mysql.class.inc.php 
  Line: 119 
  Line 119 source: $s = mysql_real_escape_string($s, $this->conn);  
 
Parser timing
  MySQL: 0.0010 s(0 Requests)
  PHP: 0.0095 s 
  Total: 0.0105 s 
Error while inserting event log into database.