Title: undefined function http_build_query
Last modified: August 18, 2016

---

# undefined function http_build_query

 *  [sunsparc](https://wordpress.org/support/users/sunsparc/)
 * (@sunsparc)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/)
 * 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)

 *  [phuckd](https://wordpress.org/support/users/phuckd/)
 * (@phuckd)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465540)
 * what version of PHP is your host running?
    you might need 5 to run all the functions
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465541)
 * I’ll disagree with the PHP5 necessary statement: [http://wordpress.org/about/requirements/](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.
 *  [phuckd](https://wordpress.org/support/users/phuckd/)
 * (@phuckd)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465544)
 * 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](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.
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465546)
 * 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.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465547)
 * 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…
 *  [phuckd](https://wordpress.org/support/users/phuckd/)
 * (@phuckd)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465548)
 * >>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” ?
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465549)
 * 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](https://wordpress.org/support/users/sunsparc/)
 * (@sunsparc)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465773)
 * That was it. I uploaded a new copy of the includes directory and all is well.
   Thank you very much!
 * Jonathan
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465774)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [Chris_K](https://wordpress.org/support/users/handysolo/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-http_build_query/#post-465774)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
