• Resolved edwindekuiper

    (@edwindekuiper)


    Can’t show the plugin anymore.
    From one day to another, the page craches with: “Er heeft zich een kritieke fout voorgedaan…”

    Just disabling the plugin recovers the page.

    Foutdetails
    ===========
    Een fout van het type E_ERROR werd veroorzaakt op regelnummer 581 van het bestand ....deventerschermvereniging.nl/httpdocs/www/wp-content/plugins/simple-google-icalendar-widget/includes/ical.php. Foutmelding: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone () in .../deventerschermvereniging.nl/httpdocs/www/wp-content/plugins/simple-google-icalendar-widget/includes/ical.php:581
    Stack trace:
    ..../deventerschermvereniging.nl/httpdocs/www/wp-content/plugins/simple-google-icalendar-widget/includes/ical.php(581): DateTimeZone->__construct()
    ..../deventerschermvereniging.nl/httpdocs/www/wp-content/plugins/simple-google-icalendar-widget/includes/ical.php(640): IcsParser->parseIanaTimezoneid()
    .../deventerschermvereniging.nl/httpdocs/www/wp-content/plugins/simple-google-icalendar-widget/includes/ical.php(210): IcsParser->parseVevent()
    .../deventerschermvereniging.nl/httpdocs/www/wp-content/plugins/simple-google-icalendar-widget/simple-google-icalendar-widget.php(137): IcsParser->parse()
    .../deventerschermvereniging.nl/httpdocs/www/wp-content/plugins/simple-google-icalendar-widget/simple-google-icalendar-widget.php(

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bramwaas

    (@bramwaas)

    Hi Edwin,

    Thank you for your detailed feedback.
    Sad to hear that my plugin crashes your site.

    As far as I can see from the error details it is caused by an appointment with a timezone that is not available in my conversion table. I expect the appointment is made in the last hour before your site crashed. Maybe that gives you a lead for a workaround.

    Anyway this should not give an unexpected error(Uncaught Exception) so I’m going to try to protect my code from such errors and see if my translation table of microsoft timezones needs to be expanded. In this way I hope to be able to present a new version soon in which this error no longer occurs.

    If you want you can help me with the .ics file. I suppose you have an outlook agenda then you can probably download the ics file on an url like https://outlook.live.com/owa/calendar/00000000-0000-0000-0000-000000000000/…/cid-…/calendar.ics

    You can contact me via contact@ with my website domain:
    waasdorpsoekhan.nl
    or I can mail you via the secretaris email-adres on the deventer scherm vereniging site.

    Kind regards
    Bram Waasdorp

    UPDATE
    After some further searching, I’m convinced that the error probably occurs if a timezone cannot be found in the translation table and as a last resort the timezone of the WordPress installation is used. If this time zone is not a city, but at a UTC time, eg UTC+1, it will still go wrong. If this is indeed the case, you can solve the error by setting the time zone to Amsterdam in the General settings of WordPress.

    • This reply was modified 4 years, 1 month ago by bramwaas.
    Plugin Author bramwaas

    (@bramwaas)

    fixed with version 1.4.1.

    Error was caused by timezone setting in WP settings used as fallback for an empty or incorrect timezone.
    If a timezone offset such as UTC-1 is used there, the name is empty. So the fall-back time zone could not be determined from this. With the wp-timezone() function this does work. So now I use that as fallback.
    This solves the error.

    Thanks Edwin for reporting this error and helping me fix it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error while loading’ is closed to new replies.