Title: Fatal Error: Undefined Function
Last modified: August 18, 2016

---

# Fatal Error: Undefined Function

 *  [mizabe](https://wordpress.org/support/users/mizabe/)
 * (@mizabe)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/)
 * On my main page where my wordpress should load, I get this error:
 * Fatal error: Call to undefined function: bloginfo() in /home/brokenl/public_html/
   mindy/wp/wp.php on line 9
 * But on Line 9 is what came in the original document:
 * <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset
   =<?php echo get_settings(‘blog_charset’); ?>” />
 * How do I fix this?

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-210947)
 * Assuming you’re running 1.5.1, it’s a bug:
 * [http://trac.wordpress.org/ticket/1353](http://trac.wordpress.org/ticket/1353)
 * Best solution is to upgrade to 1.5.1.1, or at least replace the wp-db.php file
   in wp-includes/:
 * [http://trac.wordpress.org/file/trunk/wp-includes/wp-db.php?rev=2598&format=raw](http://trac.wordpress.org/file/trunk/wp-includes/wp-db.php?rev=2598&format=raw)
 * But 1.5.1.1 fixes a number of other annoying bugs, so it’s the recommended option.
 *  Thread Starter [mizabe](https://wordpress.org/support/users/mizabe/)
 * (@mizabe)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-210951)
 * If 1.5.1.1 is the one on the download page, that is the one that I’m using. I
   tried replacing the wp-db.php page but that did nothing, I’m still getting the
   same error.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-210952)
 * The issue is that the error is masking a somewhat different problem. The bloginfo()
   function is a WordPress one, and if it’s not defined to all intent *within* WordPress,
   then something else is going on here. Unfortunately I can’t access your site (
   that is, at all), so I can’t help in any digging on this.
 *  Thread Starter [mizabe](https://wordpress.org/support/users/mizabe/)
 * (@mizabe)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211042)
 * Oh, I never updated my profile, my new site is at [http://brokenlife.org/mindy/1.php](http://brokenlife.org/mindy/1.php)
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211067)
 * So you’re including wp.php in this page? This needs to be made WordPress-aware
   by having the following at the top of your PHP template (either 1.php or wp/wp.
   php):
 * `<?php
    require_once('./wp-blog-header.php'); ?>
 * If you place it in the 1.php document, change the require line to:
 * `require_once('./wp/wp-blog-header.php');`
 * Just make sure to provide the proper path (depending on where you place it) to
   wp-blog-header.php.
 *  Thread Starter [mizabe](https://wordpress.org/support/users/mizabe/)
 * (@mizabe)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211115)
 * That’s already in my wp.php page though?
 *  [shizuki](https://wordpress.org/support/users/shizuki/)
 * (@shizuki)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211266)
 * Fatal error: Call to undefined function: get_header() in /home/wildx/public_html/
   spirit/wordpress/wp-admin/index.php on line 1
 * What did I do wrong?
 *  [bethdean](https://wordpress.org/support/users/bethdean/)
 * (@bethdean)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211669)
 * I am getting this same error and I’m also running the newest release, did you
   ever get it fixed?
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211670)
 * You replaced the root WP index file with another and so WP is not being included.
   Reupload the index file and only edit the index file in the theme directory. 
   Just a guess.
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211671)
 * It would also be helpful if your profile link actually pointed to your blog as
   that is what we are here about 😉
 *  [Jonathan Landrum](https://wordpress.org/support/users/jonlandrum/)
 * (@jonlandrum)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211696)
 * I’m having the same problem, but I’ve only noticed it on my 404 page. I was trying
   to modify it and was getting an error that the file didn’t exist. I modified .
   htaccess to point directly to the file and am now getting the above mentioned
   get_header() error. I deleted the main index.php and uploaded a fresh one, but
   that didn’t work, either.
 * >>[http://www.jonlandrum.com/foo](http://www.jonlandrum.com/foo)
 *  [Jonathan Landrum](https://wordpress.org/support/users/jonlandrum/)
 * (@jonlandrum)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211697)
 * Any ideas?

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

The topic ‘Fatal Error: Undefined Function’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 12 replies
 * 6 participants
 * Last reply from: [Jonathan Landrum](https://wordpress.org/support/users/jonlandrum/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function/#post-211697)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
