Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 500 when loading contacts details page after upgrade to 5.0.1 #13197

Closed
1 task done
minchaminder opened this issue Jan 10, 2024 · 7 comments · Fixed by #13254
Closed
1 task done

HTTP 500 when loading contacts details page after upgrade to 5.0.1 #13197

minchaminder opened this issue Jan 10, 2024 · 7 comments · Fixed by #13254
Labels
bug Issues or PR's relating to bugs mautic-5 Relates to Mautic 5.x
Milestone

Comments

@minchaminder
Copy link

minchaminder commented Jan 10, 2024

Mautic Version

5.0.x series

PHP version

8.1.27

What browsers are you seeing the problem on?

No response

What happened?

A bug happened! I'm getting a 500 error only when loading the contacts details page like /s/contacts/view/18610

[2024-01-10 18:14:19] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "Key "address2" for array with keys " ///// does not exist. at /var/www/html/app/bundles/LeadBundle/Resources/views/Lead/lead.html.twig:431)"} {"hostname":"mautic","pid":36779}

Solved by toggling address2 in /s/contacts/fields to on

How can we reproduce this issue?

Step 1: Upgrade

Relevant log output

No response

Code of Conduct

  • I confirm that I have read and agree to follow this project's Code of Conduct




Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.

@minchaminder minchaminder added bug Issues or PR's relating to bugs needs-triage For new issues/PRs that need to be triaged labels Jan 10, 2024
@minchaminder minchaminder changed the title HTTP 500 on contacts page after upgrade to 5.0.1 HTTP 500 when loading contacts page after upgrade to 5.0.1 Jan 10, 2024
@minchaminder minchaminder changed the title HTTP 500 when loading contacts page after upgrade to 5.0.1 HTTP 500 when loading contacts details page after upgrade to 5.0.1 Jan 10, 2024
@escopecz
Copy link
Sponsor Member

Did you remove the Address 2 custom field?

@dsp76
Copy link

dsp76 commented Jan 15, 2024

Looks like the original poster had it disabled before and fixed it with enabling it again.
Those fields can be disabled:

image

Is it not optional anymore in Mautic 5?

@escopecz
Copy link
Sponsor Member

It is still a bug but I'm glad we found a workaround until it's fixed.

@escopecz escopecz added mautic-5 Relates to Mautic 5.x and removed needs-triage For new issues/PRs that need to be triaged labels Jan 15, 2024
@minchaminder
Copy link
Author

Did you remove the Address 2 custom field?

I did not do any changes, so likely that it was toggled off before the upgrade but did not cause any issues

@mollux
Copy link
Contributor

mollux commented Jan 20, 2024

@minchaminder @dsp76 @escopecz

it's indeed a bug/regression caused by the twig migration. I addressed this in #13254

@mollux mollux linked a pull request Jan 20, 2024 that will close this issue
@escopecz escopecz added this to the 5.0.3 milestone Jan 20, 2024
@escopecz
Copy link
Sponsor Member

The fix was confirmed. Will be released in 5.0.3. Thank you Mattias!

Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If this issue is continuing with the lastest stable version of Mautic, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs mautic-5 Relates to Mautic 5.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants