رفتن به مطلب

ارور Fatal error: Call to undefined


پست های پیشنهاد شده

سلام دوستان من قالب رو از سایت خارجی دانلود و روی لوکال فارسی و راستچین و به قول گفتنی امادش کردم ولی وقتی اپش کردم رو هاست سایت باز نمیشه این متن ارور


Fatal error: Call to undefined function ghostpool_option() in /home/vitaming/public_html/wp-content/themes/huber/header.php on line 22

عکس ارور هم تو پیوست موجوده

کد HEADER.PHP

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<?php if ( is_singular() && pings_open( get_queried_object() ) ) { ?>
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php } ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>

<?php if ( ! is_page_template( 'blank-page-template.php' ) ) { ?>

	<div id="gp-site-wrapper">
							
		<div id="gp-page-wrapper">
		
			<header id="gp-headers-container">

				<?php if ( ghostpool_option( 'top-header' ) != 'gp-top-header-disabled' ) { ?>
					<header id="gp-top-header" class="<?php echo sanitize_html_class( ghostpool_option( 'header_layout' ) ); ?><?php if ( ghostpool_option( 'theme_layout' ) == 'gp-boxed-layout' ) { ?> gp-container<?php } ?>">
<div style=" text-align:right; margin-right: 328px; font-family:b yekan; font-size:19px; color:#b400ff">
  امروز <?php echo date_i18n ('l ,  j  F  ,  Y | H:i') ; ?>
    به ویتامین گیم خوش اومدی !
      </div>

						<?php if ( ghostpool_option( 'header_layout' ) == 'gp-header-boxed' ) { ?><div class="gp-container"><?php } ?>
							<?php if ( has_nav_menu( 'gp-top-nav' ) ) { ?>	
								<nav id="gp-top-nav" class="gp-nav">
									<?php wp_nav_menu( array( 'theme_location' => 'gp-top-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>		
								</nav>
							<?php } ?>
						<?php if ( ghostpool_option( 'header_layout' ) == 'gp-header-boxed' ) { ?></div><?php } ?>
					</header>
				<?php } ?>
				

				<header id="gp-main-header" class="<?php echo sanitize_html_class( ghostpool_option( 'header_layout' ) ); ?><?php if ( ghostpool_option( 'theme_layout' ) == 'gp-boxed-layout' ) { ?> gp-container<?php } ?>">
			
					<div class="gp-container">
				
						<div id="gp-header-left">
			
							<<?php if ( is_front_page() && ! is_home() ) { ?>h1<?php } else { ?>div<?php } ?> id="gp-logo">
						
								<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo( 'name' ); ?>">
									<?php if ( ghostpool_option( 'text_logo' ) ) { ?>
										<span id="gp-text-logo"><?php echo esc_attr( ghostpool_option( 'text_logo' ) ); ?></span>
									<?php } else { ?>
										<?php if ( ghostpool_option( 'desktop_logo', 'url' ) ) { ?>
											<img src="<?php echo esc_url( ghostpool_option( 'desktop_logo', 'url', get_template_directory_uri() . '/lib/images/logo.png' ) ); ?>" alt="<?php bloginfo( 'name' ); ?>" width="<?php echo absint( ghostpool_option( 'desktop_logo_dimensions', 'width', 217 ) ); ?>" height="<?php echo absint( ghostpool_option( 'desktop_logo_dimensions', 'height', 32 ) ); ?>" class="gp-desktop-logo" />
										<?php } ?>
										<?php if ( ghostpool_option( 'desktop_scrolling_logo', 'url' ) ) { ?>
											<img src="<?php echo esc_url( ghostpool_option( 'desktop_scrolling_logo', 'url', get_template_directory_uri() . '/lib/images/logo.png' ) ); ?>" alt="<?php bloginfo( 'name' ); ?>" width="<?php echo absint( ghostpool_option( 'desktop_scrolling_logo_dimensions', 'width', 217 ) ); ?>" height="<?php echo absint( ghostpool_option( 'desktop_scrolling_logo_dimensions', 'height', 32 ) ); ?>" class="gp-scrolling-logo" />
										<?php } ?>
										<?php if ( ghostpool_option( 'mobile_logo', 'url' ) ) { ?>
											<img src="<?php echo esc_url( ghostpool_option( 'mobile_logo', 'url', get_template_directory_uri() . '/lib/images/logo.png' ) ); ?>" alt="<?php bloginfo( 'name' ); ?>" width="<?php echo absint( ghostpool_option( 'mobile_logo_dimensions', 'width', 133 ) ); ?>" height="<?php echo absint( ghostpool_option( 'mobile_logo_dimensions', 'height', 20 ) ); ?>" class="gp-mobile-logo" />
										<?php } ?>
									<?php } ?>
								</a>		
						
							</<?php if ( is_front_page() && ! is_home() ) { ?>h1<?php } else { ?>div<?php } ?>>
	
						</div>

						<?php if ( has_nav_menu( 'gp-desktop-nav' ) ) { ?>	
							<nav id="gp-desktop-nav" class="gp-nav">
								<?php wp_nav_menu( array( 'theme_location' => 'gp-desktop-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>		
							</nav>					
						<?php } ?>
					
						<div id="gp-header-right">
						
							<?php if ( function_exists( 'is_woocommerce' ) && ghostpool_option( 'cart_button' ) != 'gp-cart-disabled' ) { echo ghostpool_dropdown_cart(); } ?>
			
							<?php if ( ghostpool_option( 'search_button' ) != 'gp-search-button-disabled' ) { ?>
								<a id="gp-search-button"></a>
							<?php } ?>
						
							<?php if ( has_nav_menu( 'gp-social-nav' ) && ghostpool_option( 'social_nav' ) != 'gp-social-nav-disabled' ) { ?>	
								<nav id="gp-social-nav" class="gp-nav">
									<?php wp_nav_menu( array( 'theme_location' => 'gp-social-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>		
								</nav>
							<?php } ?>
						
							<?php if ( has_nav_menu( 'gp-profile-nav' ) && ghostpool_option( 'profile_nav' ) != 'gp-profile-nav-disabled' ) { ?>	
								<nav id="gp-profile-nav" class="gp-nav">
									<?php wp_nav_menu( array( 'theme_location' => 'gp-profile-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>		
								</nav>
							<?php } ?>
						
							<?php if ( has_nav_menu( 'gp-mobile-nav' ) ) { ?>
								<div id="gp-mobile-nav-button" class="gp-open-nav"><div id="gp-nav-button-icon"></div></div>
							<?php } ?>

						</div>

						<div class="gp-clear"></div>
					
					</div>
					
					<?php if ( ghostpool_option( 'search_button' ) != 'gp-search-button-disabled' ) { ?>
						<div id="gp-search-box-wrapper" class="gp-container">
							<div id="gp-search-box">				
								<?php get_search_form(); ?>
							</div>
						</div>
					<?php } ?>
		
					
				</header>
								<div>
						<?php echo do_shortcode("[epic_element_newsticker newsticker_title='داغترین ها' newsticker_icon='fa-fire' enable_autoplay='true' autoplay_delay='5500' newsticker_background='#dd0000' newsticker_text_color='#ffffff' number_post='10' include_author='1']"); ?>
					</div>	
			</header>
						
			<div id="gp-fixed-header-padding"></div>
							
			<?php if ( has_nav_menu( 'gp-mobile-nav' ) ) { ?>		
				<nav id="gp-mobile-nav">
					<?php wp_nav_menu( array( 'theme_location' => 'gp-mobile-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>
				</nav>
			<?php } ?>
			
<?php } ?>

و وقتی که کلا هدر رو حذف یا کدشو عوض میکنم باز ارور از ایندکس فوتر و غیره میگیره

ممنون میشم راهنمایی کنید

شسی.JPG

ویرایش شده توسط kingerfan98
لینک به ارسال
در ۱ ساعت قبل، kingerfan98 گفته است :

سلام دوستان من قالب رو از سایت خارجی دانلود و روی لوکال فارسی و راستچین و به قول گفتنی امادش کردم ولی وقتی اپش کردم رو هاست سایت باز نمیشه این متن ارور


Fatal error: Call to undefined function ghostpool_option() in /home/vitaming/public_html/wp-content/themes/huber/header.php on line 22

عکس ارور هم تو پیوست موجوده

کد HEADER.PHP


<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<?php if ( is_singular() && pings_open( get_queried_object() ) ) { ?>
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php } ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>

<?php if ( ! is_page_template( 'blank-page-template.php' ) ) { ?>

	<div id="gp-site-wrapper">
							
		<div id="gp-page-wrapper">
		
			<header id="gp-headers-container">

				<?php if ( ghostpool_option( 'top-header' ) != 'gp-top-header-disabled' ) { ?>
					<header id="gp-top-header" class="<?php echo sanitize_html_class( ghostpool_option( 'header_layout' ) ); ?><?php if ( ghostpool_option( 'theme_layout' ) == 'gp-boxed-layout' ) { ?> gp-container<?php } ?>">
<div style=" text-align:right; margin-right: 328px; font-family:b yekan; font-size:19px; color:#b400ff">
  امروز <?php echo date_i18n ('l ,  j  F  ,  Y | H:i') ; ?>
    به ویتامین گیم خوش اومدی !
      </div>

						<?php if ( ghostpool_option( 'header_layout' ) == 'gp-header-boxed' ) { ?><div class="gp-container"><?php } ?>
							<?php if ( has_nav_menu( 'gp-top-nav' ) ) { ?>	
								<nav id="gp-top-nav" class="gp-nav">
									<?php wp_nav_menu( array( 'theme_location' => 'gp-top-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>		
								</nav>
							<?php } ?>
						<?php if ( ghostpool_option( 'header_layout' ) == 'gp-header-boxed' ) { ?></div><?php } ?>
					</header>
				<?php } ?>
				

				<header id="gp-main-header" class="<?php echo sanitize_html_class( ghostpool_option( 'header_layout' ) ); ?><?php if ( ghostpool_option( 'theme_layout' ) == 'gp-boxed-layout' ) { ?> gp-container<?php } ?>">
			
					<div class="gp-container">
				
						<div id="gp-header-left">
			
							<<?php if ( is_front_page() && ! is_home() ) { ?>h1<?php } else { ?>div<?php } ?> id="gp-logo">
						
								<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo( 'name' ); ?>">
									<?php if ( ghostpool_option( 'text_logo' ) ) { ?>
										<span id="gp-text-logo"><?php echo esc_attr( ghostpool_option( 'text_logo' ) ); ?></span>
									<?php } else { ?>
										<?php if ( ghostpool_option( 'desktop_logo', 'url' ) ) { ?>
											<img src="<?php echo esc_url( ghostpool_option( 'desktop_logo', 'url', get_template_directory_uri() . '/lib/images/logo.png' ) ); ?>" alt="<?php bloginfo( 'name' ); ?>" width="<?php echo absint( ghostpool_option( 'desktop_logo_dimensions', 'width', 217 ) ); ?>" height="<?php echo absint( ghostpool_option( 'desktop_logo_dimensions', 'height', 32 ) ); ?>" class="gp-desktop-logo" />
										<?php } ?>
										<?php if ( ghostpool_option( 'desktop_scrolling_logo', 'url' ) ) { ?>
											<img src="<?php echo esc_url( ghostpool_option( 'desktop_scrolling_logo', 'url', get_template_directory_uri() . '/lib/images/logo.png' ) ); ?>" alt="<?php bloginfo( 'name' ); ?>" width="<?php echo absint( ghostpool_option( 'desktop_scrolling_logo_dimensions', 'width', 217 ) ); ?>" height="<?php echo absint( ghostpool_option( 'desktop_scrolling_logo_dimensions', 'height', 32 ) ); ?>" class="gp-scrolling-logo" />
										<?php } ?>
										<?php if ( ghostpool_option( 'mobile_logo', 'url' ) ) { ?>
											<img src="<?php echo esc_url( ghostpool_option( 'mobile_logo', 'url', get_template_directory_uri() . '/lib/images/logo.png' ) ); ?>" alt="<?php bloginfo( 'name' ); ?>" width="<?php echo absint( ghostpool_option( 'mobile_logo_dimensions', 'width', 133 ) ); ?>" height="<?php echo absint( ghostpool_option( 'mobile_logo_dimensions', 'height', 20 ) ); ?>" class="gp-mobile-logo" />
										<?php } ?>
									<?php } ?>
								</a>		
						
							</<?php if ( is_front_page() && ! is_home() ) { ?>h1<?php } else { ?>div<?php } ?>>
	
						</div>

						<?php if ( has_nav_menu( 'gp-desktop-nav' ) ) { ?>	
							<nav id="gp-desktop-nav" class="gp-nav">
								<?php wp_nav_menu( array( 'theme_location' => 'gp-desktop-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>		
							</nav>					
						<?php } ?>
					
						<div id="gp-header-right">
						
							<?php if ( function_exists( 'is_woocommerce' ) && ghostpool_option( 'cart_button' ) != 'gp-cart-disabled' ) { echo ghostpool_dropdown_cart(); } ?>
			
							<?php if ( ghostpool_option( 'search_button' ) != 'gp-search-button-disabled' ) { ?>
								<a id="gp-search-button"></a>
							<?php } ?>
						
							<?php if ( has_nav_menu( 'gp-social-nav' ) && ghostpool_option( 'social_nav' ) != 'gp-social-nav-disabled' ) { ?>	
								<nav id="gp-social-nav" class="gp-nav">
									<?php wp_nav_menu( array( 'theme_location' => 'gp-social-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>		
								</nav>
							<?php } ?>
						
							<?php if ( has_nav_menu( 'gp-profile-nav' ) && ghostpool_option( 'profile_nav' ) != 'gp-profile-nav-disabled' ) { ?>	
								<nav id="gp-profile-nav" class="gp-nav">
									<?php wp_nav_menu( array( 'theme_location' => 'gp-profile-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>		
								</nav>
							<?php } ?>
						
							<?php if ( has_nav_menu( 'gp-mobile-nav' ) ) { ?>
								<div id="gp-mobile-nav-button" class="gp-open-nav"><div id="gp-nav-button-icon"></div></div>
							<?php } ?>

						</div>

						<div class="gp-clear"></div>
					
					</div>
					
					<?php if ( ghostpool_option( 'search_button' ) != 'gp-search-button-disabled' ) { ?>
						<div id="gp-search-box-wrapper" class="gp-container">
							<div id="gp-search-box">				
								<?php get_search_form(); ?>
							</div>
						</div>
					<?php } ?>
		
					
				</header>
								<div>
						<?php echo do_shortcode("[epic_element_newsticker newsticker_title='داغترین ها' newsticker_icon='fa-fire' enable_autoplay='true' autoplay_delay='5500' newsticker_background='#dd0000' newsticker_text_color='#ffffff' number_post='10' include_author='1']"); ?>
					</div>	
			</header>
						
			<div id="gp-fixed-header-padding"></div>
							
			<?php if ( has_nav_menu( 'gp-mobile-nav' ) ) { ?>		
				<nav id="gp-mobile-nav">
					<?php wp_nav_menu( array( 'theme_location' => 'gp-mobile-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>
				</nav>
			<?php } ?>
			
<?php } ?>

و وقتی که کلا هدر رو حذف یا کدشو عوض میکنم باز ارور از ایندکس فوتر و غیره میگیره

ممنون میشم راهنمایی کنید

شسی.JPG

قسمت هایی که از تابع 

ghostpool_option استفاده شده رو حذف کن ببین مشکل حل میشه یا نه
لینک به ارسال

حذف میکنم اما هر جایی از قالب از این تابعاتی که با GHOSTPOOL شروع میشه هست وقتی حذف میکنم از همین تابع جاهای دیگه تو فوتر ایندکس و .... ایراد میگیره 

لینک به ارسال
در ۱ ساعت قبل، kingerfan98 گفته است :

حذف میکنم اما هر جایی از قالب از این تابعاتی که با GHOSTPOOL شروع میشه هست وقتی حذف میکنم از همین تابع جاهای دیگه تو فوتر ایندکس و .... ایراد میگیره 

تابع شما ghostpool_option()  رو نمیتونه پیدا کنه 

این تابع توی جاهای زیادی از قالبتون از قبیل هدر و فوتر فراخوانی شده که در سورستون پیداش نمیکنه یا در مسیر اشتباهی هست 

احتمالا آدرس فایلی که این تابع داخلش هست به درستی فراخوانی نشده که دسترسی بهش وجود نداره

ویرایش شده توسط soma
لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...