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
- This topic has 9 replies, 2 voices, and was last updated 10 months, 2 weeks ago by Artem Temos.
-
AuthorPosts
-
January 4, 2024 at 4:46 pm #526907
radchuk2012ParticipantGreetings!
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!January 4, 2024 at 5:44 pm #526938
Artem TemosKeymasterHello,
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
January 4, 2024 at 8:03 pm #527001
radchuk2012ParticipantLike 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
January 5, 2024 at 11:22 am #527157
Artem TemosKeymasterWe tried to connect to your server but the FTP access seems to be wrong https://monosnap.com/file/49rXB17H7nXGl5Pum7g7mxAxjKcVbs
Kind Regards
January 5, 2024 at 11:41 am #527168
radchuk2012ParticipantGreetings!
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.January 5, 2024 at 11:42 am #527172
Artem TemosKeymasterTry to connect using FileZilla. We are not able to use Windows software for this, unfortunately.
January 5, 2024 at 11:53 am #527176
radchuk2012ParticipantTry again now.
January 5, 2024 at 12:19 pm #527189
Artem TemosKeymasterTry to update to the latest version 7.4.1 and keep testing. Let us know if the error appears again.
Kind Regards
January 5, 2024 at 2:48 pm #527246
radchuk2012ParticipantApplied 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.January 8, 2024 at 11:13 am #527751
Artem TemosKeymasterThank you for sharing the information here. Feel free to contact us if you have any further questions.
-
AuthorPosts
Tagged: cart
The topic ‘Call to a member function get_tax_class() on null in /class-wc-cart-totals.php’ is closed to new replies.
- You must be logged in to create new topics. Login / Register