Hi:

I have downloaded the cvs version (7/7/2006) but when I go to admin/modules to enable it, the page is blank.
On the logs I can see:
PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /Applications/MAMP/htdocs/drupal/sites/default/modules/erp/asset/asset.module on line 1214

As you can see I'm using MAMP (OSX), and 4.7.0 modules when available (not cvs).
I have only installed the modules recommended in the erp-README:
actions, workflow, dba, event, jstools, og, urlfilter, views

There is another bug report on T_OBJECT_OPERATOR but I didn't understand if it was fixed or not.
Thanks in advance!

Comments

jax’s picture

I'm having the same problem and it is caused by using PHP4. PHP4 does not support method/property chaining with objects. While browsing the code it looks like the author used chaining extensively and might thus require PHP5.

What are the plans for drupal 5.0. Will it still support PHP4? If it doesn't and the ERP module is scheduled for drupal 5 (4.8?) it is unnecessary to support PHP4. Maybe the author can chime in?

mjolley@buy-hot.com’s picture

I removed the asset directory and the rest works ok. I've been getting this error with things other than erp, or even Drupal, so I'm seriously considering upgrading to php5.

mjolley@buy-hot.com’s picture

Title: Cannot install module » Asset.module and PHP 4

Renamed.

singularo’s picture

Assigned: Unassigned » singularo
Status: Active » Closed (won't fix)

The asset module is being orphaned due to to many problems when running the javascript that collects data from the PC. If anybody wants to pick it up, I'll happily keep it as part of the erp package, but we wont be doing any more development ourselves at this stage.