Okay
  Public Ticket #2682697
Booking unavailable when not logged in
Closed

Comments

  • Marlon started the conversation

    I don't know the typical turnaround time for private tickets but I need an answer quickly so I am re-posting publicly.

    The booking calendar does not show for a user that is not logged in, all that is seen is the hourglass animation, however, when I am logged in as an admin, everything displays fine.

    The Javascript console shows 2 error messages.

    a.data.data is undefined

    wp-content/plugins/ameliabooking//public/js/chunks/amelia-booking-booking-1ed4eab4543f1dba662e.js:1:29232

    getCurrentUser fail

    wp-content/plugins/ameliabooking//public/js/chunks/amelia-booking-booking-1ed4eab4543f1dba662e.js:1:89187

    How do I get things working as expected for guest users who want to make a booking?

  •  2,572
    Aleksandar replied

    Hello Marlon

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    The plugin works the same for logged-in and non-logged-in users, unless there's something blocking the plugin for non-logged-in users. That's usually caused by a security measure imposed by a security plugin or some security on your server. Please check security plugins you have installed, and if they are not blocking the booking form, reach out to your hosting provider about the issue. They should check if there's anything blocking the plugin from being loaded for non-logged-in users.

    When I check your page I can see there's an error there:

    5681180004.png

    This error is referencing cached JS files in ../wp-content/plugins/ameliabooking/public/js/chunks/ folder. It may be that these files are cached from an older version of the plugin, and that you need to purge all cache from your website. If the error is still there, ask your hosting provider about these files, and where (and how) they are cached. They need to be removed in order for Amelia to install new JS files.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables