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()
.....

CommentFileSizeAuthor
#2 smart_date-3423255.patch810 bytesabhishek_gupta1

Comments

krug created an issue. See original summary.

abhishek_gupta1’s picture

Status: Active » Needs review
StatusFileSize
new810 bytes

@krug, I have fixed the issue and created patch. please kindly review it.

ichthus’s picture

Thanks for the patch #2.

Working on a new site, soon to be released
Applied 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.

  • mandclu committed 9e72df51 on 4.1.x
    Issue #3423255 by abhishek_gupta1, mandclu: Error in fullcalendar_view...
mandclu’s picture

Version: 4.0.3 » 4.1.x-dev
Status: Needs review » Fixed

Thanks 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.

mandclu’s picture

@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?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.