Your software
My Mautic version is: 5.2.2
My PHP version is: ** 8.1.31**
My Database type and version is: 10.6.21-MariaDB
Your problem
My problem is:
I previously used Mautic 5.2.1, then updated to 5.2.2. After encountering system issues, I decided to uninstall Mautic from my hosting while backing up my database. I then reinstalled Mautic 5.2.2 and reconnected it to my old database, which was successful.
However, when I checked the data, all contacts and other records were missing. To resolve this, I manually imported my old database using phpMyAdmin, and all my previous data appeared in Mautic successfully.
The issue now is with email sending:
- When inserting tokens, the
{contactfield=companyname}
token does not retrieve the company name in the email. - Other contact-related tokens like
{contactfield=firstname}
and{contactfield=lastname}
work fine. - The Companies feature in Mautic shows complete company data, but the token does not populate the company name, email, website, etc.
These errors are showing in the log:
- No errors detected in Mautic logs.
- Current Error Log: “Today’s Mautic error log is empty. Check server error log for error messages Mautic didn’t have a chance to catch.”
- No errors found in my hosting error logs either.
Steps I have tried to fix the problem:
- Manually checked the database in phpMyAdmin – all company data is intact.
- Cleared Mautic cache:
bash
php bin/console cache:clear
- Tried sending test emails using different contact records – still no company name appears.
- Reassigned contacts to companies manually, but no change.
- Checked my Mautic email template – the token
{contactfield=companyname}
remains empty.
What could be causing this, and how can I fix it? I need the company name to appear in emails. Any help would be greatly appreciated!