WordPress.org

Support

Support » How-To and Troubleshooting » Anyone know how to get rid of this warning?

Anyone know how to get rid of this warning?

  • This warning appears at the top of my blog when I view it.

    Warning: rawurlencode() expects parameter 1 to be string, array given in /home/wirefire/public_html/wp-includes/classes.php on line 1658

    It wasn’t there last night. WTF?

Viewing 3 replies - 1 through 3 (of 3 total)
  • yep i had the same problem and i was having a hard time following all those threads that i found….i really dont know anything about this whole coding business, but this should work.

    ok you download a copy of your classes.php file from your wp-includes folder. then open it up in a program that will let you edit it. then search the document for “rawurlencode” you should get a line that looks like this:

    $this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);

    change that line to say this:

    $this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar[0]]);

    that should do it. it worked for me.

    oh wait wait…..if you do that then none of your other pages work. nevermind. now i dont know what to do

    ok i got it this time….fo realz. ok it’s probably being caused by a plugin. i had a plugin that was allowing me to retrieve pictures from facebook. it was called facebook photos. i deactivated it and the error is gone. i dont know if you have this too….

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Anyone know how to get rid of this warning?’ is closed to new replies.
Skip to toolbar