WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Fatal Error with mfunc_wrapper() (7 posts)

  1. Jason Wall
    Member
    Posted 1 year ago #

    Fatal error: Call to a member function mfunc_wrapper() on a non-object in /home/.../theme-woocommerce.php on line 179

    Code on line 179:

    function wootique_cart_link() {
    	global $woocommerce;
    	$woocommerce->mfunc_wrapper( 'woocommerce_cart_link()', 'woocommerce_cart_link', $woocommerce );
    }
    
    function wootique_checkout_link() {
    	global $woocommerce;
    	$woocommerce->mfunc_wrapper( 'wootique_checkout_button()', 'wootique_checkout_button', $woocommerce );
    }

    I deactivated child theme and all plugins, I still get this error. I have the most recent version of WordPress, Wootique, and Woocommerce. I am probably going to restore on the server side so the site operates properly. I am guessing it has something to do with the Wootique version or framework. Any advise would be appreciated.

    Site is wallwoodworks.com

    https://wordpress.org/plugins/woocommerce/

  2. Jason Wall
    Member
    Posted 1 year ago #

    They say they are going to update tomorrow, maybe this will get fixed.

  3. Daniel Espinoza
    Member
    Posted 1 year ago #

    Make sure you're using the latest version of Wootique. The latest version is 1.6.9 and the mfunc wrapper was removed last year. From the changelog:

    2013.04.17 - version 1.6.5
    * includes/theme-woocommerce.php - Removed mfunc_wrapper.

  4. Jason Wall
    Member
    Posted 1 year ago #

    Thanks so much for responding Daniel. You are correct it was removed. Almost a year... ago....? That means when I installed the version that I thought was "the most recent" it was in fact not. I received and email earlier this evening on the update. The odd thing is I keep every other plugin & theme up to date via the WordPress dashboard. There was no notification of this in the WordPress dashboard.

    I think that is poor design.

    Every other plugin I use takes advantage of this feature within the WordPress. But heck I am green when it comes to coding and definitely greener when it comes to design.

  5. Daniel Espinoza
    Member
    Posted 1 year ago #

    That would be nice. Hopefully theme updates happens soon.

  6. Jason Wall
    Member
    Posted 1 year ago #

    Apparently Woo has a plugin called WooThemes Helper. This helps manage their software within your site. You have to enter a license key for everything you use, even if its a free theme or plugin. If it is a free plugin or theme you have to checkout on their site and get a license key. Enter the key into the helper and voila. It notifies you when there is an update.

    Kudoes to Andrew from Woo for taking the time to answer my questions and knowing what he was talking about.

  7. Daniel Espinoza
    Member
    Posted 1 year ago #

    Andrew is awesome, but don't tell him I said so. We don't want him getting a big head :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic