• orowland

    (@orowland)


    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

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

    (@howdy_mcgee)

    You shouldn’t have to modify any of the core files. Everything in the wp-includes folder and wp-admin folder ( and all their subfolders ) shouldn’t need any debugging or modifications. If the error stems from one of these core files then I would assume something was lost in the migration. Try reinstalling WordPress or replacing the wp-admin and wp-includes folders with fresh folders from the current version of WordPress.

    russbruz

    (@russbruz)

    I’m having a similar problem.

    Fatal error: Uncaught Error: Call to undefined function et_is_woocommerce_plugin_active() in /homepages/38/d739335324/htdocs/wfmc/wp-content/themes/Divi/includes/builder/autoload.php:186 Stack trace: #0 /homepages/38/d739335324/htdocs/wfmc/wp-content/themes/Divi/includes/builder/framework.php(31): require_once() #1 /homepages/38/d739335324/htdocs/wfmc/wp-content/themes/Divi/et-pagebuilder/et-pagebuilder.php(13): require_once(‘/homepages/38/d…’) #2 /homepages/38/d739335324/htdocs/wfmc/wp-includes/class-wp-hook.php(288): et_setup_builder(”) #3 /homepages/38/d739335324/htdocs/wfmc/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #4 /homepages/38/d739335324/htdocs/wfmc/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /homepages/38/d739335324/htdocs/wfmc/wp-settings.php(523): do_action(‘init’) #6 /homepages/38/d739335324/htdocs/wfmc/wp-config.php(90): require_once(‘/homepages/38/d…’) #7 /homepages/38/d739335324/htdocs/wfmc/wp-load.php(37): require_once(‘/homepages/38/d…’) #8 /homepages/38 in /homepages/38/d739335324/htdocs/wfmc/wp-content/themes/Divi/includes/builder/autoload.php on line 186

    Should I do the same thing or start another post?

    Howdy_McGee

    (@howdy_mcgee)

    @russbruz You 100% should start another post. The et_is_woocommerce_plugin_active() function is not WordPress core but specific to a plugin or theme you have installed.

    russbruz

    (@russbruz)

    Thanks Howdy_McGee for the advice. I started a new post at: https://www.ads-software.com/support/topic/fatal-error-3422/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Error related to templates file’ is closed to new replies.