Title: Fatal error: Call to undefined function
Last modified: August 19, 2016

---

# Fatal error: Call to undefined function

 *  Resolved [rdover](https://wordpress.org/support/users/rdover/)
 * (@rdover)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-9/)
 * I’ve uploaded the files to a subfolder called blog. When I go to run the install
   I get this message:
    Fatal error: Call to undefined function: get_header() in/
   home/rdover/public_html/blog/index.php on line 2
 * Here are my MySQL connection strings:
 * Perl $dbh = DBI->connect(“DBI:mysql:rdover_WPblog:localhost”,
    “rdover_rdover”,”
   <PASSWORD HERE>”); PHP $dbh=mysql_connect (“localhost”, “rdover_rdover”, “<PASSWORD
   HERE>”) or die(‘Cannot connect to the database because: ‘ . mysql_error()); mysql_select_db(“
   rdover_WPblog”);
 * I set the blog name as wpblog and my username as rdover. I see this has added
   a rdover_ in front of both of those. Should I put that in my php file? Here’s
   the lines in my PHP:
    <?php // ** MySQL settings ** // define(‘DB_NAME’, ‘WPblog’);//
   The name of the database define(‘DB_USER’, ‘rdover’); // Your MySQL username 
   define(‘DB_PASSWORD’, ‘####’); // …and password define(‘DB_HOST’, ‘localhost’);//
   99% chance you won’t need to change this value

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-9/#post-823816)
 * You did NOT upload all the files.
    The error has nothing to do with he database.
   It says you didn’t upload all the files or the some of them are corrupted.
 *  Thread Starter [rdover](https://wordpress.org/support/users/rdover/)
 * (@rdover)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-9/#post-823836)
 * I think I know why I got that message above. I just went to [http://www.mydomain.com/blog](http://www.mydomain.com/blog),
   however when I go to [http://www.mydomain.com/blog/wp-admin/install.php](http://www.mydomain.com/blog/wp-admin/install.php)
   I get a “page can not be found” error. There is no wp-admin folder where I unpacked
   the files, so I couldn’t ftp it to the server. There are 491 files in the local
   folder and 491 files on the server.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-9/#post-823837)
 * Which means your unzip utility sucks. Or you don’t know how to use it.
    When 
   unzipping in the normal way there should be 3 folders and about 20 files.
 *  Thread Starter [rdover](https://wordpress.org/support/users/rdover/)
 * (@rdover)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-9/#post-823842)
 * I just downloaded the file wordpress-2.6.zip again. Actually twice more, and 
   got the same thing both times.
    I opened it with WinZip (which doesn’t suck as
   it’s one of the most widely used programs out there) and it showed that there
   were a total of 563 files in the zip file. Doesn’t mention anything about folders.
 * Don’t know why the difference.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-9/#post-823845)
 * If it doesn’t suck… then read my second guess above: your don’t know how to use
   it.
    In every decent unzip utility there must be an option that says something
   like “keep the original folder structure” or something similar.
 *  Thread Starter [rdover](https://wordpress.org/support/users/rdover/)
 * (@rdover)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-9/#post-823852)
 * Before reading your last quote, I figured it probably was due to the folders 
   missing, and I re-unzipped the file with the “use folder names” box selected,
   and it did unzip the files AND folders.
 * It’s not that I don’t know how to use it, it’s that I didn’t know there were 
   folders to be included.
 * However, I will say this. You are pretty rude. Both posts were pretty much uncalled
   for in the tone with which you did them.

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

The topic ‘Fatal error: Call to undefined function’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [get_header](https://wordpress.org/support/topic-tag/get_header/)
 * [undefined function](https://wordpress.org/support/topic-tag/undefined-function/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 2 participants
 * Last reply from: [rdover](https://wordpress.org/support/users/rdover/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-9/#post-823852)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
