When I click on "Drafts|Edit" on one of the drafts, or Edit on one of the Sent newsletters, I get a white screen showing this error:

Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/www/mysite.com/sites/all/modules/simplenews_template/simplenews_template.inc on line 79

Any ideas anyone?

Comments

AppleBag’s picture

Anyone have any ideas?

AppleBag’s picture

I fixed it. Had to change line 79 from:

$newsletter_name = taxonomy_get_term($tid)->name;

to

$newsletter_name = taxonomy_get_term($tid);

And replace every instance of $newsletter_name after that, to $newsletter_name->name (2 instances).

teknocat’s picture

I posted a simple patch for this here: #525342: PHP4 Compatibility issue

ngaur’s picture

Status: Active » Closed (duplicate)