craigk5n / webcalendar

WebCalendar is a PHP application used to maintain a calendar for a single user or an intranet group of users. It can also be configured as an event calendar.
http://www.k5n.us/webcalendar.php
GNU General Public License v2.0
149 stars 71 forks source link

Unable to view calendar after adding a calendar entry #338

Open NielsOkker opened 1 year ago

NielsOkker commented 1 year ago

Strato (my host) is suggesting users to go from PHP 7.4 to PHP 8.0. Therefore I have to upgrade a webcalendar from v1.2.7 to v1.9.1. I have created a completely new instance by using the Strato wizard (which also creates a new database MySQL 5.7).

First I got a HTTP 500 error because my browser was in Dutch. After changing that I was able to view settings (so this still is an issue), but still got HTTP 500 errors when viewing any calendar. see the logging below. I removed the only calendar entry in the database which allows me to see (an empty) calendar. Changing back the PHP version to 7.4 prevents HTTP 500 errors, but always shows an empty calendar. This looks very similar to https://github.com/craigk5n/webcalendar/issues/333. Could you help me out by looking into these issues?

11.01.2023 19:33:57 website.nl [] AH01215: PHP Warning: A non-numeric value encountered in webcalendar_02/app/includes/classes/Event.php on line 422: webcalendar_02/app/week.php 11.01.2023 19:33:57 website.nl [] AH01215: PHP Fatal error: Uncaught TypeError: gmmktime(): Argument #5 ($day) must be of type ?int, string given in webcalendar_02/app/includes/classes/Event.php:423: webcalendar_02/app/week.php 11.01.2023 19:33:57 website.nl [] AH01215: Stack trace:: webcalendar_02/app/week.php 11.01.2023 19:33:57 website.nl [] AH01215: #0 webcalendar_02/app/includes/classes/Event.php(423): gmmktime(): webcalendar_02/app/week.php 11.01.2023 19:33:57 website.nl [] AH01215: #1 webcalendar_02/app/includes/functions.php(5324): Event->getDateTimeTS(): webcalendar_02/app/week.php 11.01.2023 19:33:57 website.nl [] AH01215: #2 webcalendar_02/app/includes/functions.php(5469): query_events(): webcalendar_02/app/week.php 11.01.2023 19:33:57 website.nl [] AH01215: #3 webcalendar_02/app/week.php(58): read_events(): webcalendar_02/app/week.php 11.01.2023 19:33:57 website.nl [] AH01215: #4 {main}: webcalendar_02/app/week.php 11.01.2023 19:33:57 website.nl [] AH01215: thrown in webcalendar_02/app/includes/classes/Event.php on line 423: webcalendar_02/app/week.php