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.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | erp.inc_.patch | 417 bytes | grsingleton |
Comments
Comment #1
webengr commentedthe 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?
Comment #2
webengr commentedThe 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?
Comment #3
webengr commentedDid 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.
Comment #4
webengr commentedwhen 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
Comment #5
singularoWork 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.
Comment #6
worldcoast commentedIf workflow is required, this should be specified in the modules screen, and not allowed to be installed without the dependancy.
Fix this.
Comment #7
willdonovan commentedThis 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
Comment #8
mrmachine commentedyou can delete the erp folder from your modules directory ... that should get you up and running again
Comment #9
grsingleton commentedattached patch for the module.
Comment #10
singularoThis should be fixed with the latest commit
Comment #11
(not verified) commented