Fehler: Theme Assistant Fehler nach Upgrade auf Contao 5.6
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"}
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

Support Staff 1 Posted by RockSolid Theme... on 26 Aug, 2025 07:24 AM
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
Support Staff 2 Posted by RockSolid Theme... on 27 Aug, 2025 02:47 PM
Der Fehler wird mit der nächsten Contao-Version behoben werden.