Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /var/.../all/modules/msg2log/msg2log.module on line 72

Error received in a multilingual site. Had to remove module to get the site back.

Comments

kenorb’s picture

Title: Parse error under PHP4 » Parse error
Category: support » bug
Priority: Normal » Critical

Are you using PHP4? ;(
Sorry, I've used PHP5 syntax.
Probably I'll not make support for PHP4 syntax (it could be quite complicated). I'm not using currently PHP4, so if you really want to use this module under PHP4, you should patch it by your-self.
Sorry for any problems caused by that.
http://drupal.org/requirements

kenorb’s picture

Title: Parse error » Parse error under PHP4
Category: bug » support
Priority: Critical » Normal
jenpasch’s picture

Title: Parse error » Parse error under PHP4
Category: bug » support
Priority: Critical » Normal

thanks, should've guessed that.

kenorb’s picture

Status: Active » Closed (won't fix)

Some of the function could be emulated by php4 module (http://drupal.org/project/php4).
But not for the syntax.
What's the problem of upgrading to PHP5? Maybe I could help.
If it's the shared hosting, they should allow you to change the version of PHP.