Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-11053

Searchlog does not work when searching for words with german umlauts

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 3.9.2
    • None
    • Operating System: linux
      PHP Version: 4.4.4
      Database and version: mysql 4.1.20
      Browser (and version): firefox 2.0.0.1

    Description

      When searching for a word with german umlauts ("Schröder") for the second time I get a fatal error:

      Fatal error: A database transaction in eZ publish failed.

      Zend Platform reports:
      Source file: In file /lib/ezdb/classes/ezmysqldb.php on line 450
      Error description: Duplicate entry 'schr' for key 2

      I think the reason for this is the usage of "strtolower" (which depends on the locale) in /kernel/classes/ezsearchlog.php within the addPhrase-function.

      If the line

      $phrase = strtolower( trim( $phrase ) );

      would be replaced by

      include_once( 'lib/ezi18n/classes/ezchartransform.php' );
      $trans =& eZCharTransform::instance();
      $phrase = $trans->transformByGroup( trim( $phrase ), 'lowercase' );
      

      the problem would be solved, I think

      Steps to reproduce

      Search twice for a word which contains at least one german umlaut.

      LogSearchStats=enabled

      Used charset: UTF-8

      Attachments

        Activity

          People

            unknown unknown
            e8c27efa-d74a-4f0f-93e7-219bc3702db7@accounts.ibexa.co Holger Marx
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: