• Resolved ereemst

    (@ereemst)


    The times on frontside cannot be selected, it stays on search.

    i tried removing times all and no breaks etc.

    please advice.

    For instance

    Monday 10:00 untill 17:30
    Break 13:00 untill 15:30

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Time Slot

    (@timeslotplugins)

    Hi Ereemst,

    I’m sorry you’re having trouble with the booking form. Are the service and staff select boxes allowing you to choose options? Is it only the time select that is staying on search?

    Thanks.

    Thread Starter ereemst

    (@ereemst)

    You can test it on the url: https://3d-echo-hoorn.nl/maak-een-afspraak/

    backend times are in

    Plugin Author Time Slot

    (@timeslotplugins)

    Thank you for the link.

    First, you can try resetting your permalinks. Go to settings > permalinks in the sidebar menu, choose post name, and click save changes.?

    If that doesn’t work, you may need to increase your PHP memory limit. Divi requires a lot of memory on its own, and needs more when you use additional plugins. This is something you can do on your own if you have access to your server, or you may need to contact your host.

    Here is some information on Divi memory requirements:
    https://www.elegantthemes.com/blog/divi-resources/divi-hosting-requirements#2-memory-limit

    Plugin Author Time Slot

    (@timeslotplugins)

    We haven’t heard back from you in a while, so I’m marking this thread as resolved. Feel free to start a new thread or reach out to us on our contact page if you need any more help.

    Hi, I’m encountering the exact same issue. I turned on WP debugging and tried to make an appointment from the front end (where it says No results found at the Hour field) and get this error in the debug.log

    PHP Fatal error:  Uncaught Exception: Failed to parse time string (17 h 00 min) at position 0 (1): Unexpected character in /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php:282
    Stack trace:
    #0 /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php(282): DateTime->__construct()
    #1 /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php(208): TimeSlot\DaysOff->tslotBusinessHours()
    #2 /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php(87): TimeSlot\DaysOff->tslotBookingsAndHours()
    #3 /var/www/xxxxxx.net/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1230): TimeSlot\DaysOff->tslotGetBusinessHours()
    #4 /var/www/xxxxxx.net/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()
    #5 /var/www/xxxxxx.net/htdocs/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch()
    #6 /var/www/xxxxxx.net/htdocs/wp-includes/rest-api.php(428): WP_REST_Server->serve_request()
    #7 /var/www/xxxxxx.net/htdocs/wp-includes/class-wp-hook.php(324): rest_api_loaded()
    #8 /var/www/xxxxxx.net/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #9 /var/www/xxxxxx.net/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
    #10 /var/www/xxxxxx.net/htdocs/wp-includes/class-wp.php(418): do_action_ref_array()
    #11 /var/www/xxxxxx.net/htdocs/wp-includes/class-wp.php(813): WP->parse_request()
    #12 /var/www/xxxxxx.net/htdocs/wp-includes/functions.php(1336): WP->main()
    #13 /var/www/xxxxxx.net/htdocs/wp-blog-header.php(16): wp()
    #14 /var/www/xxxxxx.net/htdocs/index.php(17): require('...')
    #15 {main}
      thrown in /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php on line 282

    Note that the time notation “17 h 00 min” is French and it is what the plugin itself proposes when setting opening hours. It’s even the default closing time… The OP is using Dutch time notation, so it seems like the plugin might need some fixing for national date notations. Or force the admin to use international notation on the back-end?

    Also note that once opening/closing times are set, they cannot be unset anymore. The admin form apparently does not accept empty fields. How to revert to the default?

    UPDATE

    The site in question had a custom time format set on Settings > General. In my case G \h i \m\i\n (which translates to a time like “13 h 30 min”)… So I tested several of the default date/time format options and found that these steps will reproduce the issue:

    1. On a site where the time slot selection is working on the front end, go to the admin Settings > General and change the time formatting option to Custom G\hi (for example, this is the default format on french installations).
    2. Go to Time Slot settings and edit the business opening hours. Make sure they are formatted like “11h30” according to the time formatting setting above. Then Save.
    3. Go to the front-end appointment form and try make a booking…

    Hope that helps you fix the issue ??

    @ereemst to work around the issue, take these steps:

    1. set the site time formatting on Settings > General to either g:i A or H:i (whichever of the two fits your site best)
    2. in the Time Slot business hours settings, modify each time to this format and save the settings.
    3. test your front end form…
    Plugin Author Time Slot

    (@timeslotplugins)

    Thank you @ravanh! We will look into custom time formats and resetting default business hours, and make a note in our documentation about current time format availability.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Time cannot be set’ is closed to new replies.