Jump to content

woocommarce content-single-product.php getting error


KabboRahman
 Share

Recommended Posts

hi everyone i got a new problem with my theme>woocommarce>content-single-product.php file.when i want to see single product then its show me this...

 

here is the url of image: http://awesomescreenshot.com/0753t8tuca

 

here is the site/error page url: http://championhouse.ky/product/fried-rice-pack-1/

 

here is the my "content-single-product.php" file php coding.its getting error from 4no line.

<?php //Display Page Header
	global $wp_query;
	$postid = $wp_query->post->ID;
	echo page_header( get_post_meta($postid, 'qns_page_header_image', true) );
	wp_reset_query();
?>

<!-- BEGIN .section -->
<div class="section">
	
	<?php do_action( 'woocommerce_before_single_product' ); ?>
	
	<div itemscope itemtype="http://schema.org/Product" id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
	
	<ul class="columns-content page-content clearfix">
		
		<!-- BEGIN .col-main -->
		<li class="<?php echo sidebar_position('primary-content'); ?>">
	
			<h2 class="page-title"><?php the_title(); ?></h2>

			<ul class="columns-2 product-single-content clearfix">
				
				<li class="col2 clearfix">
					<?php do_action( 'woocommerce_before_single_product_summary' ); ?>
				</li>
				
				<li class="col2 clearfix">
					<div class="summary">
						<?php do_action( 'woocommerce_single_product_summary' ); ?>
					</div><!-- .summary -->
				</li>
			
			</ul>

			<?php do_action( 'woocommerce_after_single_product_summary' ); ?>
			<?php do_action( 'woocommerce_after_single_product' ); ?>

		<!-- END .col-main -->
		</li>
	
		<?php get_sidebar(); ?>

	</ul>
	
	</div><!-- #product-<?php the_ID(); ?> -->

<!-- END .section -->
</div>

please help me out of this...

Link to comment
Share on other sites

The error states that page_header() function does not exist.

 

Considering the default wordpress hook is get_header(), am going to assume this is supposed to be a function included in your theme.

I would examine your functions file within your theme and ensure that function exists, properly closed.

 

For the record, your site has a ridiculous amount of css and js includes.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.