Closed michaelgawlik closed 1 year ago
I assume this happened because you had no form fields at all yet. Can you check if https://github.com/terminal42/contao-mp_forms/pull/68 fixes your issue (either install that branch or copy the changes in Form Manager
- the test you can ignore).
I installed that branch but it dosn't fix the issue. Also I have form fields.
It's an existing site in Contao 4.9, contao-mp_forms 4.3 and contao-conditionalformfields 2.3 that I rebuilded. When I deinstall mp_forms, the condition works.
I tried this with an existing form an a new one.
I can say, it is a problem not limited to michaelgawlik.
I have got the same problem, also C 4.13.15, mp_forms 5.0.0 & cond_form_fields 3.0.8
[2023-02-14T11:21:59.299858+01:00] request.INFO: Matched route "tl_page.3.root". {"route":"tl_page.3.root","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.3","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.3.root","_route_object":{"Symfony\\Component\\Routing\\Route":[]}},"request_uri":"https://contaotest.mees-zacke.de/","method":"GET"} []
[2023-02-14T11:21:59.310264+01:00] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2023-02-14T11:21:59.334478+01:00] request.CRITICAL: Uncaught PHP Exception Error: "Typed property Terminal42\MultipageFormsBundle\FormManager::$storageIdentifier must not be accessed before initialization" at /www/htdocs/w0070178/contaotest.mees-zacke.de/vendor/terminal42/contao-mp_forms/src/FormManager.php line 64 {"exception":"[object] (Error(code: 0): Typed property Terminal42\\MultipageFormsBundle\\FormManager::$storageIdentifier must not be accessed before initialization at /www/htdocs/w0070178/contaotest.mees-zacke.de/vendor/terminal42/contao-mp_forms/src/FormManager.php:64)"} []
I tested this with two separate contao installations on two separate servers. The Problem occurs on forms, copied from C 4.9.* as well as completely new created forms
Tested with PHP 8.0 & 8.1
Like with michaelgawlik, the branch doesn't solve this unfortunately
The form I found this was also fully functional in 4.9, containing several pages and conditions, therefore I see no way this occurs because of the lack of form fields
Actually an issue in conditionalformfields. Should be fixed with https://github.com/terminal42/contao-conditionalformfields/releases/tag/3.0.9.
Contao: 4.13.15 PHP: 8.1 contao-mp_forms: 5.0.0 contao-conditionalformfields: 3.0.8
Hi Folks, it's easy to reproduce: just the installation of contao-mp_forms throws an error when you use a simple condition in a fieldset.
Error-Log:
Stack Trace: