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)
joeyk
January 14, 2024, 9:35pm
2
Sorry - you have Nginx, but the permission is set to apache?
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:
mautic:5.x
← porubma:patch-1
opened 01:41AM - 15 Jan 24 UTC
Element can be rendered only once.
Fields in right panel are rendered first at… line 72. Rendering second time (in 99 line) is giving error. This error is generated by file /vendor/symfony/form/FormRenderer.php at 136. line.
<!-- ## Which branch should I use for my PR?
Assuming that:
a = current major release
b = current minor release
c = future major release
* a.x for any features and enhancements (e.g. 5.x)
* a.b for any bug fixes (e.g. 4.4, 5.1)
* c.x for any features, enhancements or bug fixes with backward compatibility breaking changes (e.g. 5.x) -->
| Q | A
| -------------------------------------- | ---
| Bug fix? (use the a.b branch) | [ ]
| New feature/enhancement? (use the a.x branch) | [ ]
| Deprecations? | [ ]
| BC breaks? (use the c.x branch) | [ ]
| Automated tests included? | [ ]
| Related user documentation PR URL | mautic/mautic-documentation#...
| Related developer documentation PR URL | mautic/developer-documentation#...
| Issue(s) addressed | Fixes #12560
<!--
Additionally (see https://contribute.mautic.org/contributing-to-mautic/developer/code/pull-requests#work-on-your-pull-request):
- Always add tests and ensure they pass.
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too.)
- Features and deprecations must be submitted against the "4.x" branch.
-->
#### Description:
<!--
Please write a short README for your feature/bugfix. This will help people understand your PR and what it aims to do. If you are fixing a bug and if there is no linked issue already, please provide steps to reproduce the issue here.
-->
#### Steps to test this PR:
<!--
This part is really important. If you want your PR to be merged, take the time to write very clear, annotated and step by step test instructions. Do not assume any previous knowledge - testers may not be developers.
-->
1. Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs [here](https://contribute.mautic.org/contributing-to-mautic/tester))
2.
<!--
If you have any deprecations, list them here along with the new alternative.
If you have any backwards compatibility breaks, list them here.
-->
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!
system
Closed
January 16, 2024, 10:14pm
6
This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.