Fehler: Fehler nach Contao Update 5.1.*

Matthias Maier's Avatar

Matthias Maier

19 Jul, 2023 02:14 PM

Produkt: Custom Elements Contao

Hallo zusammen,
nach einem Update auf Contao 5.1.* spuckt folgende Zeile einen fehler aus:

'extensions' => \Config::get('validImageTypes'),
ClassNotFoundError: "Attempted to load class "Config" from the global namespace. Did you forget a "use" statement for "League\Flysystem\Config"?" at

hat sich hier die Schreibweise geändert?

Mit freundlichen Grüßen

M. Maier

  1. Support Staff 1 Posted by RockSolid Theme... on 19 Jul, 2023 02:26 PM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Bitte ersetzen Sie die Zeile

    'extensions' => \Config::get('validImageTypes'),
    

    mit folgendem Code:

    'extensions' => '%contao.image.valid_extensions%',
    

    Danach sollte der Fehler nicht mehr auftreten.

  2. 2 Posted by Matthias Maier on 22 Jul, 2023 11:57 AM

    Matthias Maier's Avatar

    Super, hat funktioniert. Vielen Dank.

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