• Dear all,

    since a few weeks I keep getting this error on my blog:

    Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /kunden/399256_32289/webseiten/wordpress/wp-includes/wp-db.php on line 1171

    First I thought this in an error caused by the gallery plugin (envira) which I am using. But together with envira support, I was able to track it down to the ploylang plugin. After I disable polylang, everything works fine.
    I there a way to bypass something to ignore the Envira string in the post? It looks like this: [envira-gallery id=”xxx”]

    I am using polylang version 2.23
    PHP Version on my site is 5.6.3.0 if this is important (does not work with a newe Version neither..)

    Thanks a lot!
    Sebastian

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    Hi,

    I just made a test. Install Envira Gallery. Create a gallery. Add 3 pictures. Save. Create a new post. Add the gallery shortcode. Save. View the post on frontend. I don’t get any error. The gallery is displayed correctly.

    To go further, a stack trace of the error would be helpful.

    Thread Starter Sebi83

    (@sebi83)

    Hi Chouby,

    thank you.
    Ok, were can I get a stack trace? Is there some kind of logfile for that?

    Thanks!
    Sebastian

    • This reply was modified 7 years, 1 month ago by Sebi83.
    Plugin Author Chouby

    (@chouby)

    I obtain it with xdebug (a module activated from the php.ini). Depending on your host, you may have better luck to activate this on a local install.

    Thread Starter Sebi83

    (@sebi83)

    Ok, thanks. I actually just looked into my php.ini on my server and compared it with a default file in my webhosters configuration.
    Since I did not change anything I just switched it back to default – and it is working now. Hopefully it will stay like this now ??

    Thanks anyway,
    Sebastian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp-db.php error when polylang an Envira enabled’ is closed to new replies.