WordPress.org

Support

Support » How-To and Troubleshooting » Warning mysql real escape string?

Warning mysql real escape string?

  • Out of nowhere I keep getting this error message, I’m unable to edit pre existing posts now. What the hell does it mean? Cheers.

    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/zef/public_html/akira/wp-includes/wp-db.php on line 450
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/zef/public_html/akira/wp-includes/wp-db.php:450) in /home/zef/public_html/akira/wp-includes/pluggable.php on line 865
Viewing 7 replies - 1 through 7 (of 7 total)
  • I’ve tried googling, and obvious things like checking for a spaces in code…

    Help please I can’t build my website if I can’t solve this?

    Make sure that there are not blank lines at the end of those files. It there are, delete the blank lines.

    I’m afraid I tried it and got exactly the same errors..

    whooami

    @whooami

    Member

    thats the result of a plugin. is it something you are writing?

    Thank you it turns out it was custom field template plugin. An upgrade sorted it.

    Turns out I was wrong getting the same error message again. It’s just Custom Field Template that is causing it… How do I sort this?

    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/zef/public_html/akira/wp-includes/wp-db.php on line 450
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/zef/public_html/akira/wp-includes/wp-db.php:450) in /home/zef/public_html/akira/wp-includes/pluggable.php on line 865
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Warning mysql real escape string?’ is closed to new replies.
Skip to toolbar