Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 136
O
member
member
O Offline
Joined: Jun 2006
Posts: 136
opening XML output from my forums brings up the following error in Firefox:

Quote
XML Parsing Error: xml declaration not at start of external entity
Location: http://www.jakchat.com/forums/cache/rss12.xml
Line Number 2, Column 1:<?xml version="1.0" encoding="ISO-8859-1" ?>
^

it seems firefox thinks that XML declarations should be done on the very first line of the file. the XML output being produced by UBB is inserting a blank line at the beginning of the file.

firefox rendering of XML files also complains about & chars in some sections.



Last edited by Rick; 10/08/2006 6:06 PM.

Okusi Associates -- Indonesian business and management services
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
This was reportet somewhere here. There is a blank line in the template that need to be removed.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1

Joined: Jun 2006
Posts: 136
O
member
member
O Offline
Joined: Jun 2006
Posts: 136
i've fixed the problem with the blank line. now firefox is complaining about ampersands (&) in various places:

Quote
XML Parsing Error: not well-formed
Location: http://www.jakchat.com/forums/cache/rss12.xml
Line Number 5, Column 48: <title>Gentlemen, Revolutionaries, Scholars & Bules</title>
-------------------------------------------------------------^

unfortunately, many of my forum names use "&" in theor names!


Okusi Associates -- Indonesian business and management services
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
yeh, i think we need to start using htmlspecialchars() wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, we are using htmlspecialchars for both the subject and body. I think the problem is we aren't using it for the feed title itself. It looks like the fix will be on line 2589 of libs/ubbthreads.inc.php

Currently, that reads:

$smarty->assign("feed_name",$feed_name);

when it should be:

$smarty->assign("feed_name",htmlspecialchars($feed_name));

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
I know we aren't on forum descriptions or category/forum names (which would be nice for validity and all)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 136
O
member
member
O Offline
Joined: Jun 2006
Posts: 136
Originally Posted by Rick
Currently, that reads:

$smarty->assign("feed_name",$feed_name);

when it should be:

$smarty->assign("feed_name",htmlspecialchars($feed_name));

this has fixed the title problems.

however, now i notice that the posts being generated in the RSS feed seem to be random. they are not following any recognizable logical order. i had wanted the last 10 or so newest posts to be generated into the feed, instead, it gets the last post, and then seems to select old posts at "random".


Okusi Associates -- Indonesian business and management services

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)