Lilina is great open source server side RSS aggregator written in PHP, the latest stable version at this time is 0.7. I just installed it and found some problem.

After install Lilina 0.7 and following it’s INSTALL instruction, it just didn’t work after all:  all the web page is empty with nothing.  I didn’t touch PHP stuff for many years, so just fix this issue by “what I feel”. :)

1. Debug

Fortunately debug PHP is simple, just run those PHP pages in command line, the output will display in console, so I will not have to look inside the logs. The problem quickly show up:

PHP Fatal error:  Cannot redeclare class soapclient in /var/www/html/lilina-0.7/inc/nusoap.php on line 4096

2. Problem

Google it, the problem is clear, because PHP5 already have a class named “soapclient“. A solution was found here.

3. Quick & dirty fix

Quickly browsed the code, the only place use nusoap.php is inc/google.php, this is used for:

Enabling Google Web APIs support:
———————————
lilina is now able to automatically query Google for the title of each item
and show the top 10 results. To do so you must have a “Google Web APIs key” that
you can obtai for free from http://www.google.com/apis/.

I don’t think I need this, so I just edit lib.php, comment out the include of “google.php”,  and search “google” and find the line:

        $out .=   google_get_res($title,0) ;

change it to:

        $out .=  “”; // google_get_res($title,0) ;

Then it works.

Popularity: 10% [?]



5 Comments to “Install Lilina 0.7 on PHP 5.0 linux box”

  1. Ryan McCue | June 28th, 2007 at 4:31 pm

    Hey Robert,
    I’m the developer of Lilina and I’d just like to point out that this is completely disabled in the current development version of Lilina, as Google have stopped providing new keys for the service.
    You can get a copy from Subversion at http://code.google.com/p/lilina/source

  2. Robert | June 29th, 2007 at 10:05 am

    Thanks Ryan! I will grab a copy and try.

  3. Anonse | August 15th, 2007 at 5:32 am

    Thanks so very much for taking your time to create this very useful and informative site. I have learned a lot from your site. Thanks!!

  4. adam l. | November 11th, 2007 at 11:00 am

    Wonderful, thank you for sharing this with us, works like a charm.

  5. online shopping | July 5th, 2008 at 2:43 am

    Hmmm… I think I should give this a bash. Opensource is so great, because if you really do know what you’re doing, you can fix a problem like this easily. If Opensource went global, I think, it would actually be good for the IT industry in terms of the need for IT guys of companies to actually KNOW what they’re doing (rather than just know ‘how to set up a network, they would need to know how to actually do some coding to fix a problem.) No doubt, we would have much more secure and stable networks this way.

Leave a Comment

Close
E-mail It
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.