Re: Odd error: "Undefined index: EXISTS"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Paul Lesniewski <paul@xxxxxxxxxxxxxxxx>:
> On Sat, Jun 12, 2010 at 3:11 AM, Ralf Hildebrandt
> <Ralf.Hildebrandt@xxxxxxxxxx> wrote:
> > With 1.4.20 I'm getting odd errors like:
> 
> These are not for the same actions, right?

No, they're sporadic AND happenening for different users at different
times
 
> > [Sat Jun 12 12:07:31 2010] [error] [client 10.39.172.126] PHP Notice: Undefined index: UIDVALIDITY in
> > /var/www-lighty/squirrelmail-1.4.20/src/download.php on line 56, referer:
> > https://webmail.charite.de/squirrelmail/src/read_body.php?mailbox=INBOX&passed_id=17795&startMessage=1
> 
> What IMAP server is this against?  You can spit out some debug stuff
> by putting this on line 55 of that file (test by downloading an email
> attachment):

It's dovecot-1.2
 
> sm_print_r($mbx_response, '===========', $messages);

Did that now.

> And/or sniff the IMAP connection when you download an attachment.
> 
> > [Sat Jun 12 12:07:33 2010] [error] [client 10.39.172.126] PHP Notice: Undefined index: EXISTS in
> > /var/www-lighty/squirrelmail-1.4.20/functions/mailbox_display.php on line 416, referer:
> > https://webmail.charite.de/squirrelmail/src/download.php?startMessage=1&passed_id=17795&mailbox=INBOX&ent_id=3&passed_ent_id=0
> 
> Actually, you sure about the version being 1.4.20?  Is that file
> patched?

I think the patches you supplied to me to fix the header display issue
changed the line numbers.

Here it goes:
413    /* If autoexpunge is turned on, then do it now. */
414    if ($auto_expunge == true) {
415       $exp_cnt = sqimap_mailbox_expunge($imapConnection, $mailbox, false, '');
416       $mbxresponse['EXISTS'] = $mbxresponse['EXISTS'] - $exp_cnt;
417       $num_msgs = $mbxresponse['EXISTS'];
418    }
		    
> I am looking at 1.4.21SVN, and I think the line number should be 424
> (off the top of my head, I don't recall that file being changed between
> the release of 1.4.20 and now).  Maybe you should re-check that your
> code is up to date for starters.
> 
> Anyway, if you want to debug this, you can spit out stuff in PHP by
> putting this anywhere just above the problematic line:
> 
> sm_print_r($mbxresponse);
> 
> Or again, sniff the IMAP connection to see how the IMAP server is
> responding... but the IMAP server looks fishy to me.
> 
> > [Sat Jun 12 12:07:35 2010] [error] [client 10.39.172.126] PHP Notice: Undefined index: EXISTS in
> > /var/www-lighty/squirrelmail-1.4.20/functions/mailbox_display.php on line 416, referer:
> > https://webmail.charite.de/squirrelmail/src/left_main.php
> >
> > [Sat Jun 12 00:38:49 2010] [error] [client 10.47.76.131] PHP Notice: Undefined index: EXISTS in
> > /var/www-lighty/squirrelmail-1.4.20/functions/mailbox_display.php on line 416, referer: https://webmail.charite.de/squirrelmail/src/left_main.php
> >
> > [Sat Jun 12 00:38:50 2010] [error] [client 10.47.76.131] PHP Notice: Undefined index: EXISTS in
> > /var/www-lighty/squirrelmail-1.4.20/functions/mailbox_display.php on line 416, referer:
> > https://webmail.charite.de/squirrelmail/src/left_main.php
> >
> > [Sat Jun 12 01:13:18 2010] [error] [client 91.37.225.147] PHP Notice: Undefined index: HTTP_HOST in
> > /var/www-lighty/squirrelmail-1.4.20/plugins/vlogin/functions.php on line 419
> 
> Finally, this looks like an oddly-missing "HTTP_HOST" entry in the
> server/PHP environment.  Are you using lighttpd?  Is it configured
> non-standard, etc.?  Can you dump the server environment:
> 
> sm_print_r($_SERVER);
> 
> The result should have "HTTP_HOST" in it... if not, well, hmmm....
> 
> -- 
> Paul Lesniewski
> SquirrelMail Team
> Please support Open Source Software by donating to SquirrelMail!
> http://squirrelmail.org/donate_paul_lesniewski.php
> 
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> -----
> squirrelmail-users mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
> List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebrandt@xxxxxxxxxx | http://www.charite.de
	    

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux