1
rob777
NewBB2 RSS problem
  • 2005/1/27 7:41

  • rob777

  • Just popping in

  • Posts: 45

  • Since: 2005/1/21


Hi all,

Not that I use it or anything, but I clicked on the RSS buttom on the bottom of my forums list and got this error

XML Parsing Error: syntax error
Location:http://allmoneytopics.com/modules/newbb/rss.php
Line Number 1, Column 16:<?xml version="" encoding=""?>
---------------^

I'm running NewBB2, I deleted the NewBB that came with Xoops, and fresh installed the NewBB2. Running XOOPS 2.0.7.3 on a Linux, i686, Apache 1.3.33 (Unix), PHP 4.3.10, MySQL 4.0.22-standard.

I wished I knew what all that ment.

Anyway, What do I have to do to fix the error, or get rid of the RSS feed link button? If it works, I'll keep it. If not...I don't think I need anyway.


Thanks,
Rob

2
irmtfan
Re: NewBB2 RSS problem
  • 2005/1/27 8:01

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


same problem mentioned here:
Newbb2 RSS problem
please go to newbb2 admin --> preferences and set "RSS Encoding with UTF-8" to "NO"

3
rob777
Re: NewBB2 RSS problem
  • 2005/1/27 8:19

  • rob777

  • Just popping in

  • Posts: 45

  • Since: 2005/1/21


Thanks for the help.

It didn't work though. Still the same error message. So I just turned off the RSS option in the admin panel.

Later,
Rob

4
jdseymour
Re: NewBB2 RSS problem

There has to be some other problem here, as mine is set to the default utf-8 with no problems.

5
Dhurgan
Re: NewBB2 RSS problem
  • 2005/1/27 9:24

  • Dhurgan

  • Just popping in

  • Posts: 68

  • Since: 2004/2/11


as you can see from his post, I dont think that was the problem...

I have tried both with UTF-8 and ISO-8859-1 and both give the same result...
XML Parsing Errorsyntax error
Location
http://exelsior.sweden/modules/newbb/rss.php
Line Number 1Column 16:
<?
xml version="" encoding=""?>
---------------^

So it actually points to the xml version being empty, not the encoding.

with UTF-8 enabled and not, it gives the exact same fault...

in the template one can read
<?xml version="<{$rss.xml_version}>" 
encoding="<{$rss.xml_encoding}>"?>


and in the code rss.php in the module...
if (!$tpl->is_cached('db:newbb_rss.html')) {
        
$rss = &newbb_buildrss();
        
$tpl->assign('rss'$rss);
}


so it seems those variables are not provided to the template from the newbb_buildrss function for some reason...
looking deeper I see that the include/functions.php DOES provide these variables, but I cant see that the templates gets them, perhaps it goes through the xml parser before the template is filled? Changing the template to try to get it to debug only gives other errors from the xml parser so it seems the parser processes the template in some manner...

Oh, BTW, freshly installed 2.0.9.2 with the newBB replaced with newBB2.0.1 and the patch for it.
System base is
# php -v
PHP 4.3.5RC2 (cli) (builtFeb 16 2004 17:41:53)
Copyright (c1997-2004 The PHP Group
Zend Engine v1.3.0
Copyright (c1998-2004 Zend Technologies

#/usr/local/mysql/bin/mysqladmin
/usr/local/mysql/bin/mysqladmin  Ver 8.40 Distrib 4.0.17, for sun-solaris2.9 on sparc

6
MikeOConnor
Re: NewBB2 RSS problem

Just a quick note to confirm this -- I've got the same behavior.

Tried changine the UTF-encoding flag to "no" and the problem persists.

It's great to have the RSS link on every page. It'll be tempting for folks to click it, so having it work would be a Good Thing.

7
greggo
Re: NewBB2 RSS problem
  • 2005/2/1 5:16

  • greggo

  • Just popping in

  • Posts: 7

  • Since: 2003/3/20


Anyone figure this out? I'm having the same behavior regardless of the UTF setting.

8
Dhurgan
Re: NewBB2 RSS problem
  • 2005/2/1 8:11

  • Dhurgan

  • Just popping in

  • Posts: 68

  • Since: 2004/2/11


I can say this as an addidtional info.
It doesnt seem to have ANYTHING to do with xoops.
I have the exact same version of XOOPS on several different sites and on my other sites, it works fine.

My guess is that it is something in the underlying stuff that is wrong, but to find out what I would have to go through a lot of stuff in my different systems.

Today, I dont have that time, sorry to say.

I can say that the working system has a higher version of both php, MySQL and apache... of these the only one I believe could affect this is the php version.

When I have time I will try to upgrade the nonworking system one part at a time and see when it starts working.

9
MikeOConnor
Re: NewBB2 RSS problem

Hm. Methinks it's time for those of us with the problem to chime in with what platform we're running on.

I'll start. My problem child is;

OS - Win2003 (all patched up)

MySQL - 4.0.20a

PhP - 4.3.7

XOOPS - 2.0 (I think...)

What got me started on this was the "paths" problem installing phpWiki -- which happens in WinXX environments but not in Linux/Unix...

10
Dhurgan
Re: NewBB2 RSS problem
  • 2005/2/1 14:46

  • Dhurgan

  • Just popping in

  • Posts: 68

  • Since: 2004/2/11


My info was up there
Non working system...
System:    SunOS retaliator 5.9 Generic_112233-11 sun4u
Webserver
Apache/2.0.48 (UnixPHP/4.3.5RC2
MySQL
:     4.0.17
Xoops
:     2.0.9.2 (fresh install)
NewBB2:    2.0.1 (patched)

Working system...
System:    SunOS krynn 5.9 Generic_112233-08 sun4u
Webserver
Apache/2.0.52  (UnixPHP/4.3.2RC1
MySQL
:     3.23.56
Xoops
:     2.0.9.2 (upgraded)
NewBB2:    2.0.1 (patched)

Looking at this I see that the versions are actually more recent on my faulting system, which probably is very natural since a productionsystem is usually left alone if security or peformance isnt an issue...

Login

Who's Online

153 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits