Events Manager
[resolved] "Error 500 - Internal server error" occurring whilst accessing events.ics (8 posts)

  1. Olaf01
    Posted 3 years ago #


    since the update to version 5.4.2 I get an "Error 500 - Internal server error" when I try to access the events.ics page.

    What could cause the error?



  2. Olaf01
    Posted 3 years ago #

    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?

  3. Dueppi
    Posted 3 years ago #

    Thank you,this solves also my problem!

  4. Olaf01
    Posted 3 years ago #

    Unfortunately, there is only a workaround and not a solution!

  5. angelo_nwl
    NetWebLogic Support
    Posted 3 years ago #

    thanks, we will going to check this out.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    are you sure that this is not a problem with your server timing out due to the number of events you're trying to output in your ical?

    If you have 1000s of events that could be why, since 0 = no limit.

  7. Frank Schwarz
    Posted 3 years ago #

    I can confirm that this problem is related to dbem_ical_limit. It is initialized with value 0. This causes

    if( $ical_limit != 0 && $count >= $ical_limit ){
                //we've reached our limit, or showing one event only

    to never become true. (ical.php:88)

    I changed the value of dbem_ical_limit manually in the database and it again works properly.

  8. angelo_nwl
    NetWebLogic Support
    Posted 3 years ago #

    just to confirm, can I know how many events do you have?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic