MX RSS Reader-Writer Forum :: ASP 'Option Explicit' causes an error
This thread was displayed: 495 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
Nigel Freeney
10-22-2006 22:03:37 GMT +2
|
I have a working newsfeed but when I add the option explicit function I get the following error message
MX_RssReader Error
Couldn't open the supplied URL: 'http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/health/rss.xml'
Variable is undefined
I am trying to create a server side include for use throughout my site
base file is here
http://www.nursing-agencies-list.com/includes/rsstestnal.asp
err.description is the variable that is undefined so I assume that the newsfeed provider is not giving a message description
err.number = 500
The other part of this error is that in the MX_RssReader.class.asp when the error occurs the cache is cleared and the feed is then left empty!
Line 76
If this is reached without error then cache is cleared using a private function
getContentFromURI(uri)
Error 500 but no description and works without option explicit invoked
Error occurs from 373 under private function
getContentFromURI
which is called from 96 but the error report is after the cache has been cleared
I have declared the following variables
MM_test_STRING
xmlRss
loadingresult
NODE_ELEMENT
NODE_ATTRIBUTE
NODE_TEXT
NODE_CDATA
NODE_PROCCESSING
NODE_COMMENT
docElement
channel
channelNodes
objNode
nodeName
tmpNode
itemSubnodes
subnode
fakeRS
i
channel_name
item_name
item_index
fieldname
|
|
|
Ionut MOICIANU
10-25-2006 14:37:54 GMT +2
|
Hi Nigel,
Are extensions are not fully compatible with the use of <% option explicit%> in your ASP site, so you should either remove this declaration or manually define all your variables within the .asp pages.
I am sorry for the inconvenience.
Regards,
Ionut
|
|
|
Nigel Freeney
10-25-2006 17:28:57 GMT +2
|
Hi Ionut,
Thanks for responding. I listed the variables I have declared from the RSS reader extension which ones have I missed as the error message does not identify it.
Thanks,
Nigel
|
|
|
Ionut MOICIANU
10-26-2006 13:21:55 GMT +2
|
Could you provide URL and FTP access to your site in order to see the error and debug the problem exactly?
Ionut
|
|
|