Home Forums WoodMart support forum Call to a member function get_tax_class() on null in /class-wc-cart-totals.php

Call to a member function get_tax_class() on null in /class-wc-cart-totals.php

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #526907

    radchuk2012
    Participant

    Greetings!
    It seems that after updating the theme and core to the latest version (7.4.0/1.0.41), the error from the topic returned:
    https://xtemos.com/forums/topic/call-to-a-member-function-get_tax_class-on-null-in-class-wc-cart-totals-php/
    I need your help!
    All access in private and the link for which gives an error (500).
    Thank you!

    #526938

    Artem Temos
    Keymaster

    Hello,

    Could you please clarify where did you get this link? It looks like an outdated link that doesn’t appear on your website now.

    Kind Regards

    #527001

    radchuk2012
    Participant

    Like last time, I took it from the nginx error log when I saw errors in https://zyabkin.ua/wp-admin/admin.php?page=wc-status&tab=logs

    An error was noticed during some user actions that involve changing the number of items in the quick cart – I don’t know for sure, but after these actions an error 500 occurs. You can see the log that I collected when searching for a possible reproduction of the error – from the previous topic.

    In the last patch you successfully fixed the problem, but probably did not add a fix to the 7.4.0 release that overwrote the file fixed by the patch /web/sites/zyabkin.ua/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/quantity.php

    #527157

    Artem Temos
    Keymaster

    We tried to connect to your server but the FTP access seems to be wrong https://monosnap.com/file/49rXB17H7nXGl5Pum7g7mxAxjKcVbs

    Kind Regards

    #527168

    radchuk2012
    Participant

    Greetings!

    It works from under Windows… I connect using the built-in OS explorer via a network drive connection and also via WinSCP (https://winscp.net/eng/download.php).

    I don’t know what’s wrong with your system.

    Attachments:
    You must be logged in to view attached files.
    #527172

    Artem Temos
    Keymaster

    Try to connect using FileZilla. We are not able to use Windows software for this, unfortunately.

    #527176

    radchuk2012
    Participant

    Try again now.

    #527189

    Artem Temos
    Keymaster

    Try to update to the latest version 7.4.1 and keep testing. Let us know if the error appears again.

    Kind Regards

    #527246

    radchuk2012
    Participant

    Applied update 7.4.1.

    Now the “bad” link behavior does not cause a 500 error.

    Also, in the process of checking the quick basket, we were able to identify a failure on the user’s side – the behavior after the fix in version 7.4.1 is satisfactory. I think the failure is dynamic due to the external caching system “cloudflare” (https://blog.cloudflare.com/automatic-platform-optimizations-starting-with-wordpress/) – for non-authorized users or FastCGI cache NGINX with the same rules, but I’m not sure. When adding items to a quick cart, when entering the final quantity on the keyboard rather than using the “+” button, previously there was an error 500, now the item is simply deleted from the cart. Re-adding such a product to the cart already works ok when changing the quantity in any way without damaging the rest of the list of products previously added to the cart.

    I don’t register a similar error on other projects, but they also don’t have a quick shopping cart function.

    I’m showing you the caching bypass rules for the project. Perhaps you use some other type of cookie for the quick cart that can be added to the caching bypass rule… I can consider it as a recommendation, thank you.

    I consider this topic successfully closed, thank you very much!

    Attachments:
    You must be logged in to view attached files.
    #527751

    Artem Temos
    Keymaster

    Thank you for sharing the information here. Feel free to contact us if you have any further questions.

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Call to a member function get_tax_class() on null in /class-wc-cart-totals.php’ is closed to new replies.