• I just upgraded to WordPress Version 2.0.4

    Everything seems to work fine, except when I try to save a post, or edit a post. I get this error message:

    Fatal error: Call to undefined function: http_build_query() in /path/to/docroot/wordpress/wp-includes/functions.php on line 2430

    Any ideas why?

    Thanks,
    Jonathan

Viewing 9 replies - 1 through 9 (of 9 total)
  • what version of PHP is your host running?
    you might need 5 to run all the functions

    I’ll disagree with the PHP5 necessary statement: http://wordpress.org/about/requirements/

    You may want to re-upload your wp-includes/ folder to make sure everything is there. For the php files, make sure your FTP client is using text mode.

    Handysolo – look at the function it is erroring on – http_build_query()

    it’s pretty much well known there is a compatability issue with php4 and http_build_query()

    the php manual lists it as 5
    http://uk.php.net/http_build_query

    im not saying that is the issue, but it looks the most obvious – without having globals on in php4

    there for there is no need to disagree with any statement unless you know it as fact, merely offer another point of view.

    Awesome, I can retire. I’ve been publically humiliated.
    Thank you, that’s why i keep coming back.

    Meanwhile, I was looking at wp-includes/function-compat.php, line 102.

    The point is WordPress’ requirement is for PHP 4.2 (and up), not 5 (and up). If a core WP file is looking for a PHP 5 function, something must be wrong, eh?

    Not quite. There’s a section of functions-compat.php (in wp-includes/) which tests if ‘http_build_query’ exists, and if it doesn’t, declares its own version of this function.

    Handy is correct, check your files…

    >>Awesome, I can retire. I’ve been publically humiliated.
    Thank you, that’s why i keep coming back.

    why would you have to come back with a comment like that?

    If you cannot discuss an issue without having to come out with curt or needless responses then why is this a “forum” ?

    We’ll all [dis]agree in different ways. And I’ll posit that this isn’t debate class.

    The OP probably doesn’t much care that you and I have disagreed (scroll up and see’s Kaf’s post here on that topic). He just wants answers.

    Want to flame me? Take it to email. Keep the thread on topic.

    Thread Starter sunsparc

    (@sunsparc)

    That was it. I uploaded a new copy of the includes directory and all is well. Thank you very much!

    Jonathan

    Awesome – glad to hear you got it sorted out. Mark this one as [Resolved]? (up at the top of the page)

    Happy blogging!

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

The topic ‘undefined function http_build_query’ is closed to new replies.