Page 1 of 1

Deprecated: mysql_escape_string

Posted: Mon Jul 03, 2017 4:23 am
by pgh2011
Hi,

With many pages in de configuration I get:

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /usr/local/nagiosxi/html/includes/db.inc.php on line 388

Is there a fix for this?

Regards, Patrick.

Re: Deprecated: mysql_escape_string

Posted: Mon Jul 03, 2017 11:21 am
by mcapra
On the machine, what are the versions of:
  • Nagios XI
  • CentOS / RHEL
  • PHP
These commands can be helpful for the last 2 items:

Code: Select all

cat /etc/*lease
php -v

Re: Deprecated: mysql_escape_string

Posted: Wed Jul 05, 2017 10:28 am
by tmcdonald
Thanks for the assist, @mcapra!