Forums / Install & configuration / Charset problem after upgrading from 3.10 to 4.0

Charset problem after upgrading from 3.10 to 4.0

Author Message

Frode Slettum

Tuesday 06 May 2008 2:14:49 pm

Hi

I had a site running versjon 3.7.x and upgraded all the way to 4.0.

All steps seemed fine, until the last one. When I upgraded from 3.10 to 4.0 and PHP5 I get some problems with norwegian special characters.

First I created the database and run this command:

alter database <db> default character set utf8;

Then I imported the data, and followed the rest of the upgrade howto on the document pages.

After that, all norwegian characters are screwed up. That's fine because I could just edit this manually, but when I edit objects or create new objects with the norwegian characters in it, the whole xml-code is not shown on the site. If I afterwords try to edit an object that has the character in itself, I get this:

Fatal error: Call to a member function hasAttributes() on a non-object in <path-to-site>/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmleditoutput.php on line 126
Fatal error: eZ Publish did not finish its request

The execution of eZ Publish was abruptly ended, the debug output is present below.

The web server runs fine on other 4.0 sites (not upgrades).

Łukasz Serwatka

Tuesday 06 May 2008 11:02:50 pm

Hi,

I think your UTF-8 conversion process was wrong. Take a look on this topic:

http://ez.no/developer/forum/install_configuration/database_charset_conversion_downgrade_sql_to_non_utf_8

http://ez.no/developer/forum/general/convert_from_iso_8859_1_encoding_to_utf_8

Or you can use this script which should do all job for you:
http://pubsvn.ez.no/nextgen/trunk/bin/php/ezconvertdbcharset.php

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Siu ck

Wednesday 21 May 2008 2:16:27 am

Hi we have tried out your script to get the special characters working in 4.0.0 but when we try to execute it we get the following error
Unserializing content class attributes names...

Fatal error: Call to undefined method eZContentClassAttributeNameList::cleanNameList() in /var/www/uni.lu/bin/php/ezconvertdbcharset.php on line 393

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

we have also tried to generate the autololoads first to know avail

we tried to put the db4.0 in latin1 and then ran the script again to no avail
For the moment when we try to insert a special character in an xml block, the content simply dissapears...

we have also tried to put everthing in utf8 like it is supposed to be, with the same result.

can you help us out, thank you

Łukasz Serwatka

Wednesday 21 May 2008 4:27:02 am

Hi,

Conversion script was added in eZ Publish 4.0.1(stable/4.0 rev.21347) (not released yet), thus you will need to update installation on your own to 4.0.1 then run conversion script. It seems to be not compatible with 4.0.0.

Stable 4.0
http://pubsvn.ez.no/nextgen/stable/4.0/

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Siu ck

Wednesday 04 June 2008 6:24:45 am

Hello,

when we issue the svn command it asks us the root password and then a login to acces your subversion, could you pls provide us with those?

thx in advance

Łukasz Serwatka

Wednesday 04 June 2008 7:41:57 am

The SVN repository is available for anonymous users. You don't need provide password.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog