I also got the same problem, so I printed the stack trace of the problem.
Here I attached a part of the stack trace result.
[4] => Array
(
[file] => /var/www/html/wordpress/wp-content/plugins/avh-first-defense-against-spam/class/avh-fdas.db.php
[line] => 249
[function] => update
[class] => wpdb
[object] => wpdb Object
I also print the argument $string in the function in wp-db.php, and it is an array which has ip, added, lastseen and spam keys.
Please solve the issue.
Thanks
Yup – Me too (error code = Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /….)
Error is visible at top of public facing website home page.
AVH First Defense Against Spam Plugin version 3.7.2
WordPress version 4.5.3 (en_GB)
MySQL version 5.6.21
PHP version 5.5.26
Temporary working solution – Disabled AVH Plugin
Please fix!
Thank you
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /www/htdocs/w01082ee/kuechenlatein/wp-includes/wp-db.php on line 1129
Visible at top of public facing website/blog
Solution: Plugin disabled
AVH First Defense Against Spam Plugin version 3.7.2
WordPress version 4.5.3 German
MySQL version 5.5.49
PHP version 5.4.45
Please fix! Thanks
Same issue here on multiple sites that I support.
AC
(@pixelmommy)
Same database error. Is there a way to go back to the previous version until this is fixed? Unfortunately I was dumb and did not back up the previous copy.
Edited to add: figured out how to install the previous version.
There just was an update ! Seems, the problem isn’t solved.
Should be fixed per update 3.7.3
Thread Starter
artbiz
(@artbiz)
Thanks for the update. Unfortunately when I try to update I get the error message below, even though the plugin is listed under “Updates” and can be selected for updating.
An error occurred while updating AVH First Defense Against Spam Plugin: Update package not available.
Is this still a problem?
I just saw another thread with that problem but I can’t reproduce. I installed 3.7.2 and the update went smoothly. The update process is controlled by WordPress core.
Thread Starter
artbiz
(@artbiz)
Looks like it just needed time. Updates are working now. Thanks for the fix.