• Resolved agr42

    (@agr42)


    I can’t access my admin or website am getting the following error message:

    Fatal error: Call to undefined function get_template_directory() in /home/content/51/10755751/html/web/indiacool/wp-includes/functions.php on line 17

    The problem occurred when I tried to change some code in my theme’s ‘function.php’

    Via FTP I’ve replaced the ‘function.php’ file with the original, unedited version. But I am still getting this error code.

    Any ideas on how to fix this problem, so I can access my admin panel again will be greatly appreciated.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Please clear both local browser cache after making sure to manually clear any server cache in use. You will need to discover which caching plugin and/or host provided server caching is in use to do so.

    you seem to have replaced the wrong funtions.php; the error messages refers to the /wp-includes/ folder, not your theme’s folder /wp-content/themes/yourthemename/.

    use FTP to put an original copy of the /wp-includes/functions.php into the /wp-includes/ folder

    Thread Starter agr42

    (@agr42)

    Thanks for your help, that workded

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

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