WordPress.org

Ready to get started?Download WordPress

Forums

Warning mysql real escape string? (8 posts)

  1. zefdesign
    Member
    Posted 5 years ago #

    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
  2. zefdesign
    Member
    Posted 5 years ago #

    I've tried googling, and obvious things like checking for a spaces in code...

  3. zefdesign
    Member
    Posted 5 years ago #

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

  4. joshmac
    Member
    Posted 5 years ago #

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

  5. zefdesign
    Member
    Posted 5 years ago #

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

  6. whooami
    Member
    Posted 5 years ago #

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

  7. zefdesign
    Member
    Posted 5 years ago #

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

  8. zefdesign
    Member
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic