• i tried to add a line to functions.php to get a pre written text in the post editor, but after i updated it my entire site got a fatal error.
    I went back and removed the added text but it still had the error.
    i then copied the original functions over the old one and now i get a new fatal error code that says: (Fatal error: Call to undefined function get_template_directory() in /home/sarevok/public_html/wp-includes/functions.php on line 13)
    Anyone that can help me with this? i cant log into my site at all so i cant edit anything from there..

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you edit it in the theme editor of WordPress? Do you have a cache plugin installed? Do you have a copy of the original file?

    Over write the function.php with ftp using the original. Log in to admin area and empty cache (if you are using caching plugin).

    Empty your browser cache.

    Thread Starter sarevok2k

    (@sarevok2k)

    yes i edited it in the theme editor, no i dont have such a plugin, and yes i copied the orginal file but still i get the error.
    Tried to log in through http://www.domainname.com/wp-admin but the fatal error showed there also
    Emptied my cach also but no use.
    Found the functions.php file and line 13 is:
    require_once(get_template_directory().’/functions/framework.php’);

    any more ideas?
    thanks for the reply

    If your theme hasn’t been modified, overwrite it with a fresh copy using the ftp.

    Thread Starter sarevok2k

    (@sarevok2k)

    Did it but no use.. still get the same error. guess il just reinstall wordpress and start from scratch.. luckily the site is just a couple of days old.
    Thanks for your help.

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

The topic ‘Getting fatal error after editing functions.php’ is closed to new replies.