Joo!BB - Making Community
Joo!BB - Joomla! Bulletin Board
Message
You have no permission to reply to this topic.
3 Replies

by Hennepdesk on 03/23/2008 12:58
Post XML parsing error

After a PHP update PHP 4.4 - PHP 5.2.4 I get a parsing error when I want to assign Joo!BB to a menu button.

Cause is the utf8 in the XML files. After changing the code into utf-8 the problem is solved.

Keep up the work for this component. I like IT Smile

Hennepdesk


Hennepdesk | Joined Board: 03/11/2008 07:26 | Last Visit: 04/08/2009 17:06
Joo!BB - Experienced
Registered
Posts: 58
Offline Member is Offline
View all users posts


by philly on 05/03/2008 00:26
Question getting same menu error

Could you tell me exactly where I'm suppose to edit the XML and is there a fix for this?


philly | Joined Board: 05/03/2008 00:07 | Last Visit: 05/03/2008 02:08
Joo!BB - Newie
Registered
Offline Member is Offline
View all users posts


by Flesh on 05/22/2008 22:19
Post Mostly in Views Folder

All xml files that have this
Code

xml... encoding="utf8"

to
Code
xml... encoding="utf-8"


Man this is hard to post; it keeps deleting it.


Flesh | Joined Board: 05/18/2008 05:09 | Last Visit: 12/06/2008 07:14
Joo!BB - Newie
Registered
Offline Member is Offline
View all users posts

Last Edit on 05/22/2008 22:27


by Zak Xander on 06/25/2008 22:17
Idea Fix for XML Parsing Error

Instead of manually editing each of the 20 or so files, you can just use this command line script if you have Linux or MacOS X (If you use Windows you'll need to download one of the unix command packages from
http://www.perlmonks.org/?node_id=469461):

unzip com_joobb_0.5.9.zip

find com_joobb -type f | xargs grep encoding=\"utf8\" | cut -f1 -d':' | while read filename ; do mv $filename $filename.bak ; sed 's/encoding=\"utf8\"/encoding=\"utf-8\"/' $filename.bak > $filename ; rm -f $filename.bak ; done

zip -r com_joobb com_joobb

You should now have a file called com_joobb.zip without the XML Parsing errors!

There are other instances of utf8 for instance within sql queries, but I don't know if they should be changed. If you want to change every instance of utf8 to utf-8, the second line of the script should read:

find com_joobb -type f | xargs grep encoding=\"utf8\" | cut -f1 -d':' | while read filename ; do mv $filename $filename.bak ; sed 's/utf8/utf-8/' $filename.bak > $filename ; rm -f $filename.bak ; done

Let me know if this solves your problem. Hopefully we can get a minor release to fix this bug since it's so easy to fix!

Zak


Zak Xander | Joined Board: 06/25/2008 19:35 | Last Visit: 07/07/2008 12:08
Joo!BB - Newie
Registered
Offline Member is Offline
View all users posts

Last Edit on 06/26/2008 01:13


3 Replies

Joo!BB - Joomla! Bulletin Board

Copyright © 2007 - 2012 Joo!BB Project - All rights reserved.