Project

General

Profile

Bug #2077

PHP 5.5. compatibility - Parsing Error: Call to undefined function mysql_errno() on line 160 in file includes/classes/ia.core.mysqli.php

Added by Daan Gosman over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
Start date:
March 05, 2015
Due date:
% Done:

100%

Estimated time:

Description

Parsing Error: Call to undefined function mysql_errno() on line 160 in file includes/classes/ia.core.mysqli.php

Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:
mysqli_errno()
PDO::errorCode()

Version 3.2.7

History

#1

Updated by Vasily Bezruchkin over 5 years ago

Hi Daan

Thanks for your report.

I suppose you only see this error during the installation as our installed version has a way to use mysqli connector. You can configure it in the includes/config.inc.php:

define('INTELLI_CONNECT', 'mysql');

should be changed to
define('INTELLI_CONNECT', 'mysqli');

We will definitely make installation compatible with the latest 5.5 version.

Thanks!

#2

Updated by Vasily Bezruchkin over 5 years ago

And another possible solution:

edit includes/classes/ia.core.mysqli.php

find this line:

if (!$result && 2013 != mysql_errno())

and change it to:

if (!$result && 2013 != mysqli_errno($this->_link))

issue will disappear.

#3

Updated by Vasily Bezruchkin over 5 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Fixed. Commit:63e5e4af36cf7152a3883708f318d917dafe4a47

Also available in: Atom PDF