cgoIT / calendar-extended-bundle

Contao 4 Calendar Extension
Other
1 stars 1 forks source link

Website crash after Update to 2.4.2 #19

Closed SpeGal closed 3 months ago

SpeGal commented 3 months ago

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Contao Manager'
  2. Click on 'Update cgoit/calendar-extendedbundle 2.4.2'
  3. Do something 'Request website URI'
  4. See error

Expected behavior With the new update to 2.4.2 the website crashes. Rolling back to 2.4.1 makes the webpage come back online.

Logs [2024-07-15T10:07:34.968852+02:00] request.CRITICAL: Uncaught PHP Exception TypeError: "date(): Argument #2 ($timestamp) must be of type ?int, string given" at GetAllEventsHook.php line 193 {"exception":"[object] (TypeError(code: 0): date(): Argument #2 ($timestamp) must be of type ?int, string given at /var/www/vhosts/domain.de/httpdocs/contao/vendor/cgoit/calendar-extended-bundle/src/Hook/GetAllEventsHook.php:193)"} {"request_uri":"https://www.domain.de/veranstaltungen/eventdetails","request_method":"GET"} [2024-07-15T10:07:35.025908+02:00] messenger.INFO: Stopping worker. {"transport_names":["contao_prio_high"]} {"request_uri":"https://www.domain.de/veranstaltungen/eventdetails","request_method":"GET"} [2024-07-15T10:07:35.135016+02:00] request.INFO: Matched route "tl_page.2966.error_404". {"route":"tl_page.2966.error_404","route_parameters":{"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.2966","pageModel":{"Contao\\PageModel":[]},"_url_fragment":"system/themes/flexible/fonts.min.css","_route":"tl_page.2966.error_404","_route_object":{"Symfony\\Component\\Routing\\Route":[]}},"request_uri":"https://www.domain.de/system/themes/flexible/fonts.min.css","method":"GET"} {"request_uri":"https://www.domain.de/system/themes/flexible/fonts.min.css","request_method":"GET"}

Configuration (please complete the following information):

Additional context Probably related to the fact, that all events need to be stored again. That is very difficult in an installation with hundreds of events. There should be an easier way to accomplish this.

cgoIT commented 3 months ago

I was not able to reproduce the error. So I tried to fix it. Not sure if this now works. Could you please test again? Thx!

SpeGal commented 3 months ago

This fixed it. Thank you!