Adobe Dreamweaver Forums



Last 10 THreads :         can you make a LineChart cumulative? (Last Post : Amy Blankenship - Replies : 1 - Views : 2 )           »          Really Awful Bug (Last Post : Walter Elias - Replies : 5 - Views : 6 )           »          need help with flash movie for the website (Last Post : romalsz - Replies : 0 - Views : 1 )           »          Drop-Down Boxes showing blank (Last Post : karimc - Replies : 2 - Views : 3 )           »          Color query, at specific point on screen (Last Post : atta707 - Replies : 4 - Views : 5 )           »          Get Locale country and language codes (Last Post : PaulH **AdobeCommunityExpert** - Replies : 21 - Views : 22 )           »          Odd.... (Last Post : steve grosz - Replies : 2 - Views : 3 )           »          Spry Tabbed Panels - Start with no default tab?? (Last Post : rhore - Replies : 0 - Views : 1 )           »          Flash Player 10 compatibility (Last Post : Captiv8r - Replies : 3 - Views : 25 )           »          Connecting to a Database (Last Post : sugar_d - Replies : 5 - Views : 6 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion > Advanced Techniques
 
Tags:



Reply
  #1 (permalink)  
Old 10-06-2008, 08:51 PM
trubel
 
Posts: n/a
Diggs:
Default CFFEED Error message

I get this message:
[Q]Unable to read the feed source file
C:\websites\dev\http:\rss.news.yahoo.com\rss\midea st [/Q]

I am trying to use the cffeed. Everything works fine when I use a static feed.
But when I try to loop through my db table that contains the RSS Name and RSS
Feed, I get the above error message. "C:\websites\dev\" is the web server path.
What is causing this to happen? When I manually enter the rss feed in the
source attribute it works fine.

works..<cffeed action="read" source="http://rss.news.yahoo.com/rss/mideast "
properties="meta" query="items">
won't work <cffeed action="read" source="#RSS.RSSFEED#" properties="meta"
query="items">




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-07-2008, 02:36 AM
Azadi
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

dump out your #RSS.RSSFEED# variable and see what it contains. compare
it to what you think it contains/what it should contain and do something
about the differences.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Reply With Quote
  #3 (permalink)  
Old 10-07-2008, 03:10 AM
trubel
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

Azadi, That was the first thing I did. The cfdump shows exactly what it should be showing.
Reply With Quote


  #4 (permalink)  
Old 10-07-2008, 03:53 AM
Azadi
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

well, if i do this:

<cfset RSS = {}>
<cfset RSS.RSSFEED = "http://rss.news.yahoo.com/rss/mideast">
<cffeed action="read" source="#RSS.RSSFEED#" properties="meta"
query="items">

it works fine. that tells me that YOUR RSS.RSSFEED variable does NOT
evaluate to "http://rss.news.yahoo.com/rss/mideast".

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Reply With Quote
  #5 (permalink)  
Old 10-07-2008, 03:54 AM
trubel
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

Yes, like I said that works for me too, but when I query the DB for the URL,
thats where it doesn't seem to be working. Even though I can output
#RSS.RSSFeed# and it shows the correct url. This makes me think somethings
wrong with the CFFEED or something with the string coming from the DB. Since
the static cffeed works, it must be the way the variable is coming from the
DB... but when I dump the variable from the query, I get the actually rss feed
that I need.

Reply With Quote
  #6 (permalink)  
Old 10-07-2008, 04:06 AM
Azadi
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

it's definitely the value in the db is wrong. but you say when you dump
it it shows up correct? is your code doing any string manipulation on
the data returned by the db?

can you do this:

<pre>
<cfoutput>#RSS.RSSFEED#</cfoutput>
</pre>

just before your cffeed call and post the result here?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Reply With Quote


  #7 (permalink)  
Old 10-07-2008, 04:49 AM
trubel
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

If you go to the page you can see the result.
As, like I said before.... the url is in fact the correct url for the feed. but when the cffeed reads the variable...something happens.
Reply With Quote
  #8 (permalink)  
Old 10-07-2008, 05:04 AM
Azadi
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

what page?

is it too hard for you to add
<pre><cfoutput>#RSS.RSSFEED#</cfoutput></pre> to your code and post the
result here? do you really want to solve this one?

as I said before, the data in your db is most likely incorrect.
unless you do some manipulation on the data returned from the db before
you use it in your <cffeed> - then your db result manipulation is at fault.

as simple a thing as having a / in front of the feed url will cause this
error.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Reply With Quote
  #9 (permalink)  
Old 10-08-2008, 02:23 AM
Azadi
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

if you had done what i suggested you would have seen the space in front
of your url and wouldn't have had to bother Ray with this.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Reply With Quote


  #10 (permalink)  
Old 10-08-2008, 04:14 PM
trubel
 
Posts: n/a
Diggs:
Default Re: CFFEED Error message

I did what you suggested, Actually, if you had read the orginal post you would have known that. Ray didn't even see this error to begin with.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 03:45 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk