[turba] Error when communicating with the server

Simon B simon.buongiorno at gmail.com
Mon Jan 18 11:57:11 UTC 2016


Hi

Although I wrote a few weeks ago that I had solved this issue, all I had
actually solved was confirming that I was pulling the latest Horde_Util
with every git update.
http://lists.horde.org/archives/horde/Week-of-Mon-20151123/055119.html

I am still faced with this in my horde logs..
2016-01-18T09:47:44+00:00 EMERG: HORDE-BETA [turba] Call to undefined
method Horde_String::ipos() [pid 785 on line 1356 of
"/usr/share/git-horde/turba/lib/Api.php"]
2016-01-18T09:47:45+00:00 EMERG: HORDE-BETA [turba] Call to undefined
method Horde_String::ipos() [pid 10907 on line 1356 of
"/usr/share/git-horde/turba/lib/Api.php"]
2016-01-18T09:49:41+00:00 EMERG: HORDE-BETA [turba] Call to undefined
method Horde_String::ipos() [pid 1563 on line 1356 of
"/usr/share/git-horde/turba/lib/Api.php"]

Apache says the same thing:
[Mon Jan 18 11:07:54 2016] [error] [client 195.xx.xx.xx] PHP Fatal error:
Call to undefined method Horde_String::ipos() in
/usr/share/git-horde/turba/lib/Api.php on line 1356, referer:
https://webmail.myserver.net/imp/dynamic.php?page=compose&type=new&token=_Y9_38ShXrvY18S7TMQRmq3&uniq=1453115255406
[Mon Jan 18 11:10:41 2016] [error] [client 195.xx.xx.xx] PHP Fatal error:
Call to undefined method Horde_String::ipos() in
/usr/share/git-horde/turba/lib/Api.php on line 1356, referer:
https://webmail.myserver.net/imp/basic.php?page=contacts&u=722724496569cc5f6ce373

Note that the second attempt is using the pop-up when clicking on the "To:"
link and not using the dynamic Ajax call from the To: field

This is the routine causing the issue:
1355
1356                                     $add =
((Horde_String::ipos(Horde_String_Transliterate::toAscii($e_val), $tname)
!== false) ||
1357
 (Horde_String::ipos($tdisplay_name, $tname) !== false));
1358                                 } else {
1359                                     $add = true;
1360                                 }

Can I get some help in debugging/fixing this?  It's quite a pain having to
copy and paste emails from the addressbook (especially as the ordering is
still awry - #14183)

I understood from the original reply here -
http://lists.horde.org/archives/turba/Week-of-Mon-20141208/007018.html to
Roman that it might be an issue with the Pear config/include path.  Whilst
I use to run two pear installs, I stopped when I moved pre-prod to git:

pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET <http://pear.php.net/>):
=====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pear.php.net
...
PEAR directory                 php_dir          /usr/share/php

And /usr/share/php is in my /etc/php5/cli/php.ini

# php --ini
Configuration File (php.ini) Path: /etc/php5/cli

So, I'm a little stuck.  I'd like to upgrade Prod to but I'm reluctant to
do so if this is going to carry over.

Thanks

Simon


More information about the turba mailing list