Deprecated: mysql_escape_string

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pgh2011
Posts: 11
Joined: Tue Feb 28, 2017 7:36 am

Deprecated: mysql_escape_string

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Deprecated: mysql_escape_string

Post 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
Former Nagios employee
https://www.mcapra.com/
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Deprecated: mysql_escape_string

Post by tmcdonald »

Thanks for the assist, @mcapra!
Former Nagios employee
Locked