[Mediawiki-l] Extension help

Steve VanSlyck s.vanslyck at spamcop.net
Sun Feb 24 23:07:45 UTC 2008


Does anyone know how to resolve these problems:

One gentleman suggested I check the $url variable, but I installed the 
magpierss code exactly as instructed (see lines from LocalSettings.php 
below) and I would not know what else to do.

I'd actually prefer to use RSSReader (which is what I'm using now) but 
it had even more errors. Magpie/Alexndr had only these three.

Notice: Undefined variable: url in C:\Inetpub\olr\wiki\LocalSettings.php on
line 191

Warning: MagpieRSS: fetch_rss called without a url in
C:\Inetpub\olr\wiki\extensions\magpierss\rss_fetch.inc on line 238

Parse error: syntax error, unexpected '>' in
C:\Inetpub\olr\wiki\extensions\magpierss\rss.php on line 130

=============================
LocalSettings.php lines 189-192:

189 # AlxndrRSS
190 require_once("extensions/magpierss/rss_fetch.inc");
191 $rss = fetch_rss($url);
192 include_once("extensions/magpierss/rss.php");

=============================
rss_fetch.inc lines 228-240:

228 function error ($errormsg, $lvl=E_USER_WARNING) {
229        global $MAGPIE_ERROR;
230
231        // append PHP's error message if track_errors enabled
232        if ( isset($php_errormsg) ) { 
233            $errormsg .= " ($php_errormsg)";
234        }
235        if ( $errormsg ) {
236            $errormsg = "MagpieRSS: $errormsg";
237            $MAGPIE_ERROR = $errormsg;
238            trigger_error( $errormsg, $lvl);                
239        }
240 }

=============================
rss.php lines 128-130:

128   #check for errors.
129   if ($rss->ERROR) {
130       return «<div>Failed to load RSS feed from $url: ».$rss->ERROR."</div>"; #localize...
131   }




More information about the MediaWiki-l mailing list