Drupal 6.9 site. When I attempt to install Media Manager, I get the white screen of death. The error message:

PHP Parse error:  parse error, unexpected '=', expecting ')' in /var/www/html/websites/drupal/test/modules/mmedia/API/hooks.inc on line 7, referer: http://ewb.thefiengroup.com/admin/build/modules

The line of code in question:

function media_invoke_item($op, &$media = null, $data = null) {

Any suggestions?

Comments

somebodysysop’s picture

This issue appears related: http://drupal.org/node/186744

rhys’s picture

Status: Active » Fixed

The issue is that the language construct used at this position is not unavailable in PHP4.
Since it is not necessary, it has been changed in CVS back to a PHP4 safe one.

somebodysysop’s picture

Can't you commit this change to the dev release?

rhys’s picture

I did commit to both d6 and dev, however, I missed one further down the file. This should now be fixed in CVS.

somebodysysop’s picture

Thank you. I looked at the code and it's pretty much what I did to get the module working. I appreciate the quick response.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.