Troubleshooting

Module does not install using composer

When you are using composer to install or update a module and you notice that the module is not properly installed, there are two types of situations in which you may encounter this issue:

  • The OXID eShop configuration file is removed from the var/configuration/shops/ directory.

    or

  • The /var directory is removed.

Solution

@startuml

start

if (Module is visible in admin area?) then (no)

   if (Is var/configuration/shops/1/ directory exists?) then (yes)

       if (is module configuration exists in var/configuration/shops/1/modules/<module-id>.yaml?) then (yes)

       else (no)
          :run console install module;
       endif

   else (no)

     :run composer update;

     :var/configuration/shops/1/modules/<module-id>.yaml file will be created;

   endif

else (yes)

endif

:module is installed;

 stop

@enduml

Note

For more information about the shop configuration files (var/configuration/shops/) and how to generate them, see modules configuration and setup document. .

Note

How to run install module command?

vendor/bin/oe-console oe:module:install <module sourcecode path>