I am a newbie in magneto I made a Magento custom extension but while uploading this into the Magento Marketplace, I am facing an issue it's Test Fail, Below is the test report

Environment: PHP 7.1.22 Magento 2.2 CE

php bin/magento deploy:mode:set production 

Enabling maintenance mode Starting compilation Something went wrong while compiling generated code. See the error log for details.

Disabling maintenance mode Command returned non-zero exit code: /usr/bin/php -f /var/www/html/bin/magento setup:di:compile

can anybody help me in this I am happy to pay as well


  • Before deployment do run the below commands Apr 8, 2019 at 12:40
  • rm -rf generated php bin/magento setup:upgrade php bin/magento cache:flush That's all you required for module installation and all Apr 8, 2019 at 12:41
  • I just update the question to make this elaborate can you please thorught question again once Apr 8, 2019 at 12:49
  • Can you run php bin/magento setup:di:compile enabling your module and check for any compilation errors in your module Apr 8, 2019 at 13:04
  • @PrathapGunasekaran sure doing this now few minutes Apr 8, 2019 at 13:20


Your Answer

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

Browse other questions tagged or ask your own question.