• 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

    (@juliageek)

    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?

    I Need Helpppppppppppppppppppppp!

    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.