Jump to content

woocommarce content-single-product.php getting error


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) );

<!-- 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 class="col2 clearfix">
					<div class="summary">
						<?php do_action( 'woocommerce_single_product_summary' ); ?>
					</div><!-- .summary -->

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

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

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

<!-- END .section -->

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.

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.


  • 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.