SMF Development > Fixed or Bogus Bugs
Warning in Subs-Db-mysql
(1/1)
cleoni:
Hi there,
there is a warning that comes up frequently in my error_log:
PHP Warning: mysql_real_escape_string() expects parameter 2 to be resource, boolean given in /var/www/forum/Sources/Subs-Db-mysql.php on line 132
I am using SMF 2.0.1
Is this something I should worry about?
Yoshi:
Hi,
What action were you doing when you encountered the error? There should be an URL with it.
Also, can you check that line in your code?
The line in my installation is:
--- Code: --- return sprintf('\'%1$s\'', mysql_real_escape_string($replacement, $connection));
--- End code ---
emanuele:
What moods do you have installed?
emanuele:
Cross reference:
http://www.simplemachines.org/community/index.php?topic=423482.msg2969724#msg2969724
the issue should be fixed in 2.1.
Navigation
[0] Message Index
Go to full version