kausha-mehta / php-twitter

Automatically exported from code.google.com/p/php-twitter
0 stars 0 forks source link

Fatal error: Cannot redeclare twitter::followUser() in /home/nextbest/public_html/twitter/class.twitter.php on line 324 #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. test the first snippet in the wiki Examplecode
2.
3.

What is the expected output? What do you see instead?
Rate... -> Syntax error

What version of the product are you using? On what operating system?
1.0-beta

Please provide any additional information below.
The class.twitter.php contains 2 occurrences of followUser in lines 198 and 
324

changed the function name on 324 from followuser to followuser1 to solve 
the issue

Also consider mentioning that the class will only with in php5 mode ---> 
"AddType application/x-httpd-php5 .php" in .htaccess is necessary

Original issue reported on code.google.com by collad...@gmail.com on 9 Oct 2008 at 10:51

GoogleCodeExporter commented 8 years ago
The class method is just included twice... for some reason. They both appear to 
be 
exactly the same so delete one of them.

Original comment by douga...@gmail.com on 20 Oct 2008 at 8:34

GoogleCodeExporter commented 8 years ago

Original comment by emmenset...@gmail.com on 28 Feb 2009 at 1:18