CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 3.2.5 group names do not accept UTF-8?
Pages: [1]

Author Topic: 3.2.5 group names do not accept UTF-8?  (Read 1236 times)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
3.2.5 group names do not accept UTF-8?
January 12, 2011, 03:53:11 am
Trying to add non-English characters via the "Add Group" function, and got this error:

Sorry. A non-recoverable error has occurred.
is not of type String
Return to home page.

Any workaround?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 04:14:10 am
Can you try to reproduce on demo.civicrm.org ?

We had a bug on how the name/label was handled at one point, but should be fixed now.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 04:48:27 am
And I think the error occurred when the name of the group was 31 chars or more, and should be solved with version 3.2.4......just ran it to that at a customer :-)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 05:29:49 am
Quote from: xavier on January 12, 2011, 04:14:10 am
Can you try to reproduce on demo.civicrm.org ?

We had a bug on how the name/label was handled at one point, but should be fixed now.

X+

in demo.civicrm.org, running 3.3, it is working.

Any 3.2.5 demo site I can try? I simply paste "區間" in Group Name.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 05:36:47 am
I just tried on a 3.2.4 demo site, and it worked. What is the complete name you are trying to create?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 05:48:34 am
Quote from: Erik Hommel on January 12, 2011, 05:36:47 am
I just tried on a 3.2.4 demo site, and it worked. What is the complete name you are trying to create?

Can you gimme the link to the 3.2.4 demo site?

Any characters, such as "區間" (without quotes). BTW, this is Trad. Chinese.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 05:51:37 am
I have just tried with the characters you supplied here? This is our own demo site in Dutch......attached a screen print of the group I created.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 06:05:41 am
Quote from: Erik Hommel on January 12, 2011, 05:51:37 am
I have just tried with the characters you supplied here? This is our own demo site in Dutch......attached a screen print of the group I created.

OK.

Below is my result, with back trace enabled.

Do I need to see the sql query? This is the first time I debug CiviCRM/Drupal, kindly bare with me.

http://www.tourdefarm.com/1.png
http://www.tourdefarm.com/2.png

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 06:25:46 am
We are not all old hands here, it is all still fairly new to me as well :-)
I just checked on my demo site with just these charactes as a name, so 區間 rather than testgroep 區間 and than I get the error too! As far as I can see it has nothing to do with the special characters, the same happens if I add a group with the name 5. Looks like the error occurs if the first char of the name is not alpha.

It is solved in the latest version, as I do not get this problem in the demo version. Can you upgrade?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 06:50:21 am
Quote from: Erik Hommel on January 12, 2011, 06:25:46 am
We are not all old hands here, it is all still fairly new to me as well :-)
I just checked on my demo site with just these charactes as a name, so 區間 rather than testgroep 區間 and than I get the error too! As far as I can see it has nothing to do with the special characters, the same happens if I add a group with the name 5. Looks like the error occurs if the first char of the name is not alpha.

It is solved in the latest version, as I do not get this problem in the demo version. Can you upgrade?

I prefer not to upgrade to 3.3.x, yet.

I'll compare 3.2.5's /sites/all/modules/civicrm/CRM/Core/DAO.php, line 942 and 893 to 3.3.2 and see if I can just make a change there....

Thanks mate!

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 07:00:16 am
That was going to be my next suggestion...although I would backtrace from the postProcess in CRM/Group/Form/Edit.php rather than jump straight to the DAO.php?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: 3.2.5 group names do not accept UTF-8?
January 12, 2011, 09:58:26 am
DAO.php has no difference.

You're right. Difference starts at /CRM/Group/Form/Edit.php. I'm not sure how to proceed atm.  Might work on it when I'm more conscious tmr morning.

Area of interest:
setDefaultValues()
« Last Edit: January 12, 2011, 10:00:49 am by charleslcso »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 3.2.5 group names do not accept UTF-8?

This forum was archived on 2017-11-26.