I recieved the following error

Parse error: parse error, unexpected T_OBJECT_OPERATOR in /hsphere/local/home/aandbdes/notjustpromotions.com/sites/all/modules/erp/erp_item/erp_item.module on line 362

when activating the erp item module.

any help would be greatly appreciated.

Comments

Mink’s picture

I have the exact same problem too, it just nuked my website. The problem seems to be that it does not have the tables that are referenced in line 362 of the code. I am searching for the table data, and I will get back to you if I find it. That is if someone else hasn't jumped in first.

Edit: Ended up reinstalling. That may not work for you though. Good luck!

aandbdesign’s picture

did the reinstall work? - it hasn't for me-

Mink’s picture

Yes it did. I dropped the MySQL tables though when I reinstalled, did you try that?

echos’s picture

Did it fix the problem? I have the same issue!
Drop only erp or all?

echos’s picture

That didn't help.

singularo’s picture

This should be fixed in the 5.x-1-1 release, basically, php4 doesn't like the current($row)->$var syntax. This has been removed.

Please note though, that we are still working with the 4-7 port primarily, although work on getting 5.x going is under way.

It may take a few hours for the tarball on the erp project page to be recreated with the patch, but its in CVS already.

NickLitten’s picture

I've been struggling to get the ERP module installed on my website.... lots of problems getting the additional modules installed in the right sequence and this bloody 362 error seemed like the last straw... I was prepared to bin it but the CVS download has seemingly fixed it (for me anyway)

So if youre having the dreaded item_module 362 error then download the CVS fix from here:
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/erp/erp_item/...