• Resolved Wes

    (@wlefebvre)


    Hello, this line keeps repeating when I go to add a post or page. I can still add the post or page, but have to scroll way down. When I disable the plugin it goes away.

    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /public_html/wp-includes/wp-db.php on line 117

    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author apasionados

    (@apasionados)

    Hi there,

    Which PHP version is your server running? This should only happen with PHP 7.1 in some specific server configurations. Can you confirm the PHP version?

    Best regards from Spain.

    Thread Starter Wes

    (@wlefebvre)

    Hey,
    Here’s the PHP version, plus a couple of others just in case. THanks!

    Apache Version 2.2.31
    PHP Version 5.4.45
    MySQL Version 5.5.51-38.2

    Plugin Author apasionados

    (@apasionados)

    Thanks for the info. We will have to check it with your PHP version. We are not running any website with a PHP version lower tan 5.6 (the lowest supported version that receives security updates).

    We let you know if we find a solution for PHP 5.4.x.

    Thread Starter Wes

    (@wlefebvre)

    Okay, it looks like my host allows me to upgrade my php to 5.6.x. I’ll try that too and let you know. Hopefully I don’t break anything else… ??

    Thread Starter Wes

    (@wlefebvre)

    Okay, i tried changing the plugin to be processed with 5.6, 7.0 and 7,1, but all delivered nearly the same result, just slightly different “on line” number. 1171, 1173

    Warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in /home/apradmin/public_html/wp-includes/wp-db.php on line 1171

    Plugin Author apasionados

    (@apasionados)

    Thanks for the info. We will give you an update in the next days.

    Plugin Author apasionados

    (@apasionados)

    Hi there,

    Unfortunately we have been trying all morning to reproduce the error with our development sites and we have not succeded to reproduce it.

    Do you have DEBUG enabled in wp-config.php?

    We would need some more data to track the error. The function that throws the error is not used in the plugin: mysql_real_escape_string and we don’t know if there are any dependencies with it.

    Thread Starter Wes

    (@wlefebvre)

    Hi,
    Wow, thank you for spending so much time on this! I feel really bad considering it’s a free plugin and my template is pretty old. Anyway, I temporarily enabled it then tried to ad a post and have the logs from that.

    What’s the best way to send it to you?

    P.S. I’m back on php 5.4, since I don’t completely know what I’m doing in that regard. When I did enable the other versions of php, it was on this specific plugin’s directory only through cpanel. I did a couple of tests by changing the home directory at the same time, but that didn’t seem to help and it only messed up another plugin on my site.

    Thanks,

    Wes

    Plugin Author apasionados

    (@apasionados)

    Send them by email to info AT apasionados . es and we will have a look.

    By the way, if your site Works with higher PHP versions, we would definetly switch to a higher versión. 7 and 7.1 give great performance boosts.

    Thread Starter Wes

    (@wlefebvre)

    Sent. Thank you!

    Plugin Author apasionados

    (@apasionados)

    We have been checking the log files this morning and we are very sorry, but we can’t help you to solve the problem. We have no idea what is causing this error and we have not been able to reproduce it on any of our web hostings.

    Best regards from Spain.

    Thread Starter Wes

    (@wlefebvre)

    No problem. Thank you for trying!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Warning: mysql_real_escape_string() expects parameter 1 to be string’ is closed to new replies.