• whittem2005

    (@whittem2005)


    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

    (@swansonphotos)

    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 or web.config if on IIS…

    Thread Starter whittem2005

    (@whittem2005)

    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

    Thread Starter whittem2005

    (@whittem2005)

    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

    (@swansonphotos)

    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.