Magpierss error, what's wrong

Discussion in 'PHP' started by red_army, Jan 4, 2007.

  1. #1
    I used to install this script for the previous two domains, but when i installed for others, i found the error:

    Warning: MagpieRSS: Failed to parse RSS file. (syntax error at line 2, column 62) in /home/asia/public_html/cpatricks/magpierss/rss_fetch.inc on line 238
    
    
    Warning: Invalid argument supplied for foreach() in /home/asia/public_html/cpatricks/index.php on line 122
    Code (markup):
    FYI: this is index.php line 122
    if ( $url ) {
       $rss = fetch_rss( $url );
    //   echo "Channel: " . $rss->channel['title'] . "<p>";
    
    if ( $rss ) {
    
    
    
       echo "<ul>";
       $ii= 0;
       foreach ($rss->items as $item) {
    	  if($ii++ >= 20) break;
          $href = $item['link'];
          $title = $item['title'];
    PHP:
    this is rss_fetch.inc line 238
    function error ($errormsg, $lvl=E_USER_WARNING) {
            global $MAGPIE_ERROR;
            
            // append PHP's error message if track_errors enabled
            if ( isset($php_errormsg) ) { 
                $errormsg .= " ($php_errormsg)";
            }
            if ( $errormsg ) {
                $errormsg = "MagpieRSS: $errormsg";
                $MAGPIE_ERROR = $errormsg;
                trigger_error( $errormsg, $lvl);                
            }
    }
    
    function debug ($debugmsg, $lvl=E_USER_NOTICE) {
        trigger_error("MagpieRSS [debug] $debugmsg", $lvl);
    PHP:
    PLEASE ADVISE WHAT I HAVE TO CHANGE IN DETAILS, THANKS ;)
     
    red_army, Jan 4, 2007 IP