• I just upgraded to WooCommerce 2.1 and that broke my site. Here’s the fatal error I received:

    Fatal error: Call to undefined method WooCommerce::mfunc_wrapper() in [file path]/wp-content/themes/mystile/header.php on line 49

    The theme that I’m using for my site — Mystile from WooThemes — is apparently using the deprecated function (since WooCommerce 2.0) mfunc_wrapper.

    My temporary fix is to copy the mfunc_wrapper code to the woocommerce.php just so the function is there when called. But ideally I would like to see Mystile get updated to be compatible with WooCommerce 2.1 — I know it’s free theme, but it’s still available on WooThemes’ site for downloads, it should be maintained (in my opinion).

    https://www.ads-software.com/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you contacted Woo with a support ticket? I contacted them last week referring to this theme not being updated since 2013.09.16 and they said it had no bugs.

    https://www.woothemes.com/changelogs/mystile/changelog.txt

    Again why do people update their sites without testing first and waiting?

    Plugin Contributor James Koster

    (@jameskoster)

    Please update the theme. The latest version is compatible with 2.1.

    I just had the same exact error when I upgraded, but fixed it very quickly by deleting my header.php content and replacing it with Mystile’s new header.php content. You can download it for free on the theme’s site, or copy paste it from here:

    <?php
    // File Security Check
    if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
        die ( 'You do not have sufficient permissions to access this page!' );
    }
    ?>
    <?php
    /**
     * Header Template
     *
     * Here we setup all logic and XHTML that is required for the header section of all screens.
     *
     * @package WooFramework
     * @subpackage Template
     */
    global $woo_options, $woocommerce;
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?> class="<?php if ( $woo_options['woo_boxed_layout'] == 'true' ) echo 'boxed'; ?> <?php if (!class_exists('woocommerce')) echo 'woocommerce-deactivated'; ?>">
    <head>
    
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    
    <title><?php woo_title(''); ?></title>
    <?php woo_meta(); ?>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" media="screen" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    	wp_head();
    	woo_head();
    ?>
    
    </head>
    
    <body <?php body_class(); ?>>
    <?php woo_top(); ?>
    
    <div id="wrapper">
    
    	<div id="top">
    		<nav class="col-full" role="navigation">
    			<?php if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'top-menu' ) ) { ?>
    			<?php wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'top-nav', 'menu_class' => 'nav fl', 'theme_location' => 'top-menu' ) ); ?>
    			<?php } ?>
    			<?php
    				if ( class_exists( 'woocommerce' ) ) {
    					echo '<ul class="nav wc-nav">';
    					woocommerce_cart_link();
    					echo '<li class="checkout"><a href="'.esc_url($woocommerce->cart->get_checkout_url()).'">'.__('Checkout','woothemes').'</a></li>';
    					echo get_search_form();
    					echo '</ul>';
    				}
    			?>
    		</nav>
    	</div><!-- /#top -->
    
        <?php woo_header_before(); ?>
    
    	<header id="header" class="col-full">
    
    	    <hgroup>
    
    	    	 <?php
    			    $logo = esc_url( get_template_directory_uri() . '/images/logo.png' );
    				if ( isset( $woo_options['woo_logo'] ) && $woo_options['woo_logo'] != '' ) { $logo = $woo_options['woo_logo']; }
    				if ( isset( $woo_options['woo_logo'] ) && $woo_options['woo_logo'] != '' && is_ssl() ) { $logo = preg_replace("/^http:/", "https:", $woo_options['woo_logo']); }
    			?>
    			<?php if ( ! isset( $woo_options['woo_texttitle'] ) || $woo_options['woo_texttitle'] != 'true' ) { ?>
    			    <a id="logo" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr( get_bloginfo( 'description' ) ); ?>">
    			    	<img src="<?php echo $logo; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" />
    			    </a>
    		    <?php } ?>
    
    			<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    			<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    			<h3 class="nav-toggle"><a href="#navigation">☰ <span><?php _e('Navigation', 'woothemes'); ?></span></a></h3>
    
    		</hgroup>
    
            <?php woo_nav_before(); ?>
    
    		<nav id="navigation" class="col-full" role="navigation">
    
    			<?php
    			if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'primary-menu' ) ) {
    				wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fr', 'theme_location' => 'primary-menu' ) );
    			} else {
    			?>
    	        <ul id="main-nav" class="nav fl">
    				<?php if ( is_page() ) $highlight = 'page_item'; else $highlight = 'page_item current_page_item'; ?>
    				<li class="<?php echo $highlight; ?>"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php _e( 'Home', 'woothemes' ); ?></a></li>
    				<?php wp_list_pages( 'sort_column=menu_order&depth=6&title_li=&exclude=' ); ?>
    			</ul><!-- /#nav -->
    	        <?php } ?>
    
    		</nav><!-- /#navigation -->
    
    		<?php woo_nav_after(); ?>
    
    	</header><!-- /#header -->
    
    	<?php woo_content_before(); ?>

    hi, i make mystile themes version 1.3.2 and framework 5.5.6.
    I have a big problem, my page/post cannot show full its body or text.

    anybody can help me please..?

    this is a screenshoot my problem :
    https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t35.0-12/1618336_10202490817740840_775442135_o.jpg?oh=1eaafe87bea3b9ff1dcae03d1a4dbdee&oe=53B02CD2&__gda__=1404067842_7b060af1b793b5919c43a38c81f83691

    Thank-you intotheforestdotus, that worked!

    (Running WordPress 3.9.1, WooCommerce 2.1.12, Mystile 1.2.3 (telling me that 1.3.2 is available but ONLY if I look in WooCommerce > System Status), and WooFramework 6.0.0.).

    I upgraded to the latest mystile 1.3.2 and the page titles on all site pages don’t show. Instead the URL is displayed all over the site . I’m using wordpress Seo . I think it’s the theme because with a different theme its working fine… Please advice ASAP

    https://www.a2zsell.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WooCommerce 2.1 & Mystile theme not compatible’ is closed to new replies.