Parse Error: simplenews_template/simplenews_template.inc on line 79
AppleBag - June 13, 2009 - 07:29
| Project: | Simplenews Template |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
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?

#1
Anyone have any ideas?
#2
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).
#3
I posted a simple patch for this here: #525342: PHP4 Compatibility issue
#4