Title: search unleashed &#8211; post-page function causes error
Last modified: August 19, 2016

---

# search unleashed – post-page function causes error

 *  [Harty](https://wordpress.org/support/users/harty/)
 * (@harty)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/search-unleashed-post-page-function-causes-error/)
 * Using Search Unleased 1.0.4.
    Select post/page content in modules and get this
   when I rebuild database: error: Call to a member function get_products() on a
   non-object in /home/mydatabsename/public_html/wp-content/plugins/wp-e-commerce/
   wpsc-includes/theme.functions.php on line 406
 * So long as only Post/Page metadata, Tags and Post/Page excerpt are checked, it
   is fine.

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

 *  [juliageek](https://wordpress.org/support/users/juliageek/)
 * (@juliageek)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/search-unleashed-post-page-function-causes-error/#post-1174949)
 * I get this too. I can’t get search unleashed to work with wp ecommerce, probably
   because of this error. Can anyone help. This is the section of code that the 
   error points to as having a call to a member function on a non-object:
 *     ```
       if(preg_match("/\[productspage\]/",$content)) {
   
       			$wpsc_query->get_products();
   
       			$GLOBALS['nzshpcrt_activateshpcrt'] = true;
       			ob_start();
   
       			if(wpsc_is_single_product()) {
       				include($cur_wpsc_theme_folder."/single_product.php");
       			} else {
       ```
   
 * Is it a problem with the wp-e-commerce code or is it search unleashed not liking
   something?
 *  [jonathan100](https://wordpress.org/support/users/jonathan100/)
 * (@jonathan100)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/search-unleashed-post-page-function-causes-error/#post-1174965)
 * I Need Helpppppppppppppppppppppp!
 *  [vonkanehoffen](https://wordpress.org/support/users/ttr738/)
 * (@ttr738)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/search-unleashed-post-page-function-causes-error/#post-1174973)
 * Hum… I also have this problem. Ended up giving up and just not searching page
   content. Bit of a cop-out! Did you ever find a solution?

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

The topic ‘search unleashed – post-page function causes error’ is closed to new 
replies.

 * 3 replies
 * 4 participants
 * Last reply from: [vonkanehoffen](https://wordpress.org/support/users/ttr738/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/search-unleashed-post-page-function-causes-error/#post-1174973)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
