[imp] Search results of more than 100 messages cause 'error communicating with the server'
Dear All, I've recently upgraded to Horde Webmail 5.2.1, with IMP 6.2.1. When any of my users try searching for messages in a mailbox and the result returns more than 100 results, they get the error above: error communicating with the server. In the Apache logs I see this: PHP Fatal error: Call to a member function fetch() on a non-object in /usr/share/horde/imp/lib/Contents.php on line 1616, referer: https://mydomain.com/horde/imp/dynamic.php?page=mailbox If a search yeilds less than 100 results, then another search immediately afterwards returns more than 100, there is no error when a message is clicked on but the message contents shown are from the previous results list. Any idea where I can start searching to fix this? Many thanks, Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Search results of more than 100 messages cause 'error communicating with the server'
Quoting Arjen de Korte : Citeren Tim ODriscoll : When any of my users try searching for messages in a mailbox and the result returns more than 100 results, they get the error above: error communicating with the server. Could it be you're using GMail as IMAP server? No, I'm using a Dovecot IMAP server on the same machine. I tried to duplicate this on a Dovecot IMAP server. It has no problems returning searches resulting in several hundreds of messages. My guess is that somehow your IMAP server is truncating the number. It used to work on the latest version of Horde 4, but the upgrade to H5 has caused this problem. I've tried manually running the IMAP commands over a telnet session and it's working as expected. I can search and I get a list of message numbers back (in excess of 200 on some searches) and then I can fetch a resulting message from it's number. I've tried turning off the Horde cache which had no effect and so it's left as using the file system. A while ago there was a similar post on this list: http://bugs.horde.org/ticket/13264 That's where I got the idea to change the cache settings, but now I'm stuck.. Could it be a PHP problem? I recently upgraded the OS on the machine to the latest Ubuntu and the new PHP was a pain to get working properly because there were lots of modules that needed to be manually enabled. Could I have missed enabling one? Many thanks for your help, Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Search results of more than 100 messages cause 'error communicating with the server'
Quoting Michael M Slusarz : What is the error message/backtrace in your Horde log? I turned on debug logging and tried my search. This is the error in the Horde log, including a few lines from above the actual error and below because I can't quite tell which bits are useful... Many thanks, Tim 2014-08-19T21:10:19+01:00 DEBUG: HORDE Load config file (nls.php; app: horde) [pid 31786 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 2014-08-19T21:10:19+01:00 DEBUG: HORDE [horde] Max memory usage: 1048576 bytes [pid 31786 on line 618 of "/usr/share/php/Horde/Registry.php"] 2014-08-19T21:10:20+01:00 DEBUG: HORDE Load config file (conf.php; app: horde) [pid 30356 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 2014-08-19T21:10:20+01:00 DEBUG: HORDE Read session data (id = b360ou1918d7c7add1rq73co52) [pid 30356] 2014-08-19T21:10:20+01:00 DEBUG: HORDE [imp] Load config file (conf.php; app: imp) [pid 30356 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 2014-08-19T21:10:20+01:00 DEBUG: HORDE [imp] Load config file (hooks.php; app: imp) [pid 30356 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 2014-08-19T21:10:20+01:00 EMERG: HORDE [imp] Call to a member function fetch() on a non-object [pid 30356 on line 1616 of "/usr/share/horde/imp/lib/Contents.php"] 2014-08-19T21:10:20+01:00 DEBUG: HORDE 1. Horde_ErrorHandler::catchFatalError() 2014-08-19T21:10:25+01:00 DEBUG: HORDE Load config file (conf.php; app: horde) [pid 23343 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 2014-08-19T21:10:25+01:00 DEBUG: HORDE Read session data (id = obetc4sus9v32gfukdp6u8jfa7) [pid 23343] 2014-08-19T21:10:25+01:00 DEBUG: HORDE [imp] Load config file (conf.php; app: imp) [pid 23343 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 2014-08-19T21:10:25+01:00 DEBUG: HORDE [imp] Load config file (hooks.php; app: imp) [pid 23343 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Search results of more than 100 messages cause 'error communicating with the server'
Quoting Samuel Wolf : Zitat von Tim ODriscoll : Any idea where I can start searching to fix this? http://bugs.horde.org/ticket/13264 http://marc.info/?t=14021508542&r=1&w=2 Use a cache, my setup work fine with a file-based cache. Thank you for the suggestion, Samuel. I found your posts before I posted to the list whilst I was looking for others with the same issue. I've not changed many of the default settings, preferring to leave them as the 'recommended' option in the drop down lists. I've tried disabling the cache and then turning it back on as the default Horde file system cache but it makes no difference to my searching errors. I thought it might be something to do with the session cache as well, so I've switched to 'file system storage' instead of the default PHP session cache. Sadly this has made no difference either. I also turned on PHP logging which just gave me the same error as in my initial post (can't fetch() on an empty result). I'm sure it's something very simple that I'm missing.. Many thanks, Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Search results of more than 100 messages cause 'error communicating with the server'
Quoting Michael M Slusarz : You either haven't updated Horde_Core or your cache settings are not correct. (Also make sure you are not using SQL for either cache or session storage). Thanks for your suggestion, Michael. I'm running Horde_Core 2.13.0 which was upgraded when I ran 'pear upgrade -a -B horde/webmail' I believe. I believe that I've got the cache and session handlers set up properly using the recommended Horde file system types. My config is below, perhaps you could tell me where I'm going wrong with it? Many thanks for your time on this, Tim $conf['sessionhandler']['params']['path'] = '/tmp'; $conf['sessionhandler']['type'] = 'File'; $conf['sessionhandler']['hashtable'] = false; $conf['session']['cache_limiter'] = 'nocache'; $conf['share']['cache'] = false; $conf['cache']['default_lifetime'] = 86400; $conf['cache']['params']['dir'] = '/tmp'; $conf['cache']['params']['sub'] = 0; $conf['cache']['params']['prefix'] = 'horde_cache'; $conf['cache']['driver'] = 'File'; $conf['cache']['use_memorycache'] = ''; $conf['cachecssparams']['driver'] = 'filesystem'; $conf['cachecssparams']['filemtime'] = false; $conf['cachecssparams']['lifetime'] = 86400; $conf['cachecss'] = true; $conf['cachejsparams']['driver'] = 'filesystem'; $conf['cachejsparams']['compress'] = 'php'; $conf['cachejsparams']['lifetime'] = 604800; $conf['cachejs'] = true; $conf['cachethemesparams']['check'] = 'appversion'; $conf['cachethemesparams']['lifetime'] = 604800; $conf['cachethemes'] = true; -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Search results of more than 100 messages cause 'error communicating with the server'
Quoting Michael M Slusarz : The only thing I can think of is that your cache storage backend is not writable by the webserver. You should make sure that cache files are actually appearing in the directory you have configured to store cache files in. Thank you for the summary of the caching process. I've verified that the cache files are appearing for both the Horde Cache and Horde Sessions. I've put them into seperate sub directories off /tmp now (and changed their ownership to the same as the webserver) and files are appearing in there with the designated prefix. Each file ranges in size from 1 byte to 533Kb at the time of writing. I've tried changing the directory depth setting to no avail as well, so have put it back to 0. So if I understand this correctly, IMP is caching the data correctly to disk but is not reading it back for some reason. Surely if apache can write the cache files in the first place, it should be able to read them back again? Indeed, if there was a caching problem it would manifest itself somewhere else as well? Short of a complete server rebuild to wipe the slate clean, is there anything else I can try? Many thanks, Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Search results of more than 100 messages cause 'error communicating with the server'
Quoting Brent : To test you can write, try to upload a picture for a Contact. If it doesn't upload and show, then you can't write. Thanks for the suggestion, Brent. I'm using an LDAP backend for authentication and personal addressbooks, and I can upload contacts' photo's fine. I'm not 100% certain it is a caching problem anymore.. The cache files are getting created fine and the problem persists. The problem is still there even if I disable caching altogether. I must have broken something else somewhere along the line.. I've got a spare server waiting to be a hot standby Horde server, so I'll probably set that up and get it replicating the databases and file systems, then switch all my users over to it before rebuilding the current server. It's still really bugging me that there must be a config file I've got wrong somewhere though :-) Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Search results of more than 100 messages cause 'error communicating with the server'
Quoting Tim ODriscoll : I've recently upgraded to Horde Webmail 5.2.1, with IMP 6.2.1. When any of my users try searching for messages in a mailbox and the result returns more than 100 results, they get the error above: error communicating with the server. I can confirm that with a recent upgrade to Horde Webmail 5.2.2 and IMP 6.2.2, this problem no longer is present. Many thanks, Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
[imp] IMP Address Book Preferences not persistent across sessions
Dear All, I have 3 LDAP address books in Turba. If I go into Preferences/Mail/Address Books within the Horde web interface, I can set which address books I'd like to search when expanding addresses. I can then save my preferences and when I compose a new email the address expansion works perfectly. However, if I then log out and log back in again, my address expansion preferences have been reset to search all address books. And indeed, composing a new email will search all address books. What have I got wrong in my set up to reset the IMP address expansion preferences upon logon? I don't see an option for it anywhere.. Many thanks, Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMP Address Book Preferences not persistent across sessions
Quoting Jan Schneider : Zitat von Tim ODriscoll : Dear All, I have 3 LDAP address books in Turba. If I go into Preferences/Mail/Address Books within the Horde web interface, I can set which address books I'd like to search when expanding addresses. I can then save my preferences and when I compose a new email the address expansion works perfectly. However, if I then log out and log back in again, my address expansion preferences have been reset to search all address books. And indeed, composing a new email will search all address books. What have I got wrong in my set up to reset the IMP address expansion preferences upon logon? I don't see an option for it anywhere.. Many thanks, Tim Do other preferences work across sessions? Yes, all other preferences I've set are persistent. What is the pref_name in the horde_prefs SQL table that stores the address expansion? I've pasted in my current list below. This problem is happening for all my users which I've tested, and preferences appear to be written to the SQL table. The closest pref_name I can see is 'search_sources', which has a 'blob' of 58 bytes in the table. Is it possible to decode the binary data in the blob to see it's contents? Perhaps then I can tell when (or if) it's getting over written. Or am I going the wrong way about it? Many thanks, Tim mysql> select pref_name from horde_prefs where pref_scope='imp' and pref_uid='my_uid'; +-+ | pref_name | +-+ | add_source | | atc_flag| | auto_save_drafts| | compose_html| | emoticons | | empty_trash_menu| | expanded_folders| | filter | | forward_default | | image_replacement_addrs | | initial_page| | mail_hdr| | mimp_inline_all | | msgflags| | newmail_notify | | purge_trash_interval| | refresh_time| | reply_headers | | save_attachments| | save_recipients | | search_fields | | search_sources | | sortby | | sortdir | | sortpref| | use_smime | | use_trash | | vfolder | +-+ 28 rows in set (0.00 sec) -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Sorting of search results
On Tue, 11 Nov 2014, Michael M Slusarz wrote: Quoting giorgio paolucci : Hello to everybody, sorting a search result seems to have no effect (messages are sorted by time but selecting other criteria has no effect). At random occasions the search result is not even ordered by time and users have to log out and login again to see searched messages in an ordered way. This is the expected behavior - there is no support for sorting search results at this time. I can sort search results via IMP: -Type in your search criteria to get the results -Click the 'sort' label in the message index to select the sort order -Reload the search results by clicking on the circular arrows in the top right of the yellow search bar, next to the button that closes the search. Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
[imp] Name/Email Address in compose window
Dear All, In the 'To:' field of a compose window in IMP, after I've started typing a name and clicked on the suggested recipient, sometimes that recipient is added to the 'to' field with just their name, and other times the recipient is added with their name and email address. For example, for contacts from the same LDAP source, some contacts will show as: My User Whilst others will show as: My User This is after I've chosen them from the suggested contact list after starting to type their name.. What is the criteria for the 'to' field as to whether or not a contact's email address is displayed? Many thanks, Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Name/Email Address in compose window
On Wed, 18 Mar 2015, Jens Grüntjes wrote: I'm not sure if if I got your point. In my case the auto-completion in IMP takes addresses from my address book and from "Favourite Recipients". The addresses from the latter ones are displayed as "user.n...@domain.com" in the drop-down and in the To:-field. The recipients from my address book are displayed as "User Name " in the drop-down and as "User Name" in the To:-Field. Almost the same as me, except when IMP recognises the email address as valid and it gets put into a white box with an 'x' on the side to delete it, within that white box is where I'm getting inconsistent results. For some users (in the same LDAP directory) it shows how I would expect ("User Name"), but for others it shows as "User Name ". The email addresses in my LDAP database are stored in the same field and are of the same format (usern...@domain.com). Tim -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org