• We are getting the following errors when editing certain users…

    Warning: addslashes() expects parameter 1 to be string, object given in /home/xxxxx/public_html/testsite/wp-includes/functions.php on line 1526

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxx/public_html/testsite/wp-includes/functions.php:1526) in /home/xxxxx/public_html/testsite/wp-includes/pluggable.php on line 934

    As said, it is happening with certain users: going to the Edit User page, and even clicking Update Usder without changing anything produces the error.

    We’ve removed all plugins and changed the theme back to Twenty Eleven 1.2 and the errors still occur with the same users. We also tried rolling back to wordpress 3.2 with no success.

    Any advice is most welcome.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I experience the same problem but on pdo/db.php which is part of “PDO (SQLite) For WordPress” plugin.

    PHP Warning: addslashes() expects parameter 1 to be string, array given in /home/www/wordpress-3.3/wp-content/pdo/db.php on line 117

    I am on WordPress v3.3.

    @arachma1
    You can find a solution here with a custom addslashes() function:
    http://pdp7.org/blog/?p=75

    The post says the patch should not be needed any more, however the error was appearing on a new installation on wp v3.3.2

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning: addslashes() expects parameter 1 to be string’ is closed to new replies.