Fehler: Tao Logo kann keine SVG Datei anzeigen

Sabine's Avatar

Sabine

26 Aug, 2025 08:27 AM

Produkt: Tao Contao
Contao-Version: 5.3.1.1
Browser und Browserversionen: Chrome ist auf dem neuesten Stand Version 139.0.7258.139

Sehr geehrtes Team,
wenn ich versuche im Modul Tao-Logo unter Theme > Layout in eingebundene Module, Modul Tao-Logo statt einem png ein SVG Logo einzubinden erscheint das Logo entweder gar nicht oder sehr winzig.
Egal welche Einstellungen ich bezüglich Grösse ich Im Menü Modul bearbeiten einstelle.
Ich verwende Contao 5.3.1.1
Vor einiger Zeit gab es noch keine Probleme im Theme Tao ein SVG Logo einzubinden.

Das gleiche SVG Logo bzw. Bild läßt sich im Content innerhalb einer Seite einbinden und ist sichtbar.
Aktuell befindet sich in der homepage ein png Bild, dies wird problemlos angezeigt.

Woran kann das liegen.

  1. Support Staff 1 Posted by RockSolid Theme... on 27 Aug, 2025 03:03 PM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Die SVG-Datei enthält einen <!DOCTYPE der von Contao seit Version 5.3.30 aus Sicherheitsgründen nicht mehr unterstützt wird. Der Beginn der Datei sieht folgendermaßen aus:

    <?xml version="1.0" encoding="utf-8"?>
    <!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In  -->
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
        <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
        <!ENTITY ns_svg "http://www.w3.org/2000/svg">
        <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
    ]>
    <svg  version="1.1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
         width="384" height="104" viewBox="58 47 384 104" enable-background="new 58 47 384 104" xml:space="preserve">
    

    Warum der Fehler bei Ihnen in Contao 5.3.1 ebenfalls auftritt können wir nicht feststellen. Unabhängig davon sollten Sie jedoch unbedingt auf Version 5.3.37 aktualisieren um alle Sicherheitsupdates zu erhalten.

  2. 2 Posted by Sabine on 28 Aug, 2025 09:13 AM

    Sabine's Avatar

    Vielen Dank für Ihre Antwort!

    Da ich eine ältere Illustrator Datei CS2 benutzt habe, um daraus das SVG zu exprtieren wurde dieser inkompatible Code erzeugt:
    Beim Versuch den störenden Code per Texteditior zu entfernen gerät alles durcheinander.

    Ich habe jetzt Inkscape benutzt um das Logo in kompatibler Form als SVG abzuspeichern.

    Jetzt ist alles prima und das Logo wird angezeigt, auch habe ich jetzt auf die neuere Contao Version 5.3.37 aktualisiert.

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • logo_sartory_2025-25-8.svg 53.7 KB

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