Drupal 6.2
PHP 4.4.2 (which I think is the root of the problem)
When I try to enable gravatar 6.x-1.2, I get the following error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in [redacted...]/sites/all/modules/gravatar/gravatar.module on line 86
This is line 86:
$gravatar = gravatar_get_gravatar(($data->gravatar_email ? $data->gravatar_email : user_load(array('uid' => $account->uid))->mail));
This is a new error to me. A bit of digging makes me think it's an incompatibility between this version of gravatar and PHP 4.
Comments
Comment #1
Narno commentedYes, Gravatar require PHP 5.x
Sorry ! :-P
Comment #2
domesticat commentedPlease consider adding a README or some documentation indicating this dependency.
Comment #3
Narno commentedComment #4
Narno commentedI think with a little modification in the code Gravatar module will be supported by PHP 4.
I will commit that with the next release.
Comment #5
Narno commentedComment #6
Narno commented