I don't understand why you have those lines in LocalSettings. You
should only have to put
192
include_once("extensions/magpierss/rss.php");
in LocalSettings, after saving the extension code as a file in the
extensions directory. Assuming that you are using the extension code at
http://meta.wikimedia.org/wiki/User:Alxndr/RSS
that code calls the magpierss library.
By putting
191 $rss = fetch_rss($url);
in LocalSettings, you're sending an undefined value, $url, to magpie.
The extension is supposed to get the url from the wikitext of the page
where you are including the feed, e.g. <rss>http://myfeed.com</rss>
On Feb 24, 2008, at 5:07 PM, Steve VanSlyck wrote:
> 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 }
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
>
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054