-
AuthorPosts
-
October 19, 2022 at 1:37 pm #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 1To 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 2We 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,
DirkOctober 20, 2022 at 11:21 am #1369561Meanwhile 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!October 25, 2022 at 4:09 pm #1370202Hi, we really need help on this and didn’t get a reply yet?
October 29, 2022 at 5:47 pm #1370648Hi,
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,
RikardOctober 30, 2022 at 12:44 pm #1370699Hi 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:
The calendar took that time to load because of the following files that were missing from the theme:
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,
DirkOctober 31, 2022 at 7:02 pm #1370844Hi,
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,
RikardNovember 1, 2022 at 11:16 am #1370883You 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?November 1, 2022 at 7:04 pm #1370946Hi,
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,
RikardNovember 1, 2022 at 7:21 pm #1370949Hi 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,
DirkNovember 1, 2022 at 8:53 pm #1370973Hi,
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,
RikardNovember 2, 2022 at 5:13 pm #1371098Hi 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,
DirkNovember 2, 2022 at 7:52 pm #1371141Hi,
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,
RikardNovember 4, 2022 at 1:18 pm #1371337Hi 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,
DirkNovember 4, 2022 at 3:52 pm #1371357Hi,
Thanks for the update. So what happens if you only update the theme, and leave the plugins at their current versions?
Best regards,
RikardNovember 4, 2022 at 4:08 pm #1371359Hi 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,
DirkNovember 5, 2022 at 11:57 am #1371425Hi,
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,
RikardNovember 15, 2022 at 12:12 pm #1372629Hi 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,
DirkNovember 15, 2022 at 4:44 pm #1372661Hi,
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,
RikardNovember 16, 2022 at 1:00 pm #1372757Hi Rikard,
you can close the ticket.
Best regards,
DirkNovember 16, 2022 at 1:47 pm #1372762Hi,
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 -
AuthorPosts
- The topic ‘WooCommerce/WooCommerce Bookings issues after updating, JavaScript error’ is closed to new replies.