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,535
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,535
Likes: 150
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
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,535
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,535
Likes: 150
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
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
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 233 guests, and 188 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)