Home Forums WoodMart support forum woodmart core plugin causing massive amount of errors – webshop crashed

woodmart core plugin causing massive amount of errors – webshop crashed

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #200167

    Josh
    Participant

    Hello Guys,

    We have a bit of a problem with our webshop using the WoodMart theme. This website has been active for nearly a year. However it seems that the WoodMart core plugin is spitting out a massive amount of errors so much so that it used up all our 30gb disk space and caused our webshop to crash.

    We got in contact with our hosting which is Liquidweb and they tracked down the cause of the problem which was this plugin [Woodmart core plugin] Please can you help us to identify what the problem is as I use this theme on other webshops.

    Also, the webshop is a critical webshop! Liquidweb has disabled error logging until we have sorted this problem out. Please see below for more information…

    Regards,
    Josh

    #200206

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for contacting our support center.

    Could you please provide us some examples of these errors from your logs so we can understand their nature?

    Kind Regards
    XTemos Studio

    #200214

    Josh
    Participant

    I don’t have an example of the errors or the error log myself. Liquidweb informed us that they found the problem in the error logs. But do you mean the PHP error.log because I can download it only it is something like 300mb?

    I can also ask Liquidweb to send an example of these errors?

    regards,
    Josh

    #200257

    Artem Temos
    Keymaster

    If they say that our plugin causes all these errors, most probably, there are just a few errors that are written there every second or minute. So just send us these repeating errors example.
    And usually, log files are created every day to avoid such situations. And old log files (more than a week or month) should be removed automatically. So we suggest you to ask your hosting to configure your error logs in such a way to avoid similar problems in the future.

    #200281

    Josh
    Participant

    Okay thanks mate!

    I will ask them to send an example of the errors thanks. And also suggest if they can automatically remove log files older than a month or so.

    Regards,
    Josh

    #200308

    Josh
    Participant

    Hello guys,

    I just received the following email from Liquidweb and have added their reply and the link to the log file in the private content below. One line of the log file was 4mb.

    Thanks for your help.
    regards,
    Josh

    #200314

    Artem Temos
    Keymaster

    According to this log the error is not related to the WoodMart core plugin. As you can see, it comes from the layered navigation widget. And since it is based on a WooCommerce widget, could you please check how it works with a default WordPress theme and standard WoOCommerce filter widget? https://gyazo.com/153c478262b75b9989e82e1ec21dd1e3

    #200317

    Josh
    Participant

    Thanks…

    Could you please explain that a bit more? The layered navigation widget is that the browse categories menu in the WoodMart theme? or is that something else?

    Regards,
    Josh

    #200323

    Josh
    Participant

    I see it is the filter widget in WooCommerce. Does that mean the problem is in the woo-commerce plugin? I see that woocommerce on version is 3.7.0 and needs to be updated to 4.2

    Would that cause this problem?
    Regards,
    Josh

    #200324

    Artem Temos
    Keymaster

    Layered nav widget (or Product filters) is a widget to filter your products by attributes https://gyazo.com/3cebb085e0aba2a0f834eb367d9fb9ec
    And stores some information in the database. Due to the large data size, it can’t be stored in the database.
    Anyway, please, check how it works with other theme first to understand is it related to our theme or to WooCommerce plugin.

    #200325

    Josh
    Participant

    Okay…

    #200562

    Josh
    Participant

    Hello Guys,

    We have done as you asked on our staging site. We have changed the theme to twenty nineteen and changed this filter to a standard filter.

    The team from Liquidweb said the following below.

    #200563

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file and check how it works then

    add_filter( 'woocommerce_layered_nav_count_maybe_cache', '__return_false' );

    #200568

    Josh
    Participant

    Thanks did you mean the twenty nineteen theme or the WoodMart theme?

    #200569

    Artem Temos
    Keymaster

    This code should work for both theme and WooCommerce filters. Just put it into the WoodMart child theme and be sure that you have activated this theme in Appearance -> Themes.

    #200571

    Josh
    Participant

    Okay, thanks mate I will add this code and then also check with liquid web if it makes a difference.

    regards,
    Josh

    #200727

    Josh
    Participant

    Hey Guys,

    Good news this had solved the problem liquidweb says the error codes are no longer polluting the logs. Thanks alot!

    We first added it on our staging site and now it is on our LIVE site.

    Now the next question I have is do I also need to do this to all my other webshops where I have used your theme? or is this just a one-off?

    Regards,
    Josh

    #200734

    Artem Temos
    Keymaster

    You can use this code when you will see similar errors on other websites.

    Kind Regards

    #200957

    Josh
    Participant

    Hi Guys,

    We just wanted to say thank you for your quick response and help in sorting this problem out! Thanks to your support we were able to get this solved quickly. 🙂

    Take care and stay safe!
    regards,
    Josh

    #200958

    Artem Temos
    Keymaster

    You are welcome, we are always happy to help you, write us when you have any difficulties or issues with our theme.

    And we would be glad if you will rate our theme with 5 stars on Theme Forest in case you are satisfied with our theme and customer service http://themeforest.net/downloads

    Thank you in advance 🙂

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