7.2.0 error when navigate to user admin /s/users/edit/1
Author: mahmoud-linknessCreated Sep 28, 2026Updated Sep 29, 2026
Labelsbugneeds-triage
Mautic Series
7.2.x series
Mautic installed version
7.2.0
Way of installing
I downloaded a release from https://www.mautic.org/mautic-releases
PHP version
8.4.25
What browsers are you seeing the problem on?
Firefox
What happened?
installed mautic & after modified user data something like name field saving & when navigate to https://mautic.local.int/s/users/edit/1 500 error code
How can we reproduce this issue?
Step 1:
installed mautic via cmd
bin/console mautic:install \
https://mautic.local.int \
--db_driver=pdo_mysql --db_host=mysql --db_port=3306 \
--db_name=mautic --db_user=root --db_password=root \
--admin_username=myuser --admin_password=Admin123@@ \
[email protected] \
--admin_firstname=Admin --admin_lastname=myuser \
--env=prod -fafter modified user data something like name field saving & when navigate to https://mautic.local.int/s/users/edit/1 500 error code
i debug the issue is coming from this line
i'm not sure if UserSubscriber.php cause it or the bug in UserController.php or the twig file recent_activity.html.twig
Relevant log output
[2026-09-28T12:36:56.604393+00:00] app.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "Key "0" does not exist as the sequence/mapping is empty in "@MauticUser/User/recent_activity.html.twig" at line 141." at /home/mahmoud/projects/mautic/app/bundles/UserBundle/Resources/views/User/recent_activity.html.twig line 141 {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): Key \"0\" does not exist as the sequence/mapping is empty in \"@MauticUser/User/recent_activity.html.twig\" at line 141. at /home/mahmoud/projects/mautic/app/bundles/UserBundle/Resources/views/User/recent_activity.html.twig:141)"} {"hostname":"d8c482b19a6c","pid":344}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.
Source: mautic/mautic