I've set up a fresh Drupal 5.7 installation to test this module. I've installed the module in the same as any other module.

When enabling the module by clicking its checkbox in the module list and clicking save, PHP throws the following error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in modules/mediawiki/mediawiki.module on line 119

I have examined the code briefly but was unable to ascertain the source of the error.

If anybody has any thoughts or ideas they would be very much aprpeciated. Also, any feedback about how you got this module working for you would be very welcome too.

Cheers,
Chris.

Comments

chrism2671’s picture

Status: Active » Closed (fixed)

Solution found. Module is incompatible with php4, use php5.

trent4852’s picture

I received the same error today:

Parse error: parse error, unexpected T_OBJECT_OPERATOR in modules/mediawiki/mediawiki.module on line 119

I can't seem to find any information about how to fix this.

chrism2671’s picture

It's because you are using PHP4. Use PHP5.