• Resolved Haim

    (@koostamas)


    Hello!

    I have got this warning message several times on my site:

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

    DreamHost helped me with this:

    I was able to reproduce the warnings on your site. It looks like the
    errors are produced by the plugin ‘insert-pages’. When the plugin is
    deactivate, the errors go away but your post are not displayed either.
    You may want to inquire with the plugin support/developer as to why
    you’re getting the ‘mysqli_real_escape_string()’ warnings when the plugin
    is activated.

    For the meantime, to hide the warnings from being displayed, I made
    changes to your wp-config.php in reference to this blog post:

    https://aristath.github.io/blog/wp-hide-php-errors

    However, the site (lantdalok.hu tother with the plugin) seems to work fine.

    I have Insert Pages version: 3.2.3

    What can be done?

    Thanks,

    Tamás

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Paul Ryan

    (@figureone)

    This shouldn’t be caused by Insert Pages, the plugin doesn’t do any direct queries or sanitization. Maybe one of your included pages has a template that uses mysqli_real_escape_string()? I would look through your theme code.

Viewing 1 replies (of 1 total)

The topic ‘Warning: mysqli_real_escape_string()’ is closed to new replies.