[horde] problems after upgrading system rhel7 -> rhel8 (php5 mod_php -> php7.2 php-fpm )
Michael Menge
michael.menge at zdv.uni-tuebingen.de
Thu Jan 21 10:12:09 UTC 2021
Quoting Jan Schneider <jan at horde.org>:
> Zitat von Michael Menge <michael.menge at zdv.uni-tuebingen.de>:
>
>> Hi,
>>
>> a few weeks ago we upgraded our horde servers, (more exact we
>> installed new server with rhel8 and php7)
>> most problems that where missed during testig where easy to fix.
>>
>> At the moment there are two known problems that are not solved jet
>> and where i need help from the community.
>>
>> 1. the spell checker (aspell) only works if the language is manual selected.
>> The Language that is "highlighted" as pre-selected does not
>> work, it will not find any errors.
>> Selecting the pre-selected language again will find the errors.
>
> No idea about this one. Does this happen with any browser? Do you
> get any errors in the browser consoles?
>
tested and reproduced the bug with Firefox, Edge and Chromium.
No Errors in the console. Further debugging revealed that aspell
is called without the language Option. We did try the set the
default language in /etc/aspell.conf, but that did not work.
>> 2. if turkish is selected as language for horde, there is an error
>>
>> 2020-09-21T09:57:10+02:00 EMERG: HORDE [horde]
>> Predis\ClientException: Command 'EXPiRE' is not a
>> registered Redis command. in
>> /usr/share/pear/Predis/Profile/RedisProfile.php:88
>> Stack trace:
>> #0 /usr/share/pear/Predis/Client.php(323):
>> Predis\Profile\RedisProfile->createCommand('EXPiRE', Array)
>> #1 /usr/share/pear/Predis/Client.php(314):
>> Predis\Client->createCommand('expire', Array)
>> #2 /usr/share/pear/Horde/HashTable/Predis.php(191):
>> Predis\Client->__call('expire', Array)
>> #3 /usr/share/pear/Horde/SessionHandler/Storage/Hashtable.php(96):
>> Horde_HashTable_Predis->lock('mtd71dqlhd9omiu...')
>> #4 /usr/share/pear/Horde/SessionHandler.php(169):
>> Horde_SessionHandler_Storage_Hashtable->read('mtd71dqlhd9omiu...')
>> #5 [internal function]: Horde_SessionHandler->read('mtd71dqlhd9omiu...')
>> #6 /usr/share/pear/Horde/Session.php(277): session_regenerate_id(true)
>> #7 /usr/share/pear/Horde/Core/Auth/Application.php(657):
>> Horde_Session->clean()
>> #8 /usr/share/pear/Horde/Core/Auth/Application.php(150):
>> Horde_Core_Auth_Application->_setAuth()
>> #9 /usr/share/pear/Horde/Core/Auth/Application.php(138):
>> Horde_Core_Auth_Application->authenticate('uksak01', Array, true)
>> #10 /var/www/html/horde/login.php(155):
>> Horde_Core_Auth_Application->authenticate('uksak01', Array)
>> #11 {main}
>>
>> Google search found that there is a Problem with Predis
>> https://github.com/predis/predis/issues/372
>> but the problem was not triggered with php5 and i suspect that
>> the locale is leaking to php calls that
>> should not use the users locale.
>
> Well we must set the locale globally, because this is how gettext
> works, which we use for Horde's translation system. We could
> theoretically wrap each call to the Predis library by unsetting the
> locale first, and resetting it after the call. But I'd rather not
> want to go down that route. This should really be fixed in the
> library instead.
>
yes fixing the problem in Predis is the better solution.
--------------------------------------------------------------------------------
Michael Menge Tel.: (49) 7071 / 29-70316
Universität Tübingen Fax.: (49) 7071 / 29-5912
Zentrum für Datenverarbeitung mail:
michael.menge at zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen
More information about the horde
mailing list