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

    Hi, we recently get issues on the frontend of our website in the WooCommerce Bookings calendar after updating to the latest plugin versions.
    Once we try to set a date for bookings (start and end date) we get a note:
    Screenshot 1

    To finalize the booking, we have to repeat it with the same dates to get the product into the shopping cart.
    Choosing another date after the first attempt creates this note:
    Screenshot 2

    We already contacted the WooCommerce support and they said it’s a JavaScript error related to the theme.
    To investigate they asked for changing the theme to the Storefront theme which I installed on a staging site and the error is gone.

    In addition there is very slow backend performance on all sites where we run the Enfold theme.

    Could you please check what’s going wrong?

    Best regards,
    Dirk

    • This topic was modified 2 years, 2 months ago by diggital.
    • This topic was modified 2 years, 1 month ago by Mike.
    #1369561

    Meanwhile we updated to the latest Enfold 5.2 and the error still exists.
    What we found out is that it consists while clicking too fast: Choosing start and end date very quickly creates the errors, either the first or second (as seen in the screenshot). Waiting a bit before choosing the dates results in a successful shopping cart action.

    For the backend performance:
    Before the update we disabled the LayerSlider Plugin in the Theme Settings and the performance was fast again.
    After the update we had to enable it, because all our sliders were gone, even if we didn’t use the LayerSlider Plugin!

    #1370202

    Hi, we really need help on this and didn’t get a reply yet?

    #1370648

    Hi,

    Sorry for the late reply. I can’t see any error messages on the pages you linked to, could you let us know how to reproduce the problem please? Note that our support for unsupported plugins is limited.

    Best regards,
    Rikard

    #1370699

    Hi Rikard,

    thanks for your reply! Meanwhile we contacted the WooCommerce support and updated to the latest Enfold 5.2.1.

    You can reproduce the error on both sites I linked if you choose a product, start and end date and the button “Verfügbarkeit prüfen”. Depending on the speed you choose dates and the button it creates both error notes I posted before. On the page of each product you see that the calendar is loading a couple of seconds and the loading time varies a bit between the staging and live site, which is related to missing files of the Enfold theme (PNG, CSS, JS).

    We found out what is happening here, because some files of the theme are missing, the calendar ajax request “wc_bookings_find_booked_day_blocks” will be set to pending until the site either retrieves or marks as failed with a 404 error for the missing files. So, until the site doesn’t mark the missing files as missing and loads all the files from the theme, the calendar will not load. In the following example, you can see how the calendar took 6.25 seconds to load:

    calendar load 1

    The calendar took that time to load because of the following files that were missing from the theme:

    calendar load 2

    The calendar’s loading time is causing the issues in the frontend and because of this customers already cancel their bookings both on desktop and smartphone usage, because they failed to complete the booking requests!

    Can you please check what’s going wrong and why theme files are missing?

    Best regards,
    Dirk

    #1370844

    Hi,

    Thanks for the update. I still don’t understand how to reproduce this problem unfortunately, what exactly do we need to do on the pages you linked to? I can’t see a button with the Verfügbarkeit prüfen text on either page. I also don’t understand where you are seeing missing files? The second screenshot in your last post is not working either.

    Best regards,
    Rikard

    #1370883

    You see it in my first 2 screenshots! If you choose any of the products in the categories, you’ll able to reproduce the errors.
    I updated my last second screenshot too and hope this helps?

    #1370946

    Hi,

    Thanks for that. The froogaloop file is actually fetched externally, it’s not actually part of the theme. Please see private. The fontello file is not a part of the theme either. I see that your resources are cached/minified. Did you try to clear and disable all caching and minification?

    Best regards,
    Rikard

    #1370949

    Hi Rikard,

    yes I disabled all caching and minification of CSS and Javascript, but still get the error notes.
    I also ran a conflict test by disabling all plugins to find the source but couldn’t manage to fix the frontend error notes.

    The froogaloop file seems to be related to the “Product Video for WooCommerce” plugin, but even by disabling it, the errors still consist. You can see this state at the staging site (copy) now.

    Best regards,
    Dirk

    #1370973

    Hi,

    Thanks for the update. I might be missing something, but where is the JavaScript error coming from Enfold? Note that there are no missing files in the console on your staging site, but the behaviour still seems to be the same.

    Best regards,
    Rikard

    #1371098

    Hi Rikard,

    yes the behaviour is the main issue and it’s gone if we switch to a different theme. How can we fix it?
    There’s a missing PNG from dynamic_avia on the live site.

    Best regards,
    Dirk

    #1371141

    Hi,

    I’m not sure to be honest, and if there are no error messages then it’s like looking for a needle in a haystack. A missing image won’t make any difference, and the behaviour is still the same on the staging site where it seemingly isn’t missing.

    We already contacted the WooCommerce support and they said it’s a JavaScript error related to the theme.

    It would be interesting to know how WooCommerce support came to the conclusion that it’s caused by a JavaScript error in Enfold?

    we recently get issues on the frontend of our website in the WooCommerce Bookings calendar after updating to the latest plugin versions.

    Did you try rolling back to the version you updated from, to see if that helps?

    Best regards,
    Rikard

    #1371337

    Hi Rikard,

    I guess the WooCommerce team didn’t see that the issues come from the “Product Video for WooCommerce” plugin. I’ll ask them again – whatever, we still get the issues and have to find a way to get rid of.

    Yes, we rolled back to Enfold 5.1.1 and the Woo plugins before the updates and don’t get any Booking calendar issues in the frontend or other errors. Please check the private link. I hope this helps clarifying?

    Best regards,
    Dirk

    #1371357

    Hi,

    Thanks for the update. So what happens if you only update the theme, and leave the plugins at their current versions?

    Best regards,
    Rikard

    #1371359

    Hi Rikard,

    unfortunately we can’t do it because of security reasons and mainly for a consisting bug in former versions of WooCommerce Bookings which effected the workflow of the booking system. That’s why we had to update and now have to deal with the issues in the frontend.

    The only way out right now seems to be to outsource the whole shop to a subdomain using a different theme and run the other part of the website with Enfold. That’s what we try out on another staging site, but it would be great to have a solution for the existing system on the live site.

    Best regards,
    Dirk

    #1371425

    Hi,

    Thanks for the update. If you can solve this by yourself, then that would likely be the best solution. We might be able check this for you, but it would likely take a very long time, since it wouldn’t be a high priority. The reason being that it’s no a supported plugin, and very few users actually use it. We would also likely have to spend a lot of time on setting up test installations to first of all reproduce the problem, then hopefully find the cause of it. The latter might turn out to be difficult though, since there aren’t any error messages which point to an actual file or similar. These tests would be necessary, since we can’t really say if this really is a theme or plugin problem at this point, or maybe a local problem specific to your site.

    Best regards,
    Rikard

    #1372629

    Hi Rikard,

    sorry for the late reply!
    Meanwhile we separated the shop to the subdomain and fixed the issues.

    Unfortunately we had to pay extra for the Enfold support and really waited long time to get your reply which finally didn’t bring any results.
    I didn’t expect that it’s that complicated, but luckily we found a solution.

    Best regards,
    Dirk

    #1372661

    Hi,

    Great, I’m glad that you found a solution. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1372757

    Hi Rikard,

    you can close the ticket.

    Best regards,
    Dirk

    #1372762

    Hi,
    If you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘WooCommerce/WooCommerce Bookings issues after updating, JavaScript error’ is closed to new replies.