After installing D5 (last version) and several modules, I try to install ERP.
First of all I enable the "main" ERP, and I save and run update script.
When I enable the other ERP modules (excluding: pdf and timesheet, as suggested), the program hangs after "save".
From php log I get the following:

PHP Fatal error:
Call to undefined function theme_add_style()
in /srv/www/htdocs/drupal/modules/erp/erp.inc on line 10

and I cannot use it anymore.
If I repeatedly rename directory /erp in order to enable / disable it (/erpX>/erp...)
I can do something with the other modules. But impossible to disabel it in the module list.

Thank you for help.
pm

Comments

drapulled’s picture

I get the same error

Fatal error: Call to undefined function: theme_add_style() in /home/mysite/public_html/main/modules/erp/erp.inc on line 10

swe3tdave’s picture

Status: Active » Needs review

Line 10:
theme_add_style($erp_base_path .'/erp.css');

theme_add_style is deprecated. This Should be:

drupal_add_css($erp_base_path .'/erp.css');

qbantec’s picture

That fixed it. Very cool project. I wish I knew more PHP and I would help out on it more. I'll provide as much input as possible.

singularo’s picture

Assigned: Unassigned » singularo
Status: Needs review » Fixed

Thanks Guys, this should be fixed in CVS now.

Anonymous’s picture

Status: Fixed » Closed (fixed)