Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ical funktioniert nicht mehr mit Contao 4.9.33 (PHP 8.1) #29

Open
SpeGal opened this issue Sep 1, 2022 · 3 comments
Open

Ical funktioniert nicht mehr mit Contao 4.9.33 (PHP 8.1) #29

SpeGal opened this issue Sep 1, 2022 · 3 comments

Comments

@SpeGal
Copy link

SpeGal commented Sep 1, 2022

Internal Server Error
Was ist das Problem?
Compile Error: Array and string offset access syntax with curly braces is no longer supported

Das kommt, wenn man im Backend unter Events einen Kalender bearbeiten möchte.
Die Frontendseiten mit eingebautem Kalender/Eventliste funktionieren auch nicht mehr.

@jankout
Copy link

jankout commented Nov 4, 2022

Könntet ihr das bitte reparieren? Leider läuft es nicht mehr mit PHP 8.0 und höher. Ich bekomme folgende Fehlermeldung. Contao 4.13.x

[2022-11-04T13:53:14.427600+01:00] request.CRITICAL: Uncaught PHP Exception TypeError: "join(): Argument #2 ($array) must be of type ?array, string given" at /homepages/23/d515221825/htdocs/contao/vendor/craffft/contao-calendar-ical-bundle/src/Resources/contao/classes/CalendarImport.php line 40 {"exception":"[object] (TypeError(code: 0): join(): Argument #2 ($array) must be of type ?array, string given at /homepages/23/d515221825/htdocs/contao/vendor/craffft/contao-calendar-ical-bundle/src/Resources/contao/classes/CalendarImport.php:40)"} []

@cmette
Copy link

cmette commented Dec 12, 2022

Ich habe hier auch Probleme. Folgende Zeile wirft neuerdings eine Exception:

$arrCalendars = $this->Database->prepare("SELECT id FROM tl_calendar WHERE id IN (" . join($arrCalendars,

Der Code dort sieht etwas strange aus. join() ist doch ein alias für implode()?? und implode fordert als erstes Argument den "Separator" und als zweites das "Array". Wurde das hier versehentlich vertauscht?

@Webstylerin
Copy link

Ich bin nun durch ein Contao-Update in den gleiche Fehler gelaufen. Contao 4.13, PHP 8.1.

Uncaught PHP Exception TypeError: "join(): Argument #2 ($array) must be of type ?array, string given" at /…/vendor/craffft/contao-calendar-ical-bundle/src/Resources/contao/classes/CalendarImport.php line 40

Für alle, die auf den selben Fehler stoßen, es gibt zum Glück eine PHP 8-Variante:
https://github.com/cgoIT/contao-calendar-ical-bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants