Page 1 of 1

twitterOAuth.php causes parse error

Posted: Sun Jun 26, 2011 1:23 am
by ricardob
Hello,

does anybody have an idea why the recent installation (1.37) of the Microblogging gets stuck when I try to sign in to twitter? The exact message in the popup window is

Parse error: syntax error, unexpected T_VARIABLE in /homepages/27/(..)/htdocs/(..)/plugins/serendipity_plugin_twitter/twitteroauth/twitteroauth.php on line 17

With my humble PHP knowledge I would say that there is syntax error in that file, I assume that there is a problem with my webspace provider's settings for the webserver (1&1).

Must be something very special because there doens seem to be anybody else than me who experienced this...

Ricardo

Re: twitterOAuth.php causes parse error

Posted: Sun Jun 26, 2011 11:56 am
by garvinhicking
Hi!

This oauth class requires php5, and it seems your provider runs php4? Check if you can enable php5...

HTH,
Garvin

Re: twitterOAuth.php causes parse error

Posted: Sun Jun 26, 2011 11:58 pm
by ricardob
Strike!

The server is running version 4.4.9 - that is most likely the reason...

I was thinking is was already updated to 5.x ... hmm.

Thank you for the advice!

Re: twitterOAuth.php causes parse error

Posted: Sat Nov 26, 2011 8:11 pm
by blog.brockha.us
@garvin: What is the reason the OAuth code needs PHP5? If it is like that, we should change the meta info for the plugin (or change the code). Don't you think so?

Re: twitterOAuth.php causes parse error

Posted: Mon Nov 28, 2011 1:22 pm
by garvinhicking
blog.brockha.us wrote:@garvin: What is the reason the OAuth code needs PHP5? If it is like that, we should change the meta info for the plugin (or change the code). Don't you think so?
Definitely. I just changed it.

Regards,
Garvin

Re: twitterOAuth.php causes parse error

Posted: Tue Nov 29, 2011 12:58 pm
by blog.brockha.us
The code or the meta info?

Re: twitterOAuth.php causes parse error

Posted: Tue Nov 29, 2011 2:58 pm
by garvinhicking
blog.brockha.us wrote:The code or the meta info?
The meta info; the PHP5 requirement is IMHO quite hard due to json_encode and some XML things.

Since s9y 1.7/2.0 will also require PHP5 I don't see any use in spending time to PHP4-backport anything now.

Regards,
Garvin

Re: twitterOAuth.php causes parse error

Posted: Wed Nov 30, 2011 11:43 am
by blog.brockha.us
Well.. For JSON I've added a "compatibility class" doing all the JSON stuff on PHP4 environments 2 years ago.

But sure: If s9y itself will need PHP5, there is no use in wasting time thinking about PHP4. And I think there are not that many PHP4 environments any more anyway. The last one I knew (rowi) is PHP5 already, too.