Internal server error 500 for A/B test

Your software
My Mautic version is: mautic 5
My PHP version is: 8.1
My Database type and version is: 15.1

Your problem
My problem is: I get internal server error and I cannot create A/B test of landing page. I get it only in this case.

These errors are showing in the log: It is not in the log.

Steps I have tried to fix the problem: clearing cache, giving permission to parent folder (I have NGINX so: chown apache:apache …/public_html)

Sorry - you have Nginx, but the permission is set to apache?

Oh, I corrected it. But I have same issue as A/B Test functionality not working · Issue #12560 · mautic/mautic · GitHub

I fixed it: in file /vendor/symfony/form/FormRenderer.php in 136 line is condition that element can be rendered only once.
In file app/bundles/PageBundle/Resources/views/Page/form.html.twig in line 99 {{ form_row(form.template) }} renders second time (first time in line 72).
This function renders fields in right panel.
Just delete line 99: {{ form_row(form.template) }}

For anyone coming along to this later, here’s the PR to fix:

If we get it tested we should be able to release this in 5.0.2.

Docs on testing: https://mau.tc/tester - please do help with the testing!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.