Hi @angelo.paglialonga ,
Yes, that is the problem but the thing is, it is a clean new install. There shouldn't be such errors on a new install. I even tried commenting those lines and try to install again but a similar problem happened a few lines below with another field. So I just opened this issue because I didn't have the time to debug it.
There was a change to the install/migration scripts not so long ago which stopped vtiger re-installing all the modules over and over again during the process... My guess is this code might now be being run BEFORE the Project module package has been installed?
@lord_alan another option would be to install those modules before the migration scripts are run (at least when it's a new install). otherwise, we have to put if statements around all those dependencies as you suggest.
The best option would be to remove the zip packages all together and have them included in the vtiger system as the other modules are. we now have to have the packages/ dir with the zipped files AND the /pkg dir with extracted zip files so they are correctly tracked by git.
How many times have the /pkg files not been kept in synchronisation with the zip packages?
Couldn't agree more Alan. Having zipped packages in the repository doesn't make any sense. Also, having the /pkg folder makes repository management awkward. Same goes for languages. whats the point in having language packages in separate folders if they are all always installed. Better put them in the /languages folder from the very beginning. But this topic has been mentioned again and again without action. So I'm not very optimistic about it :(
@prasad But what is the point of having these zipped module packages in the source tree? All of these modules are installed anyway so why not treat them just like Accounts, Contacts, Calendar, Leads etc?
@prasad I agree with Alan. Everything would be better if we:
Got rid of the zips. In general, those don't belong to code repositories. In any case, those should be generated automatically through a build script.
Had languages files in the languages folders and modules in the modules folders from the very beginning. That would simplify the installation process and avoid bugs like the one described here and would make git management a lot easier. What is the benefit of "installing" the modules and language packs from a zip file?
Please don't continue this unnecessary complexity.
Only those selected app/module packages during installation will be enabled. Rest are expected to loaded when required. Making the core-slim is better than keeping it heavy.
@lord_alan from what you say I infer that toggling the checkboxes of individual modules at installation just enables or disables the modules but doesn't change the fact that all are installed. Is that right? If so, then there is NO REASON AT ALL to keep those zip files in the packages folder and the source code in the pkg folder.
I'll try to make a test and see what actually happens.