Title: Installation problem &#8220;call to undefined function&#8221;
Last modified: August 19, 2016

---

# Installation problem “call to undefined function”

 *  Resolved [magicrichard](https://wordpress.org/support/users/magicrichard/)
 * (@magicrichard)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/installation-problem-call-to-undefined-function-1/)
 * Hi guys,
 * Installed wordpress dozens of times before and never come across this problem,
   which I can’t resolve.
 * On trying to access install.php for the first time I’m being greeted with the
   following error:
 * Fatal error: Call to undefined function get_template_directory() in /home2/magicric/
   public_html/tom/travel/wp-settings.php on line 418
 * The only thing I can think of is that it is being installed on a sub-domain (
   [http://tom.xxxx.co.uk/travel](http://tom.xxxx.co.uk/travel)) But i wouldn’t 
   have thought that would cause this problem, if it caused any problem at all in
   fact!

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/installation-problem-call-to-undefined-function-1/#post-739014)
 * 1. That’s not a subdomain, it is a subdirectory. But it wouldn’t matter – just
   for the sake of correct terminology…
 * 2. An “undefined function…” error always refers to missing or corrupted files.
   In WP 2.5 the function should be defined in the wp-includes/theme.php file on
   line #46. Try to upooad a fresh copy of that file.
 *  Thread Starter [magicrichard](https://wordpress.org/support/users/magicrichard/)
 * (@magicrichard)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/installation-problem-call-to-undefined-function-1/#post-739023)
 * What would a sub-domain be, out of interest?!
 * I’ll try a frseh copy of that file – and report back – thanks!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/installation-problem-call-to-undefined-function-1/#post-739057)
 * subdomain = [http://subdomain.example.com](http://subdomain.example.com)
 *  Thread Starter [magicrichard](https://wordpress.org/support/users/magicrichard/)
 * (@magicrichard)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/installation-problem-call-to-undefined-function-1/#post-739091)
 * When i set up a sub-domain with cpanel it gave me that as the path to upload 
   files to.
 * So i have tom.xxxx.co.uk/travel for where the blog is, but the path is as above!

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

The topic ‘Installation problem “call to undefined function”’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 2 participants
 * Last reply from: [magicrichard](https://wordpress.org/support/users/magicrichard/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/installation-problem-call-to-undefined-function-1/#post-739091)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
