WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Olaf01
    Member
    Posted 10 months ago #

    Hello,

    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?

    Olaf

    http://wordpress.org/extend/plugins/events-manager/

  2. Olaf01
    Member
    Posted 10 months 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
    Member
    Posted 10 months ago #

    Thank you,this solves also my problem!

  4. Olaf01
    Member
    Posted 10 months ago #

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

  5. angelo
    NetWebLogic Support
    Posted 10 months ago #

    thanks, we will going to check this out.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 10 months 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
    Member
    Posted 10 months 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
                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.

  8. angelo
    NetWebLogic Support
    Posted 10 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic