When I try to enable the module, I get:

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/home/brianv/public_html/slmag/sites/all/modules/dme/dme.module on line 135

This was on a clean install of D5.

Removing the 'static' keyword on line 135 made this issue go away; however, that method was made static for a reason, so that is not a 'correct' solution to this.

Comments

jcfiala’s picture

That's odd - sorry, didn't see this before. What version of php are you running on? I'm wondering if that may be related to the problem.

robertem@drupal.org’s picture

Same problem here, PHP Version 5.2.3, also seems to work after removing the word static.
HTH,
Rob

jcfiala’s picture

Hum. Looking at http://www.php.net/language.oop5.static, it seems that there was some way in which PHP changed with respect to static around 5.3.0, and that's probably what's being the problem. I'll try to set aside some time in the near future to sit down and figure out what's going on with that.

robertem@drupal.org’s picture

Thank you for that. Also thanks for the great work your company, and Laura in particular, did on the PopSci case study, it is very informative and helpful.
Rob

dww’s picture

Weird. I'm using DME 5.x-1.0 (unmodified) and php 5.2.4, and haven't hit any problems with the "static" keyword. I've configured two DME tags, a hook tag and a node tag, both with some additional supported attributes, and everything is working fine. Just another data point...

myersca’s picture

I am also experiencing this problem. PHP version: 5.2.5