• endertopaloglu

    (@endertopaloglu)


    I brought the site live from a local computer with all in one migration. After the move, the home page turned white.

    Even if I set debug to wp-config.php file to true it doesn’t show error message.

    When I connected with ftp, I saw the “error_log” file and it says the following error code inside:

    [21-Feb-2020 20:07:49 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function flatsome_html_classes() in /home/u9276536/public_html/wp-content/themes/akgun-grup/header.php:2
    Stack trace:
    #0 /home/u9276536/public_html/wp-includes/template.php(722): require_once()
    #1 /home/u9276536/public_html/wp-includes/template.php(671): load_template('/home/u9276536/...', true)
    #2 /home/u9276536/public_html/wp-includes/general-template.php(41): locate_template(Array, true)
    #3 /home/u9276536/public_html/wp-content/themes/akgun-grup/page-transparent-header.php(5): get_header()
    #4 /home/u9276536/public_html/wp-includes/template-loader.php(98): include('/home/u9276536/...')
    #5 /home/u9276536/public_html/wp-blog-header.php(19): require_once('/home/u9276536/...')
    #6 /home/u9276536/public_html/index.php(17): require('/home/u9276536/...')
    #7 {main}
      thrown in /home/u9276536/public_html/wp-content/themes/akgun-grup/header.php on line 2

    These are the codes in the header.php file.

    <!DOCTYPE html>
    <!--[if IE 9 ]> <html <?php language_attributes(); ?> class="ie9 <?php flatsome_html_classes(); ?>"> <![endif]-->
    <!--[if IE 8 ]> <html <?php language_attributes(); ?> class="ie8 <?php flatsome_html_classes(); ?>"> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?> class="<?php flatsome_html_classes(); ?>"> <!--<![endif]-->
    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    
        <link rel="profile" href="https://gmpg.org/xfn/11" />
        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
        <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); // Body classes is added from inc/helpers-frontend.php ?>>
    
    <a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'flatsome' ); ?></a>
    
    <div id="wrapper">
    
    <?php do_action('flatsome_before_header'); ?>
    
    <header id="header" class="header <?php flatsome_header_classes();  ?>">
       <div class="header-wrapper">
        <?php
            get_template_part('template-parts/header/header', 'wrapper');
        ?>
       </div><!-- header-wrapper-->
    </header>
    
    <?php do_action('flatsome_after_header'); ?>
    
    <main id="main" class="<?php flatsome_main_classes();  ?>">
Viewing 1 replies (of 1 total)
  • Joy

    (@joyously)

    That first line tells you everything
    Call to undefined function flatsome_html_classes() in /home/u9276536/public_html/wp-content/themes/akgun-grup/header.php:2

    Your theme’s header.php is calling a function flatsome_html_classes on line 2 that does not exist.
    Maybe you didn’t copy the entire theme in the migration?
    Find that function and make sure it is in the theme. If you can’t, you need to log in and switch themes.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress White Screen (Uncaught Error: Call to undefined function)’ is closed to new replies.