pikim / grav-plugin-events

This plugin provides Calendar Events for Grav CMS
MIT License
13 stars 11 forks source link

Error using repeating events with PHP7.3 in calendar view #8

Closed slowfox089 closed 4 years ago

slowfox089 commented 4 years ago

When showing the calendar page with php 7.3 and repeating events there are some errors in eventsProcessor.php

1) $count is not defined: solved by adding 'global $count;' to function calculateCount 2) $newStart, $newEnd not defined: solved by adding 'global $newStart, $newEnd;' to function calculateNewDates

pikim commented 4 years ago

Could you please try the following file? eventsProcessor.txt Change the extension to php and replace the original version.

slowfox089 commented 4 years ago

Hi Pikim, don't know what exactly you've done :-) But it seems this version of the eventsProcessor did the trick. Even I wasn't able to spot a difference in the functions that did throw the error :-)

But I didn't have the time to check the complete file ;-)

Thanks and I hope the bugfix is soon available, so I don't have to update manually ;-)

Greetings