Error adding blog entry
Hi all I have the following error when creating a blog message with xwiki using UTF-8 encoding: Error: document.forms.edit['XWiki.ArticleClass_0_title'] has no properties Source File: http://cwinxwikiutf8:8080/xwiki/bin/inline/Main/PageName?parent=Main.WebHome... Line: 107 I have search the mailing list and found a similar report on Thu, 14 Apr 2005 by Mathieu Peltier:
btw, when I use the default form in the left menu to add a new in the blob, I get no form where to fill the news but only the field names (Title, Category, ...) with the following javascript error:
Inline script thread Error: name: TypeError message: Statement on line 4: Expression evaluated to null or undefined and is not convertible to Object: document.forms.edit["XWiki.ArticleClass_0_title"] Backtrace: Line 4 of inline#1 script in http://localhost:8080/xwiki/bin/inline/Main/PageName?parent=Main.WebHome&tem... document.forms.edit["XWiki.ArticleClass_0_title"].value = title;
Does anybody has any clue on this? Thanks. Patrick Lee
On Wed, Jul 06, 2005 at 12:59:59PM +0800, Patrick Lee wrote:
Hi all
I have the following error when creating a blog message with xwiki using UTF-8 encoding:
Could you describe all settings regarding encoding, that you have changed from their default values? I'm not an xwiki expert, but I really want to configure utf-8 properly, maybe we will be able to find proper settings together... Richard. -- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.
On 7/6/05, Ryszard Lach <siaco@autograf.pl> wrote:
On Wed, Jul 06, 2005 at 12:59:59PM +0800, Patrick Lee wrote:
Hi all
I have the following error when creating a blog message with xwiki using UTF-8 encoding:
Could you describe all settings regarding encoding, that you have changed from their default values?
Thanks Richard. The platform is Chinese Windows XP with SP2 Sun JDK j2sdk1.4.2_08 Jakarta tomcat 4.1.31 mysql-4.1.12a-win32 XWiki Version 0.9.840 using UTF-8 setting as instructed in: http://www.xwiki.org/xwiki/bin/view/Dev/CharactersSets To be safe, create statemnet in mysql using utf8 : create database xwiki character set utf8; Delete the meta header about "Content-Type" in XWiki.Preferences -> Presentation: http-equiv meta header The Knowledge Base page is ok. I can add chinese character content( but not page name) can edit it after update as they are stored using unicode. Next I want to use the blog, but encounter this problem. Any comment is welcomed Patrick Lee
On Wed, Jul 06, 2005 at 02:42:30PM +0800, Patrick Lee wrote:
The Knowledge Base page is ok. I can add chinese character content( but not page name) can edit it after update as they are stored using unicode. Next I want to use the blog, but encounter this problem.
Any comment is welcomed
Well, I'm not able to have even KnowledgeBase working... Using exactly the same settings (installed a minute ago from scratch, Linux, tomcat-4.1.30, jdk1.4.2) I do have proper encoding, but unly until I restart xwiki (BTW: did you try to restart it after entering some utf-8 characters)? I will keep on trying... Richard. -- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.
Richard, It does work even after restart. I think my problem is related to importing the database with the UTF-8 encoding. It seems to be related to the blog class "XWiki.ArticleClassSheet" or the blog class instances... Patrick On 7/6/05, Ryszard Lach <siaco@autograf.pl> wrote:
On Wed, Jul 06, 2005 at 02:42:30PM +0800, Patrick Lee wrote:
The Knowledge Base page is ok. I can add chinese character content( but not page name) can edit it after update as they are stored using unicode. Next I want to use the blog, but encounter this problem.
Any comment is welcomed
Well, I'm not able to have even KnowledgeBase working... Using exactly the same settings (installed a minute ago from scratch, Linux, tomcat-4.1.30, jdk1.4.2) I do have proper encoding, but unly until I restart xwiki (BTW: did you try to restart it after entering some utf-8 characters)? I will keep on trying...
Richard.
-- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
participants (2)
-
Patrick Lee -
Ryszard Lach