By Guest on Tuesday, 15 December 2015
Posted in Pre-Sales
Replies 2
Likes 0
Views 1.3K
Votes 0
Is it possible to impose a global limit on the number of times an event can repeat, or limit the future reach of the calendar? With our current system, we've had users enter events that repeat well into the year 3,000 which creates an enormous database problem.
We did have a limit of 2037 (required by number constraints in older versions of PHP) but recently relaxed this to 2999 for 64 bit servers. That is probably too large.

If you edit the file components/com_jevents/libraries/iCalRRule.php and change line 437 from
$maxyear  = (PHP_INT_SIZE === 8) ? 2999 : 2037;

to
$maxyear  = (PHP_INT_SIZE === 8) ? 2099 : 2037;

it would stop the repeats at 2099 instead
·
Wednesday, 16 December 2015 10:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you!
·
Wednesday, 16 December 2015 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post