Single-product.php Include Error

Just installed Marketpress on 3.2.1

When I click on a product, I get this message. Seems like it is looking for a template file in my general Wordpress theme that obviously wouldn't be there.

Do I have to use a MarketPress ready theme in order to use MarketPress? I already have my site built, I just want to use this plugin.

Please advise!

Warning: include(***/public_html/compupro/wp-content/themes/knead/single-product.php) [function.include]: failed to open stream: No such file or directory in ***/public_html/compupro/wp-content/themes/knead/ocmx/theme-setup/post-type-redirect.php on line 22

  • squareminc
    • WPMU DEV Initiate

    Here is the entire contents of that include file:

    <?php
    add_action("template_redirect",'my_template_redirect');
    function my_template_redirect()
    {
    	global $wp, $ocmx_post_types;
    	$ocmx_post_types = array();
    	$ocmx_post_types[] = "product";
    	$ocmx_post_types[] = "service";
    
    	if (in_array($wp->query_vars["post_type"], $ocmx_post_types))
    	{
    		if ( is_robots() ) :
    			do_action('do_robots');
    			return;
    		elseif ( is_feed() ) :
    			do_feed();
    			return;
    		elseif ( is_trackback() ) :
    			include( ABSPATH . 'wp-trackback.php' );
    			return;
    		elseif($wp->query_vars["name"]):
    			include(TEMPLATEPATH . "/single-".$wp->query_vars["post_type"].".php");
    			die();
    		else:
    			include(TEMPLATEPATH . "/".$wp->query_vars["post_type"].".php");
    			die();
    		endif;
    
    	}
    }
    ?>

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.