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) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Localization and very bad performance
Pages: [1]

Author Topic: Localization and very bad performance  (Read 567 times)

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Localization and very bad performance
February 08, 2015, 09:03:57 am
I upgraded the CiviCRM version last week (from 3.xx) and ran into a huge performance problem. CiviCRM pages within Drupal take more than a minute to load and time-out. When I changed the language back to US-English it seems to work fine again.

I tried it several time to see if minor tweaks would change things. But it doesn't. Setting the language to NL gives me the problem.

Btw.. this is a clean install. I was not able to upgrade my current installation and am migrating with down and uploads.

Does anyone know what the problem might be with the performance?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Localization and very bad performance
February 08, 2015, 09:22:58 am
If you have not installed php gettext that can make a huge difference.
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Localisation#CiviCRMLocalisation-Usingnativegettextsupport/setlocale
Try asking your question on the new CiviCRM help site.

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Localization and very bad performance
February 08, 2015, 09:27:08 am
Thank you.. I'll talk to the hosting provider to see if it is installed (don't have shell access myself)

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Localization and very bad performance
February 08, 2015, 09:53:50 am
Native Gettext is usually compiled in PHP, and it is usually present. The main issue is making sure that the operating system has enabled the "locale" for nl_NL.utf8 ("locale -a" .. which reminds me that we could probably do some of these checks from within CiviCRM). If you are in NL, and your hosting provider is a NL-based organisation, in 90% of cases, they probably support it.

Just to clarify, because the PHP packages are really confusing: "php-gettext" is a library written in PHP that provides gettext emulation. This is what CiviCRM uses by default. Native gettext is compiled in CiviCRM.  (the documentation is currently a bit of a mess, any help is much appreciated :-)
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Localization and very bad performance

This forum was archived on 2017-11-26.