WordPress Error related to templates file
-
Hi,
We are looking to migrate a site over to our hosting platform but are hitting an error in WordPress that have not been able to solve. We have migrated the site from an exiting one on another host but are getting the following fatel error:
Fatal error: Uncaught Error: Call to undefined function get_page_template_slug() in /home/domains/vol1/000/2812000/user/htdocs/wp-includes/template.php:427 Stack trace: #0 /home/domains/vol1/000/2812000/user/htdocs/wp-includes/template-loader.php(73): get_page_template() #1 /home/domains/vol1/000/2812000/user/htdocs/wp-blog-header.php(19): require_once(‘/home/domains/v…’) #2 /home/domains/vol1/000/2812000/user/htdocs/index.php(17): require(‘/home/domains/v…’) #3 {main} thrown in /home/domains/vol1/000/2812000/user/htdocs/wp-includes/template.php on line 427
Line 427 in template.php:
$template = get_page_template_slug();
I am able to still login to the Dashboard but the site will not load at all. I would have thought that with it copying the sites detials that these should remain correct but that has not been the case.
From looking into it, it seems that it is $template that is not defined? But I have looked and cannot sort this.
Any help would be much appreciated.
Thanks
- The topic ‘WordPress Error related to templates file’ is closed to new replies.