WordPress.org

Ready to get started?Download WordPress

Forums

Anyone know how to get rid of this warning? (4 posts)

  1. Zachz
    Member
    Posted 7 years ago #

    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?

  2. flutterby
    Member
    Posted 7 years ago #

    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.

  3. flutterby
    Member
    Posted 7 years ago #

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

  4. flutterby
    Member
    Posted 7 years ago #

    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....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags