UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » Ugrade 0.8a > 1.0_RC2 XML Parsing Error

Ugrade 0.8a > 1.0_RC2 XML Parsing Error

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Sep 2005
Posts: 76
Location: New Zealand
I upgraded from 0.7 > 0.8a without problems and today tried to update to the latest release 1.0_RC2

It seems that one of the forums is mal-formed and I get this message:

XML Parsing Error: not well-formed
Location:
Line Number 161, Column 121:
<td><div class="forumname"><a href="forum.php?id=1">Morning Madhouse</a></div>
<div class="forumdescr">Jay-Jay, Mike & Dom</div></td>

We have had to delete two other topics in the past and I am wondering if deleting a complete topic will solve the problem or will this new code move on to the next TOPIC.

Which file is parsing this forum and finding errors? Suggestions please. I have reverted to Version 0.8a meantime.

MS Server 2003/PHP5.0.5/MySQL5.0.21/IIS6
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Since 1.0, UseBB uses real XHTML for the front-end. This means, no errors should be in the code anymore, or the browser will render an XML error.

The error you now have is because the forum description field is not "unhtml'ed" to make the use of HTML possible. But because you use a & in the description, you will get an XML error. To show "&" you need to use "&amp;".

I'll add a notice to the field in the ACP in RC3 to make people aware of this.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Sep 2005
Posts: 76
Location: New Zealand
Can I change the forum name now somehow (change the & to and) and see if that will work?

Now going to have to figure out if I can change a Topic name after the fact. Will have a look.

Thanks for the info.

Dave
Member
Registered: Sep 2005
Posts: 76
Location: New Zealand
Oh, do I have to look through all posts searching for any & symbols or is it only in the TOPIC or Topic Description that I have to be careful?
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
You only need to change that forum description.
Jay-Jay, Mike & Dom to Jay-Jay, Mike &amp; Dom

To do that, just go to admin.php directly.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Sep 2005
Posts: 76
Location: New Zealand
Thank you. I have corrected and replaced the ampersand (&) in the Forum description in about three places (with &amp; ) and the new code is working fine.

Radiochick Forum

MS Server 2003 / IIS6 / PHP 5.0.5 / MySQL 4.1.14
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Great to hear it works on IIS now too (without patching).
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Help & Support » Ugrade 0.8a > 1.0_RC2 XML Parsing Error

UseBB Community is powered by UseBB 1 Forum Software