• Resolved soufianenz

    (@soufianenz)


    Hi,

    I updated Woocommerce Plugin version 2.3.2 this morning, now experiencing few problems:

    CHECKOUT

    Fatal error: Call to undefined method WooCommerce::show_messages() in/home/public_html/wp-content/themes/organic_shop/woocommerce/checkout/form-checkout.php on line 14

    CART

    Fatal error: Call to undefined method WooCommerce::show_messages() in/home/public_html/wp-content/themes/organic_shop/woocommerce/cart/cart.php on line 15

    REVIEWS

    There are no reviews yet, would you like to submit yours?

    Fatal error: Call to undefined method WooCommerce::nonce_field() in /home/public_html/wp-content/themes/organic_shop/woocommerce/single-product-reviews.php on line 110

    Please help very urgent

    Regards

    Soufiane

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

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi,
    Looks like the organic_shop theme needs to be updated to be compatible with 2.3+ …
    Vark

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Thats correct. nonce_field was deprecated several versions/months ago. Check if the author has released an update, or temporarily switch to another theme, such as Twenty Twelve or Storefront.

    Thread Starter soufianenz

    (@soufianenz)

    Thanks for reply.
    I have done lots of work on this particular theme, just come and switch to another theme is not a solution. I guess Woocommerce Author should let people know before updating the plugin. As i see, soo many people experiencing this issue which is not good for their business.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    @soufianenz we’ve done regular updates in advance to notify devs, as have Themeforest. Here we have a dev blog: https://develop.woothemes.com/woocommerce/

    So really, no excuses to not notice that updates are coming. Chase your theme author for an update, or downgrade, or temporarily switch themes.

    Thread Starter soufianenz

    (@soufianenz)

    Thanks Mike

    Thread Starter soufianenz

    (@soufianenz)

    Hi

    Can you add Tax field at the checkout in this new version?

    Regards

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Tax field? Like a VAT number field you mean? There is an extension for that.

    I’ve got the error issued from Sensei, so it’s not just themes with the issue.

    PHP Fatal error: Call to undefined method WooCommerce::show_messages() in /xxx/wp-content/plugins/woothemes-sensei/classes/class-woothemes-sensei-frontend.php on line 2037

    Awful.

    I am getting a similar error. I haven’t updated anything. Things seemed fine about a week ago.

    Fatal error: Call to undefined method WooCommerce::show_messages() in /home/xxx/public_html/wp-content/themes/x/woocommerce/myaccount/form-edit-address.php on line 17

    Also getting this error. I also get a HTTP Error when I upload png files to media library. Switching themes doesn’t help the main issue, although I haven’t gotten this error message since switching themes (switched today from Royal to Avata).

    PHP Fatal error: Call to undefined method WooCommerce::show_messages() in /home/quotequa/public_html/themenumaster.com/wp-content/themes/royal/woocommerce/wishlist.php on line 57

    @lmartin717 + @jumajuma – you’ve both got theme errors – you need to update your themes to 2.3+ compatible …

    how to fixed this error

    Warning: domdocument::domdocument() expects parameter 2 to be long, string given in F:\xampp\htdocs\narendra\narsa\wp-content\plugins\woocommerce\includes\libraries\class-emogrifier.php on line 515

    Fatal error: Call to undefined method domdocument::loadHTML() in F:\xampp\htdocs\narendra\narsa\wp-content\plugins\woocommerce\includes\libraries\class-emogrifier.php on line 520

    wordpress Version 4.1.1
    WooCommerce plugin Version 2.3.7
    Virtue Theme Version 2.4.5

    change
    $woocommerce->show_messages();
    to
    wc_print_notices();

    As Turuzyan Suggested –

    change
    $woocommerce->show_messages();
    to
    wc_print_notices();

    and for the nonce error –

    change –
    $woocommerce->nonce_field(‘cart’)
    to
    wp_nonce_field( ‘woocommerce-cart’ );

    Worked for me

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Woocommerce Issue’ is closed to new replies.