D:10.2.2
Smart_date: 4.0.3
Fullcalendar_view: 5.1.13
Problem/Motivation
The fullcalendar_view calendar with field Smart date range does not display the correct order of events. Places them in the calendar in the wrong field. The event has the correct date but the wrong field. Some one-day events are extended to several days. It reports a lot of errors in the log.
Steps to reproduce
If in the field Smart date range in part Allowed number of values I put 1, I have errors in fullcalendar_view and lot of errors in the log.
If I put Unlimited or 2 there are no errors.
Warning: Undefined array key "end_value" in Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->updateEntry() (row 125 in /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php)
#1 /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php(125): _drupal_error_handler()
#2 /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php(83): Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->updateEntry()
#3 /home/test/public_html/modules/contrib/fullcalendar_view/fullcalendar_view.theme.inc(39): Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->process()
#4 [internal function]: template_preprocess_views_view_fullcalendar()
.....
Warning: Undefined array key "value" in Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->updateEntry() (row 124 in /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php)
#0 /home/test/public_html/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php(124): _drupal_error_handler()
#2 /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php(83): Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->updateEntry()
#3 /home/kc/public_html/modules/contrib/fullcalendar_view/fullcalendar_view.theme.inc(39): Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->process()
#4 [internal function]: template_preprocess_views_view_fullcalendar()
.....
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | smart_date-3423255.patch | 810 bytes | abhishek_gupta1 |
Comments
Comment #2
abhishek_gupta1 commented@krug, I have fixed the issue and created patch. please kindly review it.
Comment #3
ichthus commentedThanks for the patch #2.
Working on a new site, soon to be releasedApplied the patch just a few minutes ago.
This fixed all the "Undefined array key" error messages for me.
Unlike krug I did not come across any other issues, but my dev site is sparsely populated.
Just noticed that I had somehow turned cron off for a couple of weeks!
So I am running a dev site with slightly OLD smart date and Fullcalendar.
Thanks anyway for the work you do.
Comment #5
mandclu commentedThanks for the fix here. A modified version of this has been merged into the 4.1.x branch, and should be in a release soon.
Comment #6
mandclu commented@krug Have you tried the patch in #3378355: When using Fullcalendar View calendar dates are off when start field is not 'multiple' to see if that resolves your other issues?