YAFLogo

Rob_BAM
  • Rob_BAM
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
I've recently installed YAF forum and today I realized that RSS & Atom Feeds are not working.

When I click on a feed link it goes to URL like this:

yaf_rsstopic0ft0_latestposts-rss.xml

and browser states that file or directory does not exist.

All other functionality seems to be working fine. I can create accounts, e-mail, post...

Other than modifying default.aspx to fit my website, I haven't made any other code changes.

Here is my forum:

http://buyerauctionmanager.com/forum/ 

Has anybody else encountered this before?

Any ideas on how to fix this?

Thanks,

Robert


My responsive forum for people who choose to eat High Fat Low Carb:

http://highfatlowcarbliving.com 

Sponsor
squirrel
12 years ago
Seems like it might be a URL Rewriting issue. If I use the direct link to RSS (yaf_rsstopic.aspx) I get an XML output. The devs might be able to shed a little more light on the issue...
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
12 years ago
In UrlRewriter.config there are 3 rows. You can completely wipe out them or fix the regexps to trace the problem origin.

I can't reproduce it as I have a different test case.

gagfree
  • gagfree
  • 51.2% (Neutral)
  • YAF Forumling
12 years ago
Any news regarding this issue? I have the exact same problem.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

Any news regarding this issue? I have the exact same problem.

Originally Posted by: gagfree 

If you are Using the latest version make sure you have updated all files correctly especially the urlrewriter.config

gagfree
  • gagfree
  • 51.2% (Neutral)
  • YAF Forumling
12 years ago
I downloaded the v1.9.6 RC1 and did a fresh install.

Everyting else seems to work.

These are my three RSS lines in UrlRewrite.config

They are identical to the ones shown in a previous post.

Rob_BAM
  • Rob_BAM
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
I also have 1.9.6 RC1 and the 3 lines that bbobb posted match exactly my UrlRewriter.config.

This is the entire content of that file:

I tried playing with RegEx but I don't know enough about it and was not able to change it to get it working.

This is an example of a page that gets produced that is a broken link:

yaf_rsstopic3ft0_forum-rss.xml


My responsive forum for people who choose to eat High Fat Low Carb:

http://highfatlowcarbliving.com 

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
12 years ago
Of cause it's the same. It happens when you install it in folder, in root it works fine. As I said earlier simply comment or remove the 3 rows. You will have a default rewriting.

This is the place, play around with it to fix.Try to remove the chunk after \.xml

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago
Actually if it doesnt work by default its a bug, to resolve it we should change the links to rss feeds from *.xml to *.aspx to resolve the problem. Or without the extension
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
12 years ago

Actually if it doesnt work by default its a bug, to resolve it we should change the links to rss feeds from *.xml to *.aspx to resolve the problem. Or without the extension

Originally Posted by: tha_watcha 

No we shouldn't and it's not a bug, but a config setting. By your logic if you don't put a /forum as ClientFileRoot it's a bug because it doesn't work for him by default too.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

Actually if it doesnt work by default its a bug, to resolve it we should change the links to rss feeds from *.xml to *.aspx to resolve the problem. Or without the extension

Originally Posted by: bbobb 

No we shouldn't and it's not a bug, but a config setting. By your logic if you don't put a /forum as ClientFileRoot it's a bug because it doesn't work for him by default too.

Originally Posted by: tha_watcha 

Ok please Provide a Solution that does work currently i have localhost/yaf/ and it doesnt work, following your instructions i should add

which still doesnt work

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
12 years ago
:-d It just an example that something should not work by default. .xml is required for generic feed readers. If it doesn't works in a folder, but works fine without it - the problem is almost certanly in the regexp. If you have an installation in folder you can hopefully fix it .
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

:-d It just an example that something should not work by default. .xml is required for generic feed readers. If it doesn't works in a folder, but works fine without it - the problem is almost certanly in the regexp. If you have an installation in folder you can hopefully fix it .

Originally Posted by: bbobb 

Hmh the XML exension doesnt Look that its needed most sites didn't use one for example ms and codeplex. But it does look like a problem with the URL rewriter maybe I can find the problem.

nicksmith
12 years ago

I think i have the same sort of problem:

The rss feed link

is

http://niras-prod-test/forum/yaf_rsstopic3ft0_forum-rss.xml

when i mouseover the RSS Feed link

I think it should be:

http://niras-prod-test/forum/yaf_rsstopic.aspx?pg=3&ft=0.aspx

but i have no way of really being sure about the right links since they are all mangled. :-(

i have looked in the UrlRewriter.config, but there is no mention of 'rss' in it anywhere

I have: 1.9.6 RC1

Any Ideas?

Nick Smith

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

I think i have the same sort of problem:

The rss feed link

is

http://niras-prod-test/forum/yaf_rsstopic3ft0_forum-rss.xml

when i mouseover the RSS Feed link

I think it should be:

http://niras-prod-test/forum/yaf_rsstopic.aspx?pg=3&ft=0.aspx

but i have no way of really being sure about the right links since they are all mangled. :-(

i have looked in the UrlRewriter.config, but there is no mention of 'rss' in it anywhere

I have: 1.9.6 RC1

Any Ideas?

Nick Smith

Originally Posted by: nicksmith 

The Only workaround if you are not able to compile the source yourself and change the links from xml to aspx is to disable url rewriting in the app.config

<add key="YAF.EnableURLRewriting" value="false" />

This issue will be fixed in the next release 1.9.6.2