Support » Fixing WordPress » Warning wp-db.php on line 1172

  • From time to time my site has presented these warnings in the log:

    Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /.. mypath … /wp-includes/wp-db.php on line 1172

    Is there any way to find out which module might be causing this warning?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    The data returned by debug_backtrace() should give you a pretty good clue. It should be used in conjunction with a custom error handler. This stackoverflow topic gives some possible solutions. The accepted xdebug answer might be unattainable for you, but one of the scripts below that could be helpful.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning wp-db.php on line 1172’ is closed to new replies.