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
Comment #1
somebodysysop commentedThis issue appears related: http://drupal.org/node/186744
Comment #2
rhys commentedThe 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.
Comment #3
somebodysysop commentedCan't you commit this change to the dev release?
Comment #4
rhys commentedI did commit to both d6 and dev, however, I missed one further down the file. This should now be fixed in CVS.
Comment #5
somebodysysop commentedThank you. I looked at the code and it's pretty much what I did to get the module working. I appreciate the quick response.