Title: HELP! Error in Functions.php
Last modified: August 20, 2016

---

# HELP! Error in Functions.php

 *  [whittem2005](https://wordpress.org/support/users/whittem2005/)
 * (@whittem2005)
 * [14 years ago](https://wordpress.org/support/topic/help-error-in-functionsphp/)
 * Hi there
 * I just got a job to add a blog to a clients existing WordPress site and its all
   gone crazy. Her previous developer had not enabled sidebars so I went in and 
   added the code to create the sidebar functionality and as soon as i tried to 
   hit save I got a 500 internal error message. Since this point the clients site
   and the admin login have all been down.
 * I managed to get ftp access and enable error logging and now when I visit the
   site I am given this error message:
    “ Notice: Use of undefined constant TEMPLATE_URL–
   assumed ‘TEMPLATE_URL’ in /home/linweb01/s/saplingdesign.co.uk/user/htdocs/wp-
   includes/functions.php on line 2
 * Fatal error: Call to undefined function get_bloginfo() in /home/linweb01/s/saplingdesign.
   co.uk/user/htdocs/wp-includes/functions.php on line 2″
 * The actual line of code it is referring too is this:
    “define(TEMPLATE_URL, get_bloginfo(‘
   template_url’) . ‘/’);”
 * If anybody, anywhere can perhaps work with me to fix this today I would be so
   grateful as the client naturally thinks I have screwed her site up.
 * Thanks in advance.
 * Regards
    Paul

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [14 years ago](https://wordpress.org/support/topic/help-error-in-functionsphp/#post-2797246)
 * Using an FTP tool such as FileZilla or your host provided file manager, rename
   each theme and plugin folder to old-‘name’, making sure the default theme is 
   present (do not rename)…try to login.
 * Also verify [wp-config.php](http://codex.wordpress.org/Editing_wp-config.php)
   or web.config if on IIS…
 *  Thread Starter [whittem2005](https://wordpress.org/support/users/whittem2005/)
 * (@whittem2005)
 * [14 years ago](https://wordpress.org/support/topic/help-error-in-functionsphp/#post-2797248)
 * can you confirm what you mean by this “Also verify wp-config.php or web.config
   if on IIS…”
 * Also, I tried renaming plugins and moving all the themes out of the themes folder
   except for the twenty eleven theme and i still get the same error message.
 * The site in question is [http://www.samplingdesign.co.uk](http://www.samplingdesign.co.uk)
 *  Thread Starter [whittem2005](https://wordpress.org/support/users/whittem2005/)
 * (@whittem2005)
 * [14 years ago](https://wordpress.org/support/topic/help-error-in-functionsphp/#post-2797251)
 * ps. I can provide the functions.php file if anybody is good with this sort of
   stuff.I’ve read all about spaces and numerous issues but dont know where to begin.
 * As I say, I seem unable to even get the default template working
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [14 years ago](https://wordpress.org/support/topic/help-error-in-functionsphp/#post-2797318)
 * I am unable to connect to site at this time….
 * If it’s not your theme files and not your plugins, then what is left is core 
   WP files (or a corrupt db).
 * wp-config.php is a required file in the root and needs to configured properly.
   The link provided explains this well. IIS is a type of server environment (provided
   by many hosts and created by Microsoft).

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

The topic ‘HELP! Error in Functions.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/help-error-in-functionsphp/#post-2797318)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
