Hi,
I've installed the Activity module on my site but whenever I activate the module I get the following error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /nfs/c02/h02/mnt/26164/domains/demos.kitsunedigital.com/html/cleftworld/sites/all/modules/activity/activity.module on line 202
Drupal 5.7
MySQL database 4.1.11
PHP 4.4.8
Thanks in advance for any help in this matter.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | activity-256897-3.patch | 613 bytes | smccabe |
Comments
Comment #1
sirkitree commented“chaining” syntax is PHP5 only. Please upgrade your PHP version.
If this is not an option for you try changing:
to
Comment #2
stormer commentedThanks, that did the trick.
Comment #3
smccabe commentedcouldn't we just do something like this? then it works for both 4 and 5 and still don't need the extra variable? It's just a syntax change. I have a patch already done if you want.
to:
Comment #4
smccabe commentedahhh nevermind, count() doesn't work because count(*) in the select statement still returns a value, i didn't read the select statement closely enough, just use sirkitree's solution above
Comment #5
jaydub commentedI didn't realize that chaining was specific to php5 :( please please please
will everyone just ditch php4?
When I get a chance I'll remove the php5 chaining method for
a compatible method...
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
tasigurl commentedI'm getting the same erroe message. Also I'm using php4. Which file in the module do i paste the code?