Verwendung: Update auf contao 5.3 von 4.13 / modernizr und animationen

Meike's Avatar

Meike

28 Apr, 2026 01:12 PM

Produkt: Tao Contao
Contao-Version: frisch auf 5.3 aktualisiert
Browser und Browserversionen: aktuelle firefox und chrome

Hallo zusammen,

ich habe in einer Parallelinstallation auf contao 5.3 aktualisiert und habe ein paar Probleme.

  1. Die Installation läuft nur, wenn ich j_modernizr deaktiviere.
    Ist die Datei noch nötig?

Es wird immer noch dieser Fehler angezeigt ...

Warning: Undefined array key "uploadPath"
ErrorException
Show exception properties
in templates/europakontor/j_modernizr.html5 (line 3)
<?php // Add Modernizr to

$GLOBALS['TL_JAVASCRIPT'][] = $GLOBALS['TL_CONFIG']['uploadPath'] . '/tao/js/modernizr-2.6.2.min.js|static'; ?>

... obwohl ich das neue Template hochgeladen habe. Dev und Prod-Cache gelöscht.

<?php
// Add Modernizr to

$GLOBALS['TL_JAVASCRIPT'][] = Contao\System::getContainer()->getParameter('contao.upload_path') . '/tao/js/modernizr.min.js|static'; ?>
  1. Wenn ich modernizr deaktiviere funktionen die Bild-Slide-In-Animationen des Themes nicht mehr.
    Hängt das zusammen?

Viele Grüße,
Meike

  1. Support Staff 1 Posted by RockSolid Theme... on 28 Apr, 2026 02:47 PM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Die Fehlermeldung Undefined array key "uploadPath" in templates/europakontor/j_modernizr.html5 (line 3) deutet darauf hin, dass diese Template-Datei nicht aktualisiert wurde.

    Existiert die Datei eventuell doppelt? Einmal unter templates/europakontor/j_modernizr.html5 und ein zweites mal als templates/tao/j_modernizr.html5?

    Ansonsten könnte eventuell der PHP-Opcache des Webservers noch die alte Version der Datei im Cache haben. In diesem Fall reicht meist ein Neustart des Webservers oder des PHP-FPM-Prozesses.

    Ist die Datei noch nötig?

    Ja.

    Wenn ich modernizr deaktiviere funktionen die Bild-Slide-In-Animationen des Themes nicht mehr. Hängt das zusammen?

    Ja.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac