Menu

Empty module not able to composer(Error itop Include: unable to load the file '/var/www/html/env-production//extensions/vendor/autoload.php')

Yanfeng Li
2023-02-14
2023-03-16
  • Yanfeng Li

    Yanfeng Li - 2023-02-14

    Dear,

    Please help me get out of this. I am trying to add a filed for class. and following the manual installed toolkit and downloaded the empty module, extract it and put into extension folder. Then go to setup page trying to install this empty module. but it is report error as title described. Seems like composer did not auto create vendors folder and created autoload.php file?

    Environment:
    itop 3.0.2-1-9957
    OS: Centos 7.9
    DB: MariaDB-server-10.3.38-

     
  • Yanfeng Li

    Yanfeng Li - 2023-02-14

    update:that manual in official website is not correct , need also put in vendor folder into extension. atfer that it's working fine.

     
  • Pierre Goiffon

    Pierre Goiffon - 2023-03-16

    Hello,
    Not sure to understand ? You generated a module boilerplate using the generator, and directly deployed it ? How did you do it ? What was the exact error ?

     
    • Yanfeng Li

      Yanfeng Li - 2023-03-16

      thanks Pierre, I had figured out what's is missing in my environment. I just only copied the generated xml file into modules folder,but missing copy vendors folder there. actually from the official manual that is not state need copy whole files there. anyway, thanks for asking. I guess it's on stupid yanfeng. :)

       
    • Pierre Goiffon

      Pierre Goiffon - 2023-03-16

      Ok
      You extension module should be contained in a folder, and this folder should be copied in the /extensions directory.

      So, for example :

      /extensions
         /my_module
            module.my_module.php
            datamodel.my_module.xml 
            composer.json
            /src
            /vendor
      
       
    • Pierre Goiffon

      Pierre Goiffon - 2023-03-16
       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.