FATAL ERROR: Call to undefined function get_template_directory() in
-
PLEASE HELP! I have just tried to amend code in the function.php file which has given me the error
Fatal error: Call to undefined function get_template_directory() in /home/reusable/re-wrap-it/wp-includes/functions.php on line 5
I restored the to original file and the error is still coming up.
I need to get a clients website back up ASAP so any help would be most appreciated.
The file consists of the following:
<?php
// ==================================================================
// Included libraries
// ==================================================================
require_once( get_template_directory() . ‘/includes/ace_functions.php’ );
require_once( get_template_directory() . ‘/includes/ace_import_export.php’ );
require_once( get_template_directory() . ‘/includes/ace_options.php’ );
require_once( get_template_directory() . ‘/includes/ace_theme_customize.php’ );
require_once( get_template_directory() . ‘/includes/ace_updates.php’ );
require_once( get_template_directory() . ‘/includes/custom_post.php’ );
require_once( get_template_directory() . ‘/includes/custom_widgets.php’ );
require_once( get_template_directory() . ‘/includes/meta_boxes.php’ );
require_once( get_template_directory() . ‘/includes/modules.php’ );
require_once( get_template_directory() . ‘/includes/quicktags.php’ );
require_once( get_template_directory() . ‘/includes/shortcodes.php’ );
require_once( get_template_directory() . ‘/includes/widgets.php’ );Thank you.
The topic ‘FATAL ERROR: Call to undefined function get_template_directory() in’ is closed to new replies.