when I click on Subscribe link on landing page. It opens /rss/ page showing following error.
XML Parsing Error: XML or text declaration not at start of entity Location: http://mydomain.com/rss/ Line Number 2, Column 5: <?xml version="1.0" encoding="UTF-8" ?><div style="border: 1px solid #990000">Error loading Razor Script /uBlogsy/uBlogsyRSS.cshtml</br/>String cannot be of zero length. ----^
Ensured that rss master page parent was the Umbraco master.
Created a new uBlogsyRSS.cshtml because Umbraco was not allowing saving when under a folder. A bit annoying. Ensured that there were no starting or trailing spaces and linebreaks
I also removed any trailing spaces in the rss masterpage by making the markup more compact. Hardly noticable to the human eye but RSS feeds tend to break due to a new line or space (or even an invisible character) which you don't even know is there.
Rss page error
hello
when I click on Subscribe link on landing page. It opens /rss/ page showing following error.
XML Parsing Error: XML or text declaration not at start of entity
Location: http://mydomain.com/rss/
Line Number 2, Column 5: <?xml version="1.0" encoding="UTF-8" ?><div style="border: 1px solid #990000">Error loading Razor Script /uBlogsy/uBlogsyRSS.cshtml</br/>String cannot be of zero length.
----^
Try this...
Replace the line with string blogUrl
with
Going a bit bonkers with this one myself.
I have tried:
The backend razor is different calling differnent libraries.
I am a bit stuck. I can't really use this version unless I can get RSS going.
Firefox shows the error and IE shows a blank page. Its doesn't seem to matter where the RSS object is within the Umbraco heirarchy.
Perhaps Mr Dang if you would like to look at this site online I can supply credentials. I am sure you would fix in a jiffy.
Thank anyway if you can't.
Email me the login details - my twit handle at g m@il d0t c0m
Hmmm.
Getting new error with the code change:
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0">
--^
Old error:
<?xml version="1.0" encoding="UTF-8" ?>Error loading MacroEngine script (file: /uBlogsy/uBlogsyRSS.cshtml)
--^
Test mail sent
Must be the wrong email address
No email yet.
Thanks again Anthony for fixing.
Not sure what the bug was yet!
What I did...
I also removed any trailing spaces in the rss masterpage by making the markup more compact. Hardly noticable to the human eye but RSS feeds tend to break due to a new line or space (or even an invisible character) which you don't even know is there.
thanks anthony.
It solved my problem too. replaced string blogUrl line and removed white spaces/line breaks from template.
removing the top line comment
@*
RSS layout.
*@
fixed the issue for me, which seems a bit ridiculous.... but if it helps anyone else, try it.
is working on a reply...