i get this error message:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ')' in [server path]/modules/faceted_search/faceted_search_views.module on line 117

Comments

David Lesieur’s picture

Status: Active » Fixed

See the notes about updating from 0.11 in the Release notes. ;)

David Lesieur’s picture

Title: error while updating from 0.11 to 0.20 » Error in faceted_search_views while updating from 0.11 to 0.20
Component: General » Views integration
alotronic’s picture

Component: Views integration » General
Category: support » bug
Status: Fixed » Active

I also got this error - but in a new install NOT an upgrade of version 0.21. Dropped tables and tried dev version but still same error. MYSQL version 4.1, so that's not the problem... and I really want this great module!

Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ')' in [path] /modules/faceted_search/faceted_search_views.module on line 117

matslats’s picture

Me too. The line in question has some rather odd syntax, which occurs in a line in the next function which also breaks it

$this->get_view()->nodes_per_page;

$this-> get_view()-> name

David Lesieur’s picture

Status: Active » Fixed

I've just committed a fix for this. Although the code worked with PHP 5, it did not with PHP 4.

matslats’s picture

Status: Fixed » Closed (fixed)

Well done.
You're doing great work!

PeterZ’s picture

Had the same problem; hosting provider uses PHP4.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ')' in [path] /modules/faceted_search/faceted_search_views.module on line 117

I don't know much about PHP, but on another forum it says:

====
It's a well-known issue. In PHP4 you couldn't use the ()-> combination. This has been fixed in version 5. AFAIK, the only workaround available is to introduce a temporary variable:

$ret = ret();
echo $ret->a;
====
URL of forum is:
http://www.gamedev.net/community/forums/topic.asp?topic_id=469982

Looks like a really great module...

David Lesieur’s picture

Title: Error in faceted_search_views while updating from 0.11 to 0.20 » PHP 4 error in faceted_search_views
David Lesieur’s picture

Status: Closed (fixed) » Fixed

Keeping the issue open for now, to help people find it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.