marketplace, I am validating my extension but i have two extentions in one directory

Here is Zip directory structure is:

Module Zip folder


getting error:

More than one top-level directory detected, number of directories = 2. Top level directory expected to be the module directory.

enter image description here Can you please provide the solution for this?



These modules -- are they related or dependent to each other? Are they of the same module type -- ie. magento2-theme, magento2-module, magento2-language?

Do you have your vendor name configured in Magento Company profile?

Vendor Name

If all these are yes, then put the modules within a directory that matches your vendor name:


Here is good documentation on composer directory structure, naming, magento package types, etc..: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/build/composer-integration.html

Documentation for extension repository structure: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/prepare/ext-repo-structure.html


I'm wondering if validate_m2_package.php is old and has not been updated to support the multiple package structure. The last update was in April 2017 on this validation tool.

  • I have two modules with same type is 'magento2-module'. How to make the package for market place. I am struggling. I am doing first type for two modules. I didn't get how to do this?. – Shiwani Sep 11 at 7:18
  • Do you not have a vendor name configured with Magento? If you don't, then focus on that to start. If you do, then try submitting one module first. – df2k2 Sep 11 at 7:28
  • Updated my comment with module directory structure. need to submit both. If I validate only mkt then it works and validation is passed. But with both is getting error – Shiwani Sep 11 at 7:30

Update your vendor name first in the company profile then only you can continue to validate the extension

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.