I have some problems with WPLMS Appointments.
I can't confirm an appointment caused by service-worker.js
I can't find any redirects.
How to solve this?
Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('https://url.com/') with script ('https://url.com/service-worker.js'): The script resource is behind a redirect, which is disallowed.
(anonymous) @ myappointments.js?ver=1.4.1:6
DevTools failed to parse SourceMap: https://url.com/wp-content/plugins/wplms-appointments/assets/js/main.ec75f26b.chunk.js.map
Other errors:
Uncaught TypeError: $ is not a function
at HTMLDocument.<anonymous> ((index):305)
at t.value (wplms_appointments_booking.js?ver=1.4.1:1)
at r (wplms_appointments_booking.js?ver=1.4.1:1)
at n.l (wplms_appointments_booking.js?ver=1.4.1:1)
at o (wplms_appointments_booking.js?ver=1.4.1:1)
at B.handleSelectEvent (wplms_appointments_booking.js?ver=1.4.1:1)
at o (wplms_appointments_booking.js?ver=1.4.1:1)
at t.N._select (wplms_appointments_booking.js?ver=1.4.1:1)
at onClick (wplms_appointments_booking.js?ver=1.4.1:1)
at Object.o (wplms_appointments_booking.js?ver=1.4.1:1)
6(index):676 Uncaught TypeError: Cannot read property 'confirm' of undefined
at HTMLDocument.<anonymous> ((index):676)
at HTMLButtonElement.<anonymous> ((index):538)
at HTMLButtonElement.dispatch (jquery.js?ver=1.12.4-wp:3)
at HTMLButtonElement.r.handle (jquery.js?ver=1.12.4-wp:3)
errors on my server:
301 GET /service-worker.js HTTP/1.0
200 GET /wp-json/wplms/v1/appointments/availability?args={%22author_id%22:[7],%22item_id%22:%22any%22,%22status%22:%22open%22,%22start_date%22:1583013600000,%22end_date%22:1585688340000,%22start_time%22:0,%22end_time%22:1440} HTTP/1.0
Please do not create duplicate topics for the same issue:
https://wplms.io/support/forums/topic/problems-with-wplms-appointments-service-worker-the-script-resource/
You will get the reply on that topic
Closing this topic