Date and Slot Picker not showing up

Created on 30 October 2024, 22 days ago

Hey,

I recently added webform_booking to my drupal site, but the UI to pick a slot isn't showing up. I only get a input field for a string. (See images)

As far as I know I'm not doing something wrong. The settings I used are almost the same as in the example β†’ .

Is there a way to fix this problem?

Thanks in advance for the help!

Robbien

πŸ› Bug report
Status

Active

Version

1.0

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @robbienlive
  • πŸ‡ΊπŸ‡ΈUnited States duckydan

    I am running into the exact same thing.

    Drupal 10.3.6
    PHP 8.3.6
    MySQL 10.11.8
    Bootstrap 5.3 theme.

  • πŸ‡ΊπŸ‡ΈUnited States duckydan

    Found this in the logs:

    Warning: Undefined array key "#default_price" in Drupal\webform_booking\Plugin\WebformElement\WebformBooking->prepare() (line 400 of /var/www/html/drupal/web/modules/contrib/webform_booking/src/Plugin/WebformElement/WebformBooking.php)

  • πŸ‡΅πŸ‡ΉPortugal rfmarcelino

    Hey @robbienlive and @duckydan
    Thank you for your feedback.

    To debug your issue, make sure you're using the latest version and if you have any errors on the browser console.
    The calendar widget is created with JavaScript. If it's not appearing, it might be a conflict with something else.

    The warning:
    Warning: Undefined array key "#default_price"
    should not appear in the latest version, but it's just a warning and shouldn't have any impact.

  • πŸ‡ΊπŸ‡ΈUnited States duckydan

    I had uninstalled it and was looking to build something. I put it back and made sure it was the most recent version (1.1.1).

    Nothing in the console at all.

    I am now seeing the calendar, but it is not showing any available dates and defaults to October. Selecting November switches it immediately to October again. There are no dates in October that should be selectable, obviously.

    Webform field:

    Console:

    Recording of behavior is also attached.

    What else do you need?

  • πŸ‡΅πŸ‡ΉPortugal rfmarcelino

    The problem seems to be the start and end date that should be like this:

    The module expects the format day-month-year and on your config the end date is invalid

  • πŸ‡ΊπŸ‡ΈUnited States duckydan

    Thanks.

    Why does the picket enter the wrong data? It won't let me enter the date manually either. Is there some date/time format setting?

    I tried manually entering it, and then picking from the data picker. Bother formatted it mm/dd/yyyy

    If you hard-coded some date format, maybe those two fields should be a text field and not use a picker that does not support it.

    I can record how it works if that would help.

  • πŸ‡ΊπŸ‡ΈUnited States duckydan
  • Hey,

    I updated everything to the lastest version, and still have the problem. I get some errors in my console about dates. The only thing I changed, was the title.

    Besides that, when I want to open settings, it gives me an error (500).

    In the drupal error log I could find these error messages:

    Deprecated function: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\webform\Plugin\WebformElementBase->prepare() (line 730 of C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\Plugin\WebformElementBase.php)

    #0 C:\xampp\htdocs\SpotsOfKnowledge\web\core\includes\bootstrap.inc(166): _drupal_error_handler_real(8192, 'preg_split(): P...', 'C:\\xampp\\htdocs...', 730)
    #1 [internal function]: _drupal_error_handler(8192, 'preg_split(): P...', 'C:\\xampp\\htdocs...', 730)
    #2 C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\Plugin\WebformElementBase.php(730): preg_split('/ +/', NULL)
    #3 C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\Plugin\WebformElement\OptionsBase.php(197): Drupal\webform\Plugin\WebformElementBase->prepare(Array, NULL)
    #4 C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\Plugin\WebformElement\Select.php(124): Drupal\webform\Plugin\WebformElement\OptionsBase->prepare(Array, NULL)
    #5 C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\Plugin\WebformElementManager.php(198): Drupal\webform\Plugin\WebformElement\Select->prepare(Array)
    #6 C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\Utility\WebformElementHelper.php(354): Drupal\webform\Plugin\WebformElementManager->processElement(Array)
    #7 C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\EntitySettings\WebformEntitySettingsGeneralForm.php(101): Drupal\webform\Utility\WebformElementHelper::process(Array)
    #8 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Entity\EntityForm.php(107): Drupal\webform\EntitySettings\WebformEntitySettingsGeneralForm->form(Array, Object(Drupal\Core\Form\FormState))
    #9 [internal function]: Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
    #10 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Form\FormBuilder.php(536): call_user_func_array(Array, Array)
    #11 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Form\FormBuilder.php(284): Drupal\Core\Form\FormBuilder->retrieveForm('webform_setting...', Object(Drupal\Core\Form\FormState))
    #12 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Controller\FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\webform\EntitySettings\WebformEntitySettingsGeneralForm), Object(Drupal\Core\Form\FormState))
    #13 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
    #14 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
    #15 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Render\Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #16 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
    #17 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
    #18 C:\xampp\htdocs\SpotsOfKnowledge\vendor\symfony\http-kernel\HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #19 C:\xampp\htdocs\SpotsOfKnowledge\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
    #20 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #21 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #22 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #23 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\big_pipe\src\StackMiddleware\ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #24 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #25 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #26 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #27 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #28 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #29 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #30 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #31 C:\xampp\htdocs\SpotsOfKnowledge\web\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
    #32 {main}
    .

    Warning: Trying to access array offset on value of type null in Drupal\webform\EntitySettings\WebformEntitySettingsGeneralForm->form() (line 175 of C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\EntitySettings\WebformEntitySettingsGeneralForm.php)

    #0 C:\xampp\htdocs\SpotsOfKnowledge\web\core\includes\bootstrap.inc(166): _drupal_error_handler_real(2, 'Trying to acces...', 'C:\\xampp\\htdocs...', 175)
    #1 C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\EntitySettings\WebformEntitySettingsGeneralForm.php(175): _drupal_error_handler(2, 'Trying to acces...', 'C:\\xampp\\htdocs...', 175)
    #2 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Entity\EntityForm.php(107): Drupal\webform\EntitySettings\WebformEntitySettingsGeneralForm->form(Array, Object(Drupal\Core\Form\FormState))
    #3 [internal function]: Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
    #4 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Form\FormBuilder.php(536): call_user_func_array(Array, Array)
    #5 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Form\FormBuilder.php(284): Drupal\Core\Form\FormBuilder->retrieveForm('webform_setting...', Object(Drupal\Core\Form\FormState))
    #6 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Controller\FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\webform\EntitySettings\WebformEntitySettingsGeneralForm), Object(Drupal\Core\Form\FormState))
    #7 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
    #8 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
    #9 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Render\Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #10 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
    #11 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
    #12 C:\xampp\htdocs\SpotsOfKnowledge\vendor\symfony\http-kernel\HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #13 C:\xampp\htdocs\SpotsOfKnowledge\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
    #14 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #15 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #16 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #17 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\big_pipe\src\StackMiddleware\ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #18 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #19 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #20 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #21 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #22 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #23 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #24 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #25 C:\xampp\htdocs\SpotsOfKnowledge\web\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
    #26 {main}

    .

    MESSAGE:
    TypeError: Drupal\webform\EntitySettings\WebformEntitySettingsBaseForm::appendBehaviors(): Argument #4 ($default_settings) must be of type array, null given, called in C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\EntitySettings\WebformEntitySettingsGeneralForm.php on line 278 in Drupal\webform\EntitySettings\WebformEntitySettingsBaseForm->appendBehaviors() (line 129 of C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\EntitySettings\WebformEntitySettingsBaseForm.php).

    BACKTRACE:
    #0 C:\xampp\htdocs\SpotsOfKnowledge\web\modules\contrib\webform\src\EntitySettings\WebformEntitySettingsGeneralForm.php(278): Drupal\webform\EntitySettings\WebformEntitySettingsBaseForm->appendBehaviors(Array, Array, Array, NULL)
    #1 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Entity\EntityForm.php(107): Drupal\webform\EntitySettings\WebformEntitySettingsGeneralForm->form(Array, Object(Drupal\Core\Form\FormState))
    #2 [internal function]: Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
    #3 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Form\FormBuilder.php(536): call_user_func_array(Array, Array)
    #4 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Form\FormBuilder.php(284): Drupal\Core\Form\FormBuilder->retrieveForm('webform_setting...', Object(Drupal\Core\Form\FormState))
    #5 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Controller\FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\webform\EntitySettings\WebformEntitySettingsGeneralForm), Object(Drupal\Core\Form\FormState))
    #6 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
    #7 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
    #8 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\Render\Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #9 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
    #10 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
    #11 C:\xampp\htdocs\SpotsOfKnowledge\vendor\symfony\http-kernel\HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #12 C:\xampp\htdocs\SpotsOfKnowledge\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
    #13 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #14 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #15 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #16 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\big_pipe\src\StackMiddleware\ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #17 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #18 C:\xampp\htdocs\SpotsOfKnowledge\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #19 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #20 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #21 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #22 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\StackMiddleware\StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #23 C:\xampp\htdocs\SpotsOfKnowledge\web\core\lib\Drupal\Core\DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #24 C:\xampp\htdocs\SpotsOfKnowledge\web\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
    #25 {main}

  • πŸ‡΅πŸ‡ΉPortugal rfmarcelino

    @duckydan

    Why does the picker enter the wrong data? It won't let me enter the date manually either. Is there some date/time format setting?

    That is part of your browser using your regional settings. Since I'm in Europe, I used our usual date format. We could eventually have something to detect the user's settings and account for it, but for now, it's working as designed.

    @robbienlive some of the warnings you're getting are from webform (a separate project) and 500 is a server error that can be caused by multiple things (resources, stack version or modules,...)

    Not much info in your message can point to an issue /solution.

    ---
    If you encounter an issue that you think might be related to this project, try to replicate it in a clean install.
    If the problem persists, share your webform element configuration so I can recreate it and fix it.

  • πŸ‡ΊπŸ‡ΈUnited States duckydan

    OK, thanks for the response.

    No one outside of a region that uses dd/mm/yyyy can use it, as designed.

    Please consider adding that to the description or readme to save other people's time.

  • πŸ‡ΊπŸ‡ΈUnited States drupgirl

    Not to open a closed issue, but the reported issue hasn't been resolved.

    The calendar and slots that are show in the image on the project page are not rendered. Also, as reported, the Month filter does not work. There is no real indication on how to get this to work. The readme and project page do not give any clear settings to guide people who may be interested in using this module.

    Since you say that the user must enter a text value for the date in a specific format, you may want to include that text somewhere.

    This module has potential, but it the UX needs work so that users can either click on the slots that you show in your picture or use a date picker. Please consider making this module usable to the regular person who is used modern interfaces.

  • πŸ‡΅πŸ‡ΉPortugal rfmarcelino

    Hi @drupgirl,
    Yes, I'm aware that the issue was not fixed.
    The module was developed considering the format the whole world uses except the US (dd-mm-yyyy).
    I'm exploring options to support the US format mm-dd-yyyy, but it's not a trivial fix that will take some time and I need to manage the contribution hours between different projects and priorities. Contributions are always welcome πŸ™‚
    Until then, a section 'Limitations' was added to the project description and suggested by @duckydan

  • πŸ‡΅πŸ‡ΉPortugal rfmarcelino

    Hey,
    Just made an attempt to fix the issue for US users.
    Try the latest dev version
    composer require 'drupal/webform_booking:1.1.x-dev@dev'
    and set your default country on the settings page to US (/admin/config/services/webform_booking)

Production build 0.71.5 2024