Aynı tema aynı sunucuda aynı ayarlar ile sorunsuz çalışırken ana domainde bu hatayı alıyorum . Ücretli ücretsiz yardımcı olabilirmisiniz?


Debug logu

Alıntı
Fatal error: Uncaught Error: Call to undefined function gbot() in /var/www/vhosts/domain.com/httpdocs/wp-content/themes/publisher/header.php:14 Stack trace: #0 /var/www/vhosts/domain.com/httpdocs/wp-includes/template.php(730): require_once() #1 /var/www/vhosts/domain.com/httpdocs/wp-includes/template.php(676): load_template('/var/www/vhosts...', true, Array) #2 /var/www/vhosts/domain.com/httpdocs/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #3 /var/www/vhosts/domain.com/httpdocs/wp-content/themes/publisher/page.php(13): get_header() #4 /var/www/vhosts/domain.com/httpdocs/wp-includes/template-loader.php(106): include('/var/www/vhosts...') #5 /var/www/vhosts/domain.com/httpdocs/wp-blog-header.php(19): require_once('/var/www/vhosts...') #6 /var/www/vhosts/domain.com/httpdocs/index.php(17): require('/var/www/vhosts...') #7 {main} thrown in /var/www/vhosts/domain.com/httpdocs/wp-content/themes/publisher/header.php on line 14
---------

<?php
/**
 * header.php
 *
 * The template for displaying the header.
 *
 * @author    BetterStudio
 * @package   Publisher
 * @version   5.0.0
 */

// Prints all codes before <body> tag.
// Location: "views/general/header/_common.php"
if(gbot()==0){
publisher_get_view( 'header', '_common', 'general' );

publisher_get_view( 'header', 'off-canvas', 'general' );

/**
 * Fires before ".main-wrap" start
 *
 * @since 1.9.0
 */
do_action( 'publisher/main-wrap/before' );

// Activates duplicate posts removal temporarily for not counting posts inside mega menu
publisher_set_global( 'disable-duplicate-posts', true );
publisher_set_blocks_title_tag( 'p', true );


//
// Header locked inside page layout
//
{
    $_check = array(
        'boxed'      => '',
        'full-width' => '',
        'stretched'  => '',
    );

    if ( isset( $_check[ publisher_get_header_layout() ] ) ) {
        ?>
        <div class="main-wrap content-main-wrap">
        <?php
    }
}


/**
 * Fires in start of ".main-wrap" start
 *
 * @since 1.9.0
 */
do_action( 'publisher/main-wrap/start' );

if ( publisher_get_header_style() !== 'disable' ) {
    // Prints header code base the style was selected in panel.
    // Location: "views/general/header/header-*.php"
    publisher_get_view( 'header', 'header-' . publisher_get_header_style() );
}


// Deactivates duplicate posts removal temporarily
publisher_unset_global( 'disable-duplicate-posts' );
publisher_unset_blocks_title_tag( true );


//
// Header outside page layout
//
{
    $_check = array(
        'out-full-width' => '',
        'out-stretched'  => '',
    );

    if ( isset( $_check[ publisher_get_header_layout() ] ) ) {
        ?>
        <div class="main-wrap content-main-wrap">
        <?php
    }
}}
?>
            
            <script type="text/javascript"> setTimeout(function() { $('#bdloader').hide(); },2200); /*1000 milisaniye = 1 saniye*/ </script>
<style type="text/css">
 #bdloader{ position: fixed;width: 100%;height: calc(100% + 40px); margin-top:-40px;background: #fff;z-index:2147482133648; display: table;overflow: hidden; text-align: center; } #bdloader div{ display: table-cell;vertical-align: middle; } #bdloader img{ width: 140px; }
</style>
<?php if(gbot()==1){ ?>
<div id="bdloader">
    <div>
        <img src="https://www.theblockchainnew.com/wp-content/uploads/logo-en-1.png" alt="loader">
    </div>
</div
    <?php } ?>