@dimchik, You were right. It is an infection.
I am unable to say whether its on first stage or not. I am on Amazon Linux (4.9.20) with nginx 1.9 + php 7.0 + mysql 5.5
The infection didn’t proceed to infect other sites hosted in same host. about 10 wordpress sites.
I do not see similar infection codes.
@generalan, after I replaced things. Everything was fine and normal. I had a “grep” search.
This problem may be serious for someone who just upgraded to PHP 7+. I faced the same, the site was fine in past.
Just add
function mysql_escape_string($string){return mysqli_escape_string($string);}
in top of any functions.php file which you get the error. it should substitute with new function. without going and changing all.
-
This reply was modified 9 years, 6 months ago by gnanakeethan. Reason: noted "top"