Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularSierraWidget::reloadRecurrenceDropdownCallback() should not be called statically in /var/www/bangor/docroot/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php on line 69

Created on 22 February 2020, almost 5 years ago
Updated 13 February 2023, almost 2 years ago

When trying to save a 'custom' date configuration, I get this Ajax error
Drupal 8.8.1
PHP 7.2.22

To reproduce
- Add a date_recur field to an 'event' content type
- Configure with the Sierra form widget in the form display
- Create an event node
- In repeating dropdown, select 'custom'
- make changes in modal and click save on modal
- User sees ajax error in console and the select dropdown does not update

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /node/10/edit?ajax_form=1
StatusText: OK
ResponseText:
Deprecated:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularSierraWidget::reloadRecurrenceDropdownCallback() should not be called statically in /var/www/bangor/docroot/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php on line 69
[{“command”:“update_build_id”,“old”:“form-kVkVbH_Bhh7GuiqCI_Ed6YV0U3iY-A_8nK20QI8u7gk”,“new”:“form-UAYBm63ANbmbzE4jCT3JGBBHXwqeEWRFRxVHLEfgiL4"},{“command”:“insert”,“method”:null,“selector”:null,“data”:“\u003Cdiv id=\u0022dropdown-wrapper-field_event_date_time-0\u0022\u003E\n\n\u003C!-- THEME DEBUG --\u003E\n\u003C!-- THEME HOOK: \u0027form_element\u0027 --\u003E\n\u003C!-- BEGIN OUTPUT from \u0027core\/themes\/classy\/templates\/form\/form-element.html.twig\u0027 --\u003E\n\u003Cdiv class=\u0022js-form-item form-item js-form-type-select form-type-select js-form-item-field-event-date-time-0-recurrence-option form-item-field-event-date-time-0-recurrence-option form-no-label\u0022\u003E\n      \n\n\u003C!-- THEME DEBUG --\u003E\n\u003C!-- THEME HOOK: \u0027form_element_label\u0027 --\u003E\n\u003C!-- BEGIN OUTPUT from \u0027core\/themes\/classy\/templates\/form\/form-element-label.html.twig\u0027 --\u003E\n\u003Clabel for=\u0022edit-field-event-date-time-0-recurrence-option--4xQL9ieQSfE\u0022 class=\u0022visually-hidden\u0022\u003ERecurrence option\u003C\/label\u003E\n\u003C!-- END OUTPUT from \u0027core\/themes\/classy\/templates\/form\/form-element-label.html.twig\u0027 --\u003E\n\n\n        \n\n\u003C!-- THEME DEBUG --\u003E\n\u003C!-- THEME HOOK: \u0027select\u0027 --\u003E\n\u003C!-- BEGIN OUTPUT from \u0027core\/themes\/classy\/templates\/form\/select.html.twig\u0027 --\u003E\n\u003Cselect class=\u0022date-recur-modular-sierra-widget-recurrence-option form-select\u0022 data-drupal-selector=\u0022edit-field-event-date-time-0-recurrence-option\u0022 id=\u0022edit-field-event-date-time-0-recurrence-option--4xQL9ieQSfE\u0022 name=\u0022field_event_date_time[0][recurrence_option]\u0022\u003E\u003Coption value=\u0022\u0022\u003EDoes not repeat\u003C\/option\u003E\u003Coption value=\u0022daily\u0022\u003EDaily\u003C\/option\u003E\u003Coption value=\u0022weekly_oneday\u0022\u003EWeekly on Tuesday\u003C\/option\u003E\u003Coption value=\u0022monthly_th_weekday\u0022\u003EMonthly on the 1st Tuesday\u003C\/option\u003E\u003Coption value=\u0022yearly_monthday\u0022\u003EAnnually on March 3\u003C\/option\u003E\u003Coption value=\u0022weekdayly\u0022\u003EEvery weekday (Monday to Friday)\u003C\/option\u003E\u003Coption value=\u0022custom\u0022 selected=\u0022selected\u0022\u003Eevery other week on Monday, starting from Tuesday, March 3, 2020 - 00:00, forever\u003C\/option\u003E\u003Coption value=\u0022custom_open\u0022\u003ECustom...\u003C\/option\u003E\u003C\/select\u003E\n\u003C!-- END OUTPUT from \u0027core\/themes\/classy\/templates\/form\/select.html.twig\u0027 --\u003E\n\n\n        \u003C\/div\u003E\n\n\u003C!-- END OUTPUT from \u0027core\/themes\/classy\/templates\/form\/form-element.html.twig\u0027 --\u003E\n\n\u003C\/div\u003E”,“settings”:null}]”
🐛 Bug report
Status

Postponed: needs info

Version

3.0

Component

Code

Created by

🇨🇦Canada modestmoes

Live updates comments and jobs are added and updated live.

Missing content requested by

🇦🇺Australia dpi
about 1 year ago
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024