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\e5studios.com\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: http://vanilla.e5studios.com/?Feed=RSS2 Line Number 2, Column 1:<b>Notice</b>: Undefined index: REQUEST_URI in <b>C:\Inetpub\vhosts\e5studios.com\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!
-Thomas

Comments

  • 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... http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=73
  • 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 1.5.0.6

    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 'http://vanilla.e5studios.com/Index.php... <b>Notice</b>: Undefined index: REQUEST_URI in <b>C:\Inetpub\vhosts\e5studios.com\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!

    Thanks,
    Thomas
  • 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: http://gliving.tv/community/?Feed=RSS2 Line Number 2, Column 8:</code><?xml version="1.0" encoding="utf-8"?> -------^
This discussion has been closed.