WordPress.org

Support

Support » Plugins and Hacks » [Resolved] "Error 500 – Internal server error" occurring whilst accessing events.ics

[Resolved] "Error 500 – Internal server error" occurring whilst accessing events.ics

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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?

    Thank you,this solves also my problem!

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

    angelo_nwl

    @angelo_nwl

    NetWebLogic Support

    thanks, we will going to check this out.

    Plugin Author Marcus

    @netweblogic

    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.

    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
                break;
            }

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

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

    angelo_nwl

    @angelo_nwl

    NetWebLogic Support

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] "Error 500 – Internal server error" occurring whilst accessing events.ics’ is closed to new replies.