Summary | IMP cant retrieve folder content from Gmail server |
Queue | IMP |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | lp.allard.1 (at) gmail (dot) com |
Created | 09/10/2011 (5055 days ago) |
Due | |
Updated | 10/08/2011 (5027 days ago) |
Assigned | 10/06/2011 (5029 days ago) |
Resolved | 10/07/2011 (5028 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
changes you implemented in the git?
...actually, looking at the package, it is probably appropriate to
release a new version. So v 1.1.0 has been released.
changes you implemented in the git?
I normally update via pear and I neverused git with horde... Would
pear allow me to upgrade ?
Assigned to Michael Slusarz
State ⇒ Resolved
type, since the line numbers are different in git than in the release
version you are using. Turns out it was a PHP syntax issue dealing
with dereferencing of object properties. This has been fixed
(additionally, we need to sort by the e-mail address for this sort
type, not the personal part. This has also been fixed).
Bug #10503: Fix client-side Cc/From/To sorting2 files changed, 4 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/529f75311b9a586a4487313cb556dc71508b168a
New Attachment: horde_debug[1].txt
error in apache's error log:
"[Thu Oct 06 20:49:41 2011] [error] [client 192.xxx.xxx.xxx] PHP Fatal
error: Cannot use string offset as an array in
/usr/lib/php/Horde/Imap/Client/Socket.php on line 2090, referer:
http://192.xxx.xxx.xxx/horde4/imp/"
Attached is the Horde::debug($fetch_res) log
More stuff in it than last time, but I dont know if it will help more...
State ⇒ Feedback
after this? $fetch_res is exactly what it is supposed to be - an
array of data objects. The fatal error you previously reported
instead indicates that $fetch_res is a string, which is not the case
here.
New Attachment: horde_debug.txt
That would have been helpful if I knew that in PHP, semicolons were
used to end commands... The instructions should have been "insert the
line before the block on line 2087" not before line 2089... Thats why
the script was broken.
Anyways, see attached. Anything more please ask.
Unless and until you can get Horde::debug() to provide information,
nothing can be done. Inserting a Horde::debug() line should not break
anything. If it does, there's really nothing more we can do to help
unless you can tell us exactly what is wrong (that's kind of the whole
point of Horde::debug() in the first place).
Nobody else has either reported this or can reproduce, so unless it
can be proven otherwise, there's a good chance that there is something
broken on your setup independent from the Horde code.
while blank page...
Anyways, with the Horde::debug($fetch_res) line before 2089 I
retrieved the logs (apache and horde) and al I can see is the PHP
parse error in the apache log:
apache error log:
[Sun Sep 25 12:15:06 2011] [notice] Apache/2.2.15 (Unix) DAV/2
mod_scgi/1.14 PHP/5.2.13 configured -- resuming normal operations
[Sun Sep 25 12:16:20 2011] [error] [client 192.xxx.xxx.xxx] PHP Parse
error: syntax error, unexpected T_STRING in
/usr/lib/php/Horde/Imap/Client/Socket.php on line 2089, referer:
http://192.xxx.xxx.xxx/horde4/login.php
[Sun Sep 25 12:16:20 2011] [error] [client 192.xxx.xxx.xxx] File does
not exist: /srv/httpd/htdocs/favicon.ico
[Sun Sep 25 12:16:20 2011] [error] [client 192.xxx.xxx.xxx] File does
not exist: /srv/httpd/htdocs/favicon.ico
horde log:
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting sam inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting trean inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting chora inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting whups inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting luxor inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting klutz inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting jonah inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting hermes inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting gollem inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting passwd inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting agora inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting ulaform inactive
because the fileroot does not exist or the application is not
configured yet. [pid 1825 on line 615 of
"/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting ansel inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting wicked inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Setting vilma inactive because
the fileroot does not exist or the application is not configured yet.
[pid 1825 on line 615 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:09-04:00 DEBUG: HORDE Load config file (nls.php; app:
horde) [pid 1825 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE Load config file (hooks.php;
app: imp) [pid 1825 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE [imp] Load config file
(conf.php; app: imp) [pid 1825 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE [imp] Load config file
(prefs.php; app: horde) [pid 1825 on line 861 of
"/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE [imp] Load config file
(prefs.php; app: imp) [pid 1825 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE [imp] Hook prefs_init in
application imp called. [pid 1825 on line 1809 of
"/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE [imp] Hook prefs_init in
application imp called. [pid 1825 on line 1809 of
"/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE [imp] Hook prefs_init in
application imp called. [pid 1825 on line 1809 of
"/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE [imp] Load config file
(backends.php; app: imp) [pid 1825 on line 861 of
"/usr/lib/php/Horde.php"]
2011-09-25T12:16:10-04:00 DEBUG: HORDE [horde] Max memory usage:
5767168 bytes [pid 1825 on line 474 of
"/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:11-04:00 DEBUG: HORDE Horde_Registry: retrieved app
with cache ID
horde_registry|app|1315349475|ede232fb8c32bfda4411afa41aafd6af [pid
1825 on line 1701 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:11-04:00 DEBUG: HORDE Load config file (hooks.php;
app: imp) [pid 1825 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:11-04:00 DEBUG: HORDE [imp] Load config file
(conf.php; app: imp) [pid 1825 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:11-04:00 DEBUG: HORDE [imp] Load config file
(backends.php; app: imp) [pid 1825 on line 861 of
"/usr/lib/php/Horde.php"]
2011-09-25T12:16:11-04:00 DEBUG: HORDE [horde] Load config file
(nls.php; app: horde) [pid 1825 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:11-04:00 DEBUG: HORDE [horde] SQL (0.0205s)
SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods,
alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal
FROM horde_alarms WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL
AND alarm_start <= '2011-09-25T16:16:11') OR alarm_snooze <=
'2011-09-25T16:16:11') AND (alarm_end IS NULL OR alarm_end >=
'2011-09-25T16:16:11') AND (alarm_uid IS NULL OR alarm_uid = '' OR
alarm_uid = '') ORDER BY alarm_start, alarm_end [pid 1825 on line
801 of "/usr/lib/php/Horde/Db/Adapter/Base.php"]
2011-09-25T12:16:11-04:00 DEBUG: HORDE [horde] Load config file
(motd.php; app: horde) [pid 1825 on line 861 of
"/usr/lib/php/Horde.php"]
2011-09-25T12:16:11-04:00 DEBUG: HORDE [horde] Max memory usage:
6553600 bytes [pid 1825 on line 474 of
"/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:20-04:00 DEBUG: HORDE Horde_Registry: retrieved app
with cache ID
horde_registry|app|1315349475|ede232fb8c32bfda4411afa41aafd6af [pid
2578 on line 1701 of "/usr/lib/php/Horde/Registry.php"]
2011-09-25T12:16:20-04:00 DEBUG: HORDE Load config file (hooks.php;
app: imp) [pid 2578 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:20-04:00 DEBUG: HORDE [imp] Load config file
(conf.php; app: imp) [pid 2578 on line 861 of "/usr/lib/php/Horde.php"]
2011-09-25T12:16:20-04:00 DEBUG: HORDE [imp] Load config file
(backends.php; app: imp) [pid 2578 on line 861 of
"/usr/lib/php/Horde.php"]
2011-09-25T12:16:20-04:00 DEBUG: HORDE [imp] Max memory usage: 6291456
bytes [pid 2578 on line 474 of "/usr/lib/php/Horde/Registry.php"]
break Horde... I get a blank page after login.
break Horde... I get a blank page after login.
As per the instructions of http://wiki.horde.org/Doc/Dev/DebugH4 I tried :
Horde::debug($fetch_res);
Horde::debug($fetch_res, '/tmp/output.log');
No success. No log files are created.
Fatal error: Cannot use string offset as an array in
/usr/lib/php/Horde/Imap/Client/Socket.php on line 2089, referer:
http://192.XXX.XXX.XXX/horde4/imp/
Horde::debug($fetch_res);
right before line 2089 and provide the debug output here.
FYI: I can not reproduce with your instructions.
Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4
1-Went to Gmail & emptied my trash mailbox. Logout of Gmail.
2-Went back to Horde, and entered the trash mailbox. All was fine,
tail -f on httpd_error.log did not show anything.
3-Then I deleted an email from my inbox (from Horde).
4-Went back to the trash, I got the red popup again and
[Fri Sep 23 21:10:26 2011] [error] [client 192.XXX.XXX.XXX] PHP Fatal
error: Cannot use string offset as an array in
/usr/lib/php/Horde/Imap/Client/Socket.php on line 2089, referer:
http://192.XXX.XXX.XXX/horde4/imp/
So it seems that I dont get the error when the trash is empty. So to
answer your question: no I dont get this error if my trash folder is
REALLY empty.
I tried deleting an email from Horde as well as from Gmail. Same behavior
Cannot use string offset as an array in
/usr/lib/php/Horde/Imap/Client/Socket.php on line 2089
in your Gmail Trash mailbox? If that mailbox is truly empty, and you
are receiving this message, then your installation is seriously broken
(since that code can only be reached if there is at least 1 message in
the mailbox).
with deleting *everything* in /tmp and restarted the session
(logout/login again) and same thing:
"The server was unable to generate the message list"... red popup...
I also upgraded following Jan's email announcing the new webmail
release, but no improvement...
What next?
means deleting the
cache_<hash-number> and sess_<hash-number>
files in /tmp? If so, then I should probably setup a cron job to
cleanup once in a while...
I am not using a memcache server as if I remember correctly, it was
making horde crashing. My cache system settings are:
$conf[cache][default_lifetime] 86400
$conf[cache][driver] Store data in FS
$conf[cache][params][dir] /tmp
$conf[cache][params][sub] 0
$conf[cache][params][prefix]
$conf[cache][compress] -CHECKED-
$conf[cache][use_memorycache] None
$conf[cachecss] No
$conf[cachejs] No
$conf[cachethemes] No
1- can I simply patch the files or I should update through git ? I
normally use pear to upgrade...
first install a few months ago I did not touch anything . Might be
time for cleanup ?
you have emptied the trash in Gmail, and the client-side code is still
being called - if there truly are no messages in the remote mailbox,
there should be nothing to sort.
1- can I simply patch the files or I should update through git ? I
normally use pear to upgrade...
2- no I never played around with the cache settings... Since the
first install a few months ago I did not touch anything . Might be
time for cleanup ?
Bug #10503: Add ability to do client sort testing for imap socket drivernot cache the webpage (it has nothing to do with the PHP/IMAP
connection).
Bug #10503: Add ability to do client sort testing for imap socket driver5 files changed, 154 insertions(+), 35 deletions(-)
http://git.horde.org/horde-git/-/commit/232da541a06e4e44158dbd4ec01ab1ec6bd7104c
folder, logging out and then returning to Horde to delete an email
from Inbox, does not help. I go to the trash and same result:
Red popup saying: "The server was unable to generate the message list"
The Web console still returns: [21:12:25.690] POST
http://192.168.0.101/horde4/services/ajax.php/imp/viewPort [HTTP/1.0
500 Internal Server Error 3038ms]
Although in the Web console I saw something that caught my attention
(the expiration date): In the "Inspect Network Request" window, under
the section "Response Headers"
Response Headers ?3051ms
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Connection: close
Content-Encoding: gzip
Content-Length: 26
Content-Type: text/html
Date: Wed, 14 Sep 2011 01:16:45 GMT
***==> Expires: Thu, 19 Nov 1981 08:52:00 GMT <=======************
Pragma: no-cache
Server: Apache/2.2.15 (Unix) DAV/2 mod_scgi/1.14 PHP/5.2.13
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.13
New Attachment: horde[1].log
Attached is the horde log from login to until I see the red popups...
Anything else please let me know what I can provide you guys to help.
error: Cannot use string offset as an array in
/usr/lib/php/Horde/Imap/Client/Socket.php on line 2089, referer:
http://192.168.0.101/horde4/imp/
log ($conf['log']['priority'] = 'DEBUG' in horde/config/conf.php) -
this would allow us to get backtraces that could help us out.
Looks like this issue is with client side sorting. Looks like you are
trying to sort by subject. It's not a problem with all client side
subject sorting though, since this works fine for me. There's got to
be something specific about one of the subjects in your mailbox that
is breaking things.
I'm in the process of writing a fake-imap stream handler to allow us
to test/debug these kind of issues better. But it's not yet completed.
[Mon Sep 12 19:43:06 2011] [error] [client 192.168.0.106] PHP Fatal
error: Cannot use string offset as an array in
/usr/lib/php/Horde/Imap/Client/Socket.php on line 2089, referer:
http://192.168.0.101/horde4/imp/
So you guys were right about the PHP Fatal error... What do I need to do next?
Trash folder generating this red popup the console says:
[07:17:14.914] POST
http://192.168.0.101/horde4/services/ajax.php/imp/viewPort [HTTP/1.0
500 Internal Server Error 1849ms]
Jan said: you need to look at the PHP logs.
Trash folder generating this red popup the console says:
[07:17:14.914] POST
http://192.168.0.101/horde4/services/ajax.php/imp/viewPort [HTTP/1.0
500 Internal Server Error 1849ms]
I also have installed an add-on called JavaScript Debugger (Venkman)
but unfortunately I dont know how to use it. It may be helpful...
the server response to the listMailboxes request:
For further debugging information, please read
http://www.horde.org/apps/horde/docs/INSTALL#dynamic-view-troubleshooting
New Attachment: horde.log
your horde log.
IMP works with Gmail just fine so this is not a critical issue.
inbox to the moment I saw the red popup saying "The server was unable
to generate the message list"
Priority ⇒ 1. Low
your horde log.
IMP works with Gmail just fine so this is not a critical issue.
Priority ⇒ 3. High
State ⇒ Unconfirmed
New Attachment: horde_imap.log
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Type ⇒ Bug
Summary ⇒ IMP cant retrieve folder content from Gmail server
folders, namely the trash & spam folders of my Gmail account. All
other folders seems to work fine.
The folder tree on the left side saying that I have "7" messages in
"Trash" while I click on the folder and there is nothing. The window
say "There is no messages in this mailbox".
Clicking on "Get Mail" does not help. Horde throws a red popup saying:
"The server was unable to generate the message list"
and another popup saying:
"There has been no contact with the server for several minutes. The
server may be temporarily unavailable or network problems may be
interrupting your session. You will not see any updates until the
connection is restored"
See attached IMAP debug log