Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

RSS 2 - Undefined index error

edited August 2006 in Vanilla 1.0 Help
Hello Everyone.
I just installed Vanilla 1.0.1 to test it and wanted to test the RSS extension.
When I enable the extension I get this error returned to me.

Notice: Undefined index: REQUEST_URI in C:\Inetpub\vhosts\\subdomains\vanilla\httpdocs\extensions\RSS2\global_functions.php on line 4

I don't know if I missed an installation step, b/c there weren't any instructions with it.
When I click on the RSS link, I get this:

XML Parsing Error: junk after document element Location: Line Number 2, Column 1:<b>Notice</b>: Undefined index: REQUEST_URI in <b>C:\Inetpub\vhosts\\subdomains\vanilla\httpdocs\extensions\ RSS2\global_functions.php</b> on line <b>4</b><br />
I'm running PHP 4.4.2 on IIS.

Anyone have any ideas on this?
Great software by the way!


  • Try opening up /extensions/RSS2/global_functions.php and replacing $_SERVER['REQUEST_URI'] with $_SERVER['QUERY_STRING'] and see if that helps.
  • MarkMark Vanilla Staff
    Yeah - some servers don't have that index in the $_SERVER array. I just updated it to check for a few other indexes. Download and try again...
  • I loaded the updated version, and It does fix the php error from showing, but I still get the same error when I click on the RSS link. Thanks for the fast response guys!
  • I get this error in IE 6, before I was in FF

    The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Only one top level element is allowed in an XML document. Error processing resource ' <b>Notice</b>: Undefined index: REQUEST_URI in <b>C:\Inetpub\vhosts\\subdomains\vanilla\htt...
  • Ok, Quick update. If anyone else has this problem, make sure you fix or disable the Atom Feed extension too, or else you will continue to get errors. I disabled Atom Feeds and now it works just fine!

  • MarkMark Vanilla Staff
    Doh - If you want to have the atom feed as well, copy the global_functions.php from the rss2 extension into the atom extension (replacing the one that's there). It will work then. My bad.
  • Thanks Mark, all works now!
  • I just added the RSS2 feed to our 1.01 forum and this is the error I get. XML Parsing Error: junk after document element Location: Line Number 2, Column 8:</code><?xml version="1.0" encoding="utf-8"?> -------^
This discussion has been closed.