Title: Issue regarding theme or plugin??
Last modified: August 21, 2016

---

# Issue regarding theme or plugin??

 *  [vaibviad](https://wordpress.org/support/users/vaibviad/)
 * (@vaibviad)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/issue-regarding-theme-or-plugin/)
 * I am using whitelight commerce theme for my site with woocommerce ..and on my
   home page i m getting this error.. I m not gettin this error is of theme or plugin..
   Bcoz i am also finding few errors in internal pages.Like on single product page
   i m not able to c the summary tab..
    Fatal error: Class ‘woocommerce_product’
   not found in `whitelight-commerce/includes/homepage-shop-panel.php`
 * Following is my home-shop-panel.php
 *     ```
       <?php
       /**
        * Homepage Features Panel
        */
   
       	/**
        	* The Variables
        	*
        	* Setup default variables, overriding them if the "Theme Options" have been saved.
        	*/
   
       	global $woocommerce;
   
       	$settings = array(
       					'thumb_w' => 100,
       					'thumb_h' => 100,
       					'thumb_align' => 'alignleft',
       					'shop_area' => 'false',
       					'shop_area_entries' => 3,
       					'shop_area_title' => '',
       					'shop_area_message' => '',
       					'shop_area_link_text' => 'View all our products',
       					);
   
       	$settings = woo_get_dynamic_values( $settings );
   
       ?>
       			<section id="shop-home" class="home-section fix">
   
           			<header class="block">
           				<h1><?php echo stripslashes($settings['shop_area_title'] ); ?></h1>
           				<p><?php echo stripslashes($settings['shop_area_message'] ); ?></p>
           				<a class="more" href="<?php echo get_post_type_archive_link('product'); ?>" title="<?php _e( 'View all our products', 'woothemes' ); ?>"><?php echo $settings['shop_area_link_text']; ?></a>
           			</header>
   
           			<ul class="recent products">
   
       					<?php
       					$number_of_products = $settings['shop_area_entries'];
       					$args = array( 'post_type' => 'product', 'posts_per_page' => $number_of_products );
       					$first_or_last = 'first';
       					$loop = new WP_Query( $args );
       					$count = 0;
       					while ( $loop->have_posts() ) : $loop->the_post(); $_product = &new woocommerce_product( $loop->post->ID ); $count++; ?>
   
       						<li class="product <?php if ( $count % 3 == 0 ) { echo 'last'; } ?>">
   
       							<a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>">
   
       								<div class="img-wrap">
   
       									<?php woocommerce_show_product_sale_flash( $post, $_product ); ?>
   
       									<?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_thumbnail'); else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/placeholder.png" alt="Placeholder" width="'.$woocommerce->get_image_size('shop_catalog_image_width').'px" height="'.$woocommerce->get_image_size('shop_catalog_image_height').'px" />'; ?>
   
       								</div>
   
       							</a>
   
       							<h3><a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"><?php the_title(); ?></a></h3>
       								<?php the_excerpt(); ?>
       							<span class="price"><?php echo $_product->get_price_html(); ?></span>
       								<?php woocommerce_template_loop_add_to_cart( $loop->post, $_product ); ?>
       							<div class="fix"></div>
   
       						</li>
   
       						<?php if ( $count % 3 == 0 ) { echo '<li class="fix clear"></li>'; } ?>
       					<?php endwhile; ?>
   
       				</ul><!--/ul.recent-->
   
           		</section>
   
           		<?php wp_reset_query(); ?>
       ```
   
 * Versions
    WC – 2.0.9

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [vaibviad](https://wordpress.org/support/users/vaibviad/)
 * (@vaibviad)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/issue-regarding-theme-or-plugin/#post-3869841)
 * Also it gives me this error when keep only woocommerce plugin ..
 * Warning: uasort() expects parameter 1 to be array, null given in `/wp-content/
   plugins/woocommerce/woocommerce-template.php` on line 795
 *  [dynm](https://wordpress.org/support/users/dynm/)
 * (@dynm)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-regarding-theme-or-plugin/#post-3869978)
 * have you found a solution for this?
 *  [dynm](https://wordpress.org/support/users/dynm/)
 * (@dynm)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-regarding-theme-or-plugin/#post-3869979)
 * .

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue regarding theme or plugin??’ is closed to new replies.

## Tags

 * [Whitelight](https://wordpress.org/support/topic-tag/whitelight/)
 * [WooThemes](https://wordpress.org/support/topic-tag/woothemes/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [dynm](https://wordpress.org/support/users/dynm/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/issue-regarding-theme-or-plugin/#post-3869979)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
