vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r18149: LJSUP-7828: added error string that expl...

Committer: vsukhanov
LJSUP-7828: added error string that explains how to solve problem with undefined xml object in rss feed.
U   trunk/cgi-bin/ljfeed.pl
Modified: trunk/cgi-bin/ljfeed.pl
===================================================================
--- trunk/cgi-bin/ljfeed.pl	2011-01-31 08:38:41 UTC (rev 18148)
+++ trunk/cgi-bin/ljfeed.pl	2011-01-31 09:10:27 UTC (rev 18149)
@@ -527,6 +527,9 @@
     unless ($opts->{'single_entry'}) {
         $feed = XML::Atom::Feed->new( Version => 1 );
         $xml  = $feed->{doc};
+        unless ($xml){
+            die "Error: XML-LibXML is required"; ## sudo yum install perl-XML-LibXML
+        }
 
         if ($u->should_block_robots) {
             $xml->getDocumentElement->setAttribute( "xmlns:idx", "urn:atom-extension:indexing" );

Tags: livejournal, pl, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments