Magento 2.4 Admin invalid parent id Dotdigitalgroup_Email::marketing_automation

Magento 2.4 Admin invalid parent id Dotdigitalgroup_Email::marketing_automation

July 27, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento 2.4 Admin invalid parent id Dotdigitalgroup_Email::marketing_automation

Solving Magento 2.4 Admin Login Issues Post-Upgrade

If you’re facing login issues after upgrading your Magento 2.4 instance, where it says invalid parent id Dotdigitalgroup_Email::marketing_automation, you’ve come to the right place. I’ll walk you through diagnosing and resolving this issue.

Understanding the Error Message

The error message Specified invalid parent id (Dotdigitalgroup_Email::marketing_automation) indicates that Magento is unable to find a valid menu item with the specified ID for the Dotdigitalgroup extension’s marketing automation feature. This usually occurs when there was an issue during or after the upgrade process, causing the database entries to become corrupted.

Verifying Your Attempts

You’ve already tried creating a new admin user using the correct syntax:

php bin/magento admin:user:create --admin-user='new-admin' --admin-password='!admin123!' --admin-email='info@domain.com' --admin-firstname='Jon' --admin-lastname='Doe'

While this is a good first step, the issue likely lies deeper in the database configuration and menu setup.

Diagnosing the Problem

Step 1: Check for Database Corruption

The Dotdigitalgroup_Email::marketing_automation ID suggests that the Dotdigital extension’s marketing automation feature has been improperly installed or removed. You can verify this by checking if the relevant tables exist in your database.

Use the following SQL query to check for the menu_item table:

SELECT * FROM `menu_item`;

If the table is empty or missing, there might be a problem with your database setup during the upgrade process.

Step 2: Verify Extension Status

Make sure that the Dotdigital extension (Dotdigitalgroup_Email) is properly enabled in your Magento backend. Log in using SSH and run:

php bin/magento module:status --list

Look for Dotdigitalgroup_Email in the list of enabled modules. If it’s not listed or disabled, you’ll need to enable it.

Resolving the Issue

Solution 1: Reinstall the Extension

If the issue is with the Dotdigital extension itself, try reinstalling it:

composer require dotdigitalgroup/dotdigital-magento2-extension:2.4.*

Then run php bin/magento setup:upgrade to update the database schema.

Solution 2: Repair Database

If the issue persists, you can attempt to repair your Magento database using the following commands:

php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento setup:static-content:deploy

These commands will reindex the database, clear the cache, and redeploy static content, potentially fixing any corruption.

Solution 3: Manual Database Repair

If all else fails, you may need to perform a manual repair of the menu_item table. This involves deleting any entries with invalid IDs and recreating them using Magento’s built-in commands:

php bin/magento admin:menu-config:clear
php bin/magento admin:menu-config:set

These commands will clear and recreate your admin menu configuration, potentially fixing the invalid parent id issue.

Conclusion

When facing login issues in Magento 2.4 post-upgrade, it’s crucial to diagnose the problem at a database level before attempting to fix it. In most cases, reinstalling problematic extensions or repairing the database using built-in commands should resolve the issue.

Remember to always take a backup of your database before performing any manual repairs. If the error persists after following these steps, you may need to seek professional support from Magento developers or contact our team at Laravel Company for further assistance.

Happy coding!

Magento 2 Database Extensions Admin

Our network