Modules errors out site when enabled
brianV - March 25, 2008 - 15:10
| Project: | Drupal Markup Engine |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#1
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.
#2
Same problem here, PHP Version 5.2.3, also seems to work after removing the word static.
HTH,
Rob
#3
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.
#4
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
#5
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...
#6
I am also experiencing this problem. PHP version: 5.2.5