Ergebnis 1 bis 3 von 3

Thema: GELÖST: PHP-Warnung Debug-Modus und Contao Manager

  1. #1
    Contao-Nutzer Avatar von Transparenz
    Registriert seit
    27.06.2010.
    Ort
    Allgäu
    Beiträge
    29

    Standard GELÖST: PHP-Warnung Debug-Modus und Contao Manager

    Beim erneuern des Prod.-Cache im Manager bekomme ich folgende PHP-Warnung:

    Code:
    DOMDocument::loadXML(): Empty string supplied as input in /xxx/htdocs/standard/vendor/contao/core-bundle/src/Config/Loader/XliffFileLoader.php on line 103
    Das wäre nicht sooo schlimm Aber dieser Fehler scheint auch die Anzeige vom Backend beim Aktivieren des Debug-Modus zu verhindern.

    Meine bisherigen Recherchen lieferten mir keinen brauchbaren Anhaltspunkt, der Fehler tritt auch bei anderen Installationen/Hostings auf.
    Was kann ich tun? Vielen Dank für jede Hilfe.

    Hier das dev-log:

    Code:
    [2021-07-28 11:08:29] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://standard.schmidundkeck.de/contao","method":"GET"} []
    [2021-07-28 11:08:29] security.DEBUG: Read existing security token from the session. {"key":"_security_contao_backend","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
    [2021-07-28 11:08:29] security.DEBUG: User was reloaded from a user provider. {"provider":"Contao\\CoreBundle\\Security\\User\\ContaoUserProvider","username":"admin"} []
    [2021-07-28 11:08:30] request.CRITICAL: Uncaught PHP Exception ErrorException: "Warning: DOMDocument::loadXML(): Empty string supplied as input" at /xxx/htdocs/standard/vendor/contao/core-bundle/src/Config/Loader/XliffFileLoader.php line 103 {"exception":"[object] (ErrorException(code: 0): Warning: DOMDocument::loadXML(): Empty string supplied as input at /xxx/htdocs/standard/vendor/contao/core-bundle/src/Config/Loader/XliffFileLoader.php:103)"} []
    [2021-07-28 11:08:30] security.DEBUG: Stored the security token in the session. {"key":"_security_contao_backend"} []
    [2021-07-28 11:08:30] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_route":"_wdt","_controller":"web_profiler.controller.profiler::toolbarAction","token":"b3634a"},"request_uri":"https://standard.schmidundkeck.de/_wdt/b3634a","method":"GET"} []
    [2021-07-28 11:08:51] request.INFO: Matched route "_profiler". {"route":"_profiler","route_parameters":{"_route":"_profiler","_controller":"web_profiler.controller.profiler::panelAction","token":"b3634a"},"request_uri":"https://standard.schmidundkeck.de/_profiler/b3634a?panel=logger","method":"GET"} []
    [2021-07-28 11:08:51] request.INFO: Matched route "_profiler_search_bar". {"route":"_profiler_search_bar","route_parameters":{"_route":"_profiler_search_bar","_controller":"web_profiler.controller.profiler::searchBarAction"},"request_uri":"https://standard.schmidundkeck.de/_profiler/search_bar?panel=logger","method":"GET"} []
    [2021-07-28 11:09:48] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "No routes found for "/contao-manager/users.json/"." [] []
    [2021-07-28 11:09:48] app.DEBUG: Router Symfony\Cmf\Component\Routing\DynamicRouter was not able to match, message "" [] []
    [2021-07-28 11:09:48] request.INFO: Matched route "tl_page.5.error_404". {"route":"tl_page.5.error_404","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","_url_fragment":"contao-manager/users.json","_route":"tl_page.5.error_404"},"request_uri":"https://standard.schmidundkeck.de/contao-manager/users.json","method":"GET"} []
    [2021-07-28 11:09:48] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2021-07-28 11:09:48] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "No routes found for "/contao-manager/users.json/"." [] []
    [2021-07-28 11:09:48] app.DEBUG: Router Symfony\Cmf\Component\Routing\DynamicRouter was not able to match, message "" [] []
    [2021-07-28 11:09:48] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was unable to generate route. Reason: 'Route 'contao_index' not found': Unable to generate a URL for the named route "contao_index" as such route does not exist. [] []
    [2021-07-28 11:09:48] app.DEBUG: Executing cron job "Contao\CoreBundle\Cron\LegacyCron::onMinutely" [] []
    Geändert von Transparenz (09.08.2022 um 12:51 Uhr)

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.092
    Partner-ID
    10107

    Standard

    Hast du eigene Übersetzungen in XLF Dateien? Wenn ja ist dort wohl etwas nicht korrekt eingetragen.
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Contao-Nutzer Avatar von Transparenz
    Registriert seit
    27.06.2010.
    Ort
    Allgäu
    Beiträge
    29

    Standard

    Ich hatte tatsächlich eine default.xlf als Vorbereitung angelegt, diese war jedoch leer. Das hat Contao wohl nicht geschmeckt...

    Lösung: Keine leeren xlf-Dateien anlegen.

    Vielen Dank

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •