{"id":1154,"date":"2014-06-24T22:01:12","date_gmt":"2014-06-24T22:01:12","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=1154"},"modified":"2014-06-28T04:26:26","modified_gmt":"2014-06-28T04:26:26","slug":"call-to-undefined-method-woocommercemfunc_wrapper-in-header-php","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=1154","title":{"rendered":"Call to undefined method WooCommerce::mfunc_wrapper() in header.php"},"content":{"rendered":"<p>After updating a wordpress site using the WooCommerce plugin, the site would no longer load.  Searching the web showed that many others have had the same error.  Tried a variety of solutions, nothing other than restoring the downgraded site worked; but since I didn&#8217;t want to downgrade to potentially unsecure plugins, I took matters into my own hands.<\/p>\n<p>I commented out the function &#8220;WooCommerce::mfunc_wrapper&#8221; in header.php on line 58<\/p>\n<blockquote><p> ## $woocommerce->mfunc_wrapper( &#8216;superstore_mini_cart()&#8217;, &#8216;superstore_mini_cart&#8217;, $woocommerce );\n<\/p><\/blockquote>\n<p>and now the site loads with no errors!<\/p>\n<p>Apparently this is due to an <a href=\"http:\/\/wordpress.org\/support\/topic\/fatal-error-with-mfunc_wrapper\">outdated &#8216;wootique&#8217; theme<\/a> or some other related outdated plugin or theme that doesn&#8217;t tell wordpress it needs an update.  At least commenting it out restores site functionality.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After updating a wordpress site using the WooCommerce plugin, the site would no longer load. Searching the web showed that many others have had the same error. Tried a variety of solutions, nothing other than restoring the downgraded site worked; &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=1154\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1154"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1154"}],"version-history":[{"count":7,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1154\/revisions"}],"predecessor-version":[{"id":1163,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1154\/revisions\/1163"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}