Fehler: Theme Assistant Fehler nach Upgrade auf Contao 5.6

Ich's Avatar

Ich

25 Aug, 2025 12:54 PM

Produkt: Tao Contao
Contao-Version: 5.6

Das Update erfolgte von Contao 5.5 auf 5.6

Wenn ich im Backend nun den Theme Assistant öffnen möchte, wird folgender Fehler angezeigt:

func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function

Ich gehe davon aus, das ist der dazugehörige Log:

[2025-08-25T14:35:35.916614+02:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=amQtTCOX","method":"GET"} {"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=amQtTCOX","request_method":"GET"}
[2025-08-25T14:35:36.029102+02:00] request.CRITICAL: Uncaught PHP Exception ValueError: "func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function" at DataContainer.php line 940 {"exception":"[object] (ValueError(code: 0): func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function at /www/htdocs/wf6tzfe4a/gicht/vendor/contao/core-bundle/contao/classes/DataContainer.php:940)"} {"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=amQtTCOX","request_method":"GET"}
[2025-08-25T14:35:40.874008+02:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=qSuHTT71","method":"GET"} {"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=qSuHTT71","request_method":"GET"}
[2025-08-25T14:35:40.902973+02:00] request.CRITICAL: Uncaught PHP Exception ValueError: "func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function" at DataContainer.php line 940 {"exception":"[object] (ValueError(code: 0): func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function at /www/htdocs/wf6tzfe4a/gicht/vendor/contao/core-bundle/contao/classes/DataContainer.php:940)"} {"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=qSuHTT71","request_method":"GET"}
[2025-08-25T14:36:00.874284+02:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=mrk3AFp_","method":"GET"} {"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=mrk3AFp_","request_method":"GET"}
[2025-08-25T14:36:00.904693+02:00] request.CRITICAL: Uncaught PHP Exception ValueError: "func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function" at DataContainer.php line 940 {"exception":"[object] (ValueError(code: 0): func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function at /www/htdocs/wf6tzfe4a/gicht/vendor/contao/core-bundle/contao/classes/DataContainer.php:940)"} {"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=mrk3AFp_","request_method":"GET"}
[2025-08-25T14:36:04.035497+02:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=mrk3AFp_","method":"GET"} {"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=mrk3AFp_","request_method":"GET"}
[2025-08-25T14:36:04.065243+02:00] request.CRITICAL: Uncaught PHP Exception ValueError: "func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function" at DataContainer.php line 940 {"exception":"[object] (ValueError(code: 0): func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function at /www/htdocs/wf6tzfe4a/gicht/vendor/contao/core-bundle/contao/classes/DataContainer.php:940)"} {"request_uri":"https://meineDomain.com/contao?do=rocksolid_theme_assistant&ref=mrk3AFp_","request_method":"GET"}
  1. Support Staff 1 Posted by RockSolid Theme... on 26 Aug, 2025 07:24 AM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Hierbei handelt es sich anscheinend um einen Fehler in Contao 5.6.0. Wir werden prüfen ob dieser in Contao selbst oder in der Theme Assistant Erweiterung behoben werden muss.

    In Contao wird das Thema in folgendem Ticket auf GitHub behandelt: https://github.com/contao/contao/issues/8733

  2. Support Staff 2 Posted by RockSolid Theme... on 27 Aug, 2025 02:47 PM

    RockSolid Themes's Avatar

    Der Fehler wird mit der nächsten Contao-Version behoben werden.

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