This is the most recent on my live server:

Fatal error: main() [function.require]: Failed opening required 'modules/erp/erp.inc' (include_path='.:/home/foo/lib/php') in /home/foo/www/modules/contrib/erp/erp_accounting/erp_accounting.module on line 8

Ones like thses are with my virtual server (Universal Server 3.3):

Fatal error: require_once() [function.require]: Failed opening required 'modules/erp/erp.inc' (include_path='./usr/local/PHP/includes;/usr/local/PHP/pear') in W:\www\modules\erp\erp_accounting\erp_accounting.module on line 8

Both are PHP5. I would normally assume that something is just plain mixed-up with my virtual server. But I get a similar error regarding the same line of code, etc. with a live server - one that I don't usually have probelms with.

Any ideas?

Comments

singularo’s picture

This is because all the erp modules assume they are in modules/erp/*, not in modules/contrib/erp/*

There is probably a way to detect the path they are installed in, and use that. Can anybody point me at the function, and I'll change it throughout.

jo1ene’s picture

Status: Active » Closed (fixed)

I had tried to hardcode the path, but I got a lot of "function not defined" errors. I just put the directory in /modules and I got a better result, although I am still having a lot of problems. I am closing out this issue, but I would like to discuss this module further.