Support » Plugin: WooCommerce » class-wc-order.php make troubles

  • Resolved kamcioo

    (@kamcioo)


    Hello,

    since a short time I have problems with my Woocommerce. I got a few times an e-mail with this issue:

    WordPress w wersji 5.6
    Aktualny motyw: Storefront (wersja 3.3.0)
    Aktualna wtyczka: WooCommerce (wersja 4.9.0)
    Wersja PHP: 7.4.10

    Błąd typu E_ERROR został spowodowany w linii 1938 pliku /xxxxxx/wp-content/plugins/woocommerce/includes/class-wc-order.php. Komunikat błędu: Uncaught Error: Call to a member function get_items() on bool in /xxxxxx/wp-content/plugins/woocommerce/includes/class-wc-order.php:1938
    Stack trace:
    #0 /xxxxxx/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php(62): WC_Order->get_qty_refunded_for_item(1727)
    #1 /xxxxxx/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(62): include(‘/www/htdocs/w01…’)
    #2 /xxxxxx/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(41): include(‘/www/htdocs/w01…’)
    #3 /xxxxxx/wp-admin/includes/template.php(1389): WC_Meta_Box_Order_Items::output(Object(WP_Post), Array)
    #4 /xxxxxx/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
    #5 /xxxxxx/wp-admin/post.php(206): require(‘/www/htdocs/

    Can You help me to resolve this problem?

    Thank You in advance,
    kamil

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gabriel F. a11n

    (@gabrielfuentes)

    Hi there! 👋

    This kind of problem is usually caused by either a conflict with your theme or with another plugin.
     
    The best way to determine this is to:

    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Before you start

    1. First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    2. Second, I would suggest installing a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without affecting your current site visitors.
    Thread Starter kamcioo

    (@kamcioo)

    Thank You Gabriel for the tipps.
    I have found the cause of this problem. It was the “Lower Price for WooCommerce” from FantasticPlugins.
    The only one plugin for that I have paid until today and that make “only” problems.
    First I couldn’t change the message in my shop without to deactivated this plugin. Now this problem.

    Plugin Support Gabriel F. a11n

    (@gabrielfuentes)

    Thanks for letting us know @kamcioo! 🙂

    In that case, I would like to recommend you to open a ticket with their Help Desk at:

    https://fantasticplugins.com/support/

    If you have further questions regarding WooCommerce Core, please feel free to open a new topic.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘class-wc-order.php make troubles’ is closed to new replies.