# Issue with Insert Token in Email After Reinstalling Mautic 5.2.2

**URL:** <https://forum.mautic.org/t/issue-with-insert-token-in-email-after-reinstalling-mautic-5-2-2/35014>\
**Category:** Product Support\
**Created:** [February 12, 2025, 12:13am UTC](https://forum.mautic.org/t/issue-with-insert-token-in-email-after-reinstalling-mautic-5-2-2/35014 "2025-02-12T00:13:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tesalam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tesalam/32/13538_2.png) [@tesalam](https://forum.mautic.org/u/tesalam)\
**Post date:** [February 12, 2025, 12:13am UTC](https://forum.mautic.org/t/issue-with-insert-token-in-email-after-reinstalling-mautic-5-2-2/35014/1 "2025-02-12T00:13:06Z")

</div>

**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:**

1. Manually checked the database in **phpMyAdmin** – all company data is intact.
2. Cleared Mautic cache:

bash

```auto
php bin/console cache:clear

```

1. Tried sending test emails using different contact records – still no company name appears.
2. Reassigned contacts to companies manually, but no change.
3. 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!
