Pardon my possibly inaccurate wording here; this is my first Drupal issue (on any topic!).

Given the other modules I have installed (and maybe some that are not), if I enable both 'erp' and 'erp cart' I get the following php error when loading any page of my site:

Fatal error: Call to undefined function: theme_add_style() in /home/.pause/mariom/dru.dogstardaily.com/modules/erp/erp.inc on line 10

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

Based on what I see in other working modules, if I change line 10 to the following, everything works:
drupal_add_css($erp_base_path .'/erp.css');

I'm running Drupal 5.0 (release). I could list the modules I've got enabled, but it'd be long.

CommentFileSizeAuthor
#9 erp.inc_.patch417 bytesgrsingleton

Comments

webengr’s picture

the documentation for erp says module 'workflows' is requried.

for ver 5 of drupal, the workflows module is not available,

what did you use for workflows?

the head?

webengr’s picture

Component: Code » Documentation
Priority: Critical » Normal

The erp module has a version for 5.x

The documentation for erp, http://www.singularo.com/1_required_modules
lists workflow as a requred module.

But as of Jan 18, the workflow module still does not have a version for 5.x listed:
http://drupal.org/node/3323/release

Are we suppose to try the HEAD version of workflow, is that how others got ERP to work with version 5.x of drupal?

webengr’s picture

Did not work with workflow HEAD

best I can tell, erp is not ready for 5.x w/o alot of tweaks not detailed in docs.

webengr’s picture

when you turn on the blocks...

Fatal error: Call to undefined function module_exist() in /var/www/drupal/modules/erp/erp_home/erp_home.module on line 121

singularo’s picture

Assigned: Unassigned » singularo

Work has started work on upgrading the erp code to 5.0, but it will be a little while longer before its committed. If need be, workflow will be converted for 5.0 and the author provided with patches.

worldcoast’s picture

If workflow is required, this should be specified in the modules screen, and not allowed to be installed without the dependancy.

Fix this.

willdonovan’s picture

Priority: Normal » Critical

This is great commenting, keeping us informed.

My issue though is how do I get Drupal back, I keep getting the error and cannot get in to edit anything.

What do I do?

William

mrmachine’s picture

you can delete the erp folder from your modules directory ... that should get you up and running again

grsingleton’s picture

StatusFileSize
new417 bytes

attached patch for the module.

singularo’s picture

Status: Active » Fixed

This should be fixed with the latest commit

Anonymous’s picture

Status: Fixed » Closed (fixed)