The error is caused by an infinite loop of
while ( count($EM_Events) > 0 )
If I set
$ical_limit = 5;
for example, everything is running correctly.
Obviously, the function get_option('dbem_ical_limit');
returns an incorrect result.
Might it be the case that the value of dbem_ical_limit
is not set correctly?