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
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

AppleBag - June 20, 2009 - 02:45

Anyone have any ideas?

#2

AppleBag - June 20, 2009 - 23:52

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

teknocat - July 20, 2009 - 18:19

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

#4

ngaur - August 2, 2009 - 19:14
Status:active» duplicate
 
 

Drupal is a registered trademark of Dries Buytaert.