Re: [SM-USERS] Latest snapshot and php-7

2017-01-13 Thread Alex
Hi,

On Fri, Jan 13, 2017 at 1:28 AM, Paul Lesniewski  wrote:
> On Thu, January 12, 2017 6:05 pm, Alex wrote:
>> Hi,
>>
>>> [Thu Jan 05 15:59:50.203093 2017] [:error] [pid 12591] [client
>>> 75.149.200.52:50067] PHP Fatal error:  Uncaught Error: Call to
>>> undefined function eregi() in
>>> /usr/share/squirrelmail/plugins/add_address/functions.php:718
>
> What version of this plugin is installed?

 1.0.3. The first occurrence of this error was with the most recent
>
> Not sure why you are replying in regard to this one.  I stated previously
> on this thread that an update for the plugin is finished but I hadn't
> gotten around to releasing it.  The other notices were the ones that I am
> suspicious of and would need to see concrete ways to reproduce.

My apologies; it wasn't clear your comment was in reference to this
plugin. It looks to be quite popular for our users. Is this something
you're able to release in the near future?

I'll continue working on the other warnings/errors.

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] Latest snapshot and php-7

2017-01-12 Thread Paul Lesniewski
On Thu, January 12, 2017 6:05 pm, Alex wrote:
> Hi,
>
>> [Thu Jan 05 15:59:50.203093 2017] [:error] [pid 12591] [client
>> 75.149.200.52:50067] PHP Fatal error:  Uncaught Error: Call to
>> undefined function eregi() in
>> /usr/share/squirrelmail/plugins/add_address/functions.php:718

 What version of this plugin is installed?
>>>
>>> 1.0.3. The first occurrence of this error was with the most recent

Not sure why you are replying in regard to this one.  I stated previously
on this thread that an update for the plugin is finished but I hadn't
gotten around to releasing it.  The other notices were the ones that I am
suspicious of and would need to see concrete ways to reproduce.


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] Latest snapshot and php-7

2017-01-08 Thread Paul Lesniewski
On Sun, January 8, 2017 5:25 pm, Alex wrote:
> Hi,
>
> On Fri, Jan 6, 2017 at 4:13 AM, Paul Lesniewski 
> wrote:
>>
>>> [Thu Jan 05 17:44:41.90 2017] [:error] [pid 26909] [client
>>> 174.76.81.196:61320] PHP Notice:  Undefined index: ID in
>>> /usr/share/squirrelmail/functions/mailbox_display.php on line 220,
>>> referer:
>>> https://mail.example.com/webmail/src/right_main.php?use_mailbox_cache=1=16=INBOX
>>
>> This looks a little suspicious.  Some corruption or maybe a problem with
>> your system's (lack of?) UID support, etc.  Probably can't diagnose
>> without a painful back-and-forth with echo statements.  It would be at
>> least more helpful if you post all the details you can concerning SM
>> config, IMAP server info and config, etc.  Not sure if/when I'll have
>> time
>> to hand-hold through debugging that kind of thing.
>
> It appears this message repeats "undefined index" for ID, TYPE0,
> RECEIVED_DATE_STRING, RECEIVED_DATE_STRING_FULL, SUBJECT, and PRIORITY
> for each client for which it occurs. The first entry appears to be
> null, as in "[Fri Jan 06 14:09:04.128470 2017] [:error] [pid 22048]
> [client 184.71.226.10:55890] PHP Notice:  Undefined index:  in
> /usr/share/squirrelmail/functions/mailbox_display.php"
>
> Looking back, it appears this was happening before the most recent
> update. Could it be a configuration problem?
>
>>> [Thu Jan 05 16:14:28.562424 2017] [:error] [pid 19516] [client
>>> 24.66.160.94:50861] PHP Notice:  Undefined offset: 63 in
>>> /usr/share/squirrelmail/functions/imap_mailbox.php on line 747,
>>> referer: https://mail.example.com/webmail/src/webmail.php
>>
>> Again, suspicious.  The arrays/indexes are set up just above this to
>> match.  Not looking too hard at the code right now, but your mailbox
>> list
>> seems borked.  Again, maybe your IMAP server is having issues?
>
> This is dovecot-2.2.27 on fedora25. Any ideas of what kind of issues
> it may be having? The configuration hasn't changed in years and
> there's been no specific complaints about problems with imap, through
> localhost for webmail or otherwise.
>
>>> [Thu Jan 05 15:59:50.203093 2017] [:error] [pid 12591] [client
>>> 75.149.200.52:50067] PHP Fatal error:  Uncaught Error: Call to
>>> undefined function eregi() in
>>> /usr/share/squirrelmail/plugins/add_address/functions.php:718
>>
>> What version of this plugin is installed?
>
> 1.0.3. The first occurrence of this error was with the most recent
> svn. This did not occur with the previous version from svn, pulled
> probably a year ago.

That's a third party plugin.  Nothing to do with SVN.  I just checked and
I hadn't yet got around to releasing the version that has a fix for this.

>>> [Thu Jan 05 15:56:52.644892 2017] [:error] [pid 12380] [client
>>> 173.10.11.217:9425] PHP Notice:  Uninitialized string offset: 50 in
>>> /usr/share/squirrelmail/class/mime/Rfc822Header.class.php on line 184,
>>> referer: https://mail.example.com/webmail/src/right_main.php
>>
>> Dunno, I don't have the time to stare at the code right now, but I've
>> never seen others report this, so I suspect it is particular to your
>> environment or the message you are viewing.  It's better to have such
>> details in-hand before anyone attempts to look at this.
>
> This one appears to go back to 2015, occurring multiple times per day.
>
>>> The first error
>>
>> It's not an error; it's a notice
>
> Yes, my apologies. There are multiple warnings/notices as well as
> numerous "fatal errors".
>
>>> is the one that seems to be most repetitive and
>>> problematic.
>>
>> Problematic how?  Please show details of side effects.
>
> I haven't been able to reproduce the errors/warnings myself, so I
> don't really know what the end-user impact is. It's problematic in
> that there are hundreds of messages in the error_log recorded per day
> and I'm concerned with stability.
>
> Please let me know what more can be done to troubleshoot this further.

POC.  All configuration details.

When I say suspicious, I mean that initial review makes it seem fishy that
the non-plugin notices would be caused in a vanilla SM installation.  So
I'd need to see the message that causes the problem as well as your SM
(and maybe Dovecot) configuration settings.

Alternatively, try running a vanilla no-plugin SM instance (latest 1.4.23)
and see if you can reproduce.  If not, then change the vanilla install to
be like your production install one thing at a time until you find the
problem.



--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 

Re: [SM-USERS] Latest snapshot and php-7

2017-01-08 Thread Alex
Hi,

On Fri, Jan 6, 2017 at 4:13 AM, Paul Lesniewski  wrote:
>
>> [Thu Jan 05 17:44:41.90 2017] [:error] [pid 26909] [client
>> 174.76.81.196:61320] PHP Notice:  Undefined index: ID in
>> /usr/share/squirrelmail/functions/mailbox_display.php on line 220,
>> referer:
>> https://mail.example.com/webmail/src/right_main.php?use_mailbox_cache=1=16=INBOX
>
> This looks a little suspicious.  Some corruption or maybe a problem with
> your system's (lack of?) UID support, etc.  Probably can't diagnose
> without a painful back-and-forth with echo statements.  It would be at
> least more helpful if you post all the details you can concerning SM
> config, IMAP server info and config, etc.  Not sure if/when I'll have time
> to hand-hold through debugging that kind of thing.

It appears this message repeats "undefined index" for ID, TYPE0,
RECEIVED_DATE_STRING, RECEIVED_DATE_STRING_FULL, SUBJECT, and PRIORITY
for each client for which it occurs. The first entry appears to be
null, as in "[Fri Jan 06 14:09:04.128470 2017] [:error] [pid 22048]
[client 184.71.226.10:55890] PHP Notice:  Undefined index:  in
/usr/share/squirrelmail/functions/mailbox_display.php"

Looking back, it appears this was happening before the most recent
update. Could it be a configuration problem?

>> [Thu Jan 05 16:14:28.562424 2017] [:error] [pid 19516] [client
>> 24.66.160.94:50861] PHP Notice:  Undefined offset: 63 in
>> /usr/share/squirrelmail/functions/imap_mailbox.php on line 747,
>> referer: https://mail.example.com/webmail/src/webmail.php
>
> Again, suspicious.  The arrays/indexes are set up just above this to
> match.  Not looking too hard at the code right now, but your mailbox list
> seems borked.  Again, maybe your IMAP server is having issues?

This is dovecot-2.2.27 on fedora25. Any ideas of what kind of issues
it may be having? The configuration hasn't changed in years and
there's been no specific complaints about problems with imap, through
localhost for webmail or otherwise.

>> [Thu Jan 05 15:59:50.203093 2017] [:error] [pid 12591] [client
>> 75.149.200.52:50067] PHP Fatal error:  Uncaught Error: Call to
>> undefined function eregi() in
>> /usr/share/squirrelmail/plugins/add_address/functions.php:718
>
> What version of this plugin is installed?

1.0.3. The first occurrence of this error was with the most recent
svn. This did not occur with the previous version from svn, pulled
probably a year ago.

>> [Thu Jan 05 15:56:52.644892 2017] [:error] [pid 12380] [client
>> 173.10.11.217:9425] PHP Notice:  Uninitialized string offset: 50 in
>> /usr/share/squirrelmail/class/mime/Rfc822Header.class.php on line 184,
>> referer: https://mail.example.com/webmail/src/right_main.php
>
> Dunno, I don't have the time to stare at the code right now, but I've
> never seen others report this, so I suspect it is particular to your
> environment or the message you are viewing.  It's better to have such
> details in-hand before anyone attempts to look at this.

This one appears to go back to 2015, occurring multiple times per day.

>> The first error
>
> It's not an error; it's a notice

Yes, my apologies. There are multiple warnings/notices as well as
numerous "fatal errors".

>> is the one that seems to be most repetitive and
>> problematic.
>
> Problematic how?  Please show details of side effects.

I haven't been able to reproduce the errors/warnings myself, so I
don't really know what the end-user impact is. It's problematic in
that there are hundreds of messages in the error_log recorded per day
and I'm concerned with stability.

Please let me know what more can be done to troubleshoot this further.

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] Latest snapshot and php-7

2017-01-06 Thread Paul Lesniewski

> [Thu Jan 05 17:44:41.90 2017] [:error] [pid 26909] [client
> 174.76.81.196:61320] PHP Notice:  Undefined index: ID in
> /usr/share/squirrelmail/functions/mailbox_display.php on line 220,
> referer:
> https://mail.example.com/webmail/src/right_main.php?use_mailbox_cache=1=16=INBOX

This looks a little suspicious.  Some corruption or maybe a problem with
your system's (lack of?) UID support, etc.  Probably can't diagnose
without a painful back-and-forth with echo statements.  It would be at
least more helpful if you post all the details you can concerning SM
config, IMAP server info and config, etc.  Not sure if/when I'll have time
to hand-hold through debugging that kind of thing.

> [Thu Jan 05 16:14:28.562424 2017] [:error] [pid 19516] [client
> 24.66.160.94:50861] PHP Notice:  Undefined offset: 63 in
> /usr/share/squirrelmail/functions/imap_mailbox.php on line 747,
> referer: https://mail.example.com/webmail/src/webmail.php

Again, suspicious.  The arrays/indexes are set up just above this to
match.  Not looking too hard at the code right now, but your mailbox list
seems borked.  Again, maybe your IMAP server is having issues?

> [Thu Jan 05 15:59:50.203093 2017] [:error] [pid 12591] [client
> 75.149.200.52:50067] PHP Fatal error:  Uncaught Error: Call to
> undefined function eregi() in
> /usr/share/squirrelmail/plugins/add_address/functions.php:718

What version of this plugin is installed?

> [Thu Jan 05 15:56:52.644892 2017] [:error] [pid 12380] [client
> 173.10.11.217:9425] PHP Notice:  Uninitialized string offset: 50 in
> /usr/share/squirrelmail/class/mime/Rfc822Header.class.php on line 184,
> referer: https://mail.example.com/webmail/src/right_main.php

Dunno, I don't have the time to stare at the code right now, but I've
never seen others report this, so I suspect it is particular to your
environment or the message you are viewing.  It's better to have such
details in-hand before anyone attempts to look at this.

> The first error

It's not an error; it's a notice

> is the one that seems to be most repetitive and
> problematic.

Problematic how?  Please show details of side effects.



--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] Latest snapshot and php-7

2017-01-05 Thread Alex
Hi,

On Mon, Jan 2, 2017 at 9:02 PM, Paul Lesniewski  wrote:
> On 1/1/17, Alex  wrote:
>> Hi,
>>
>> Has the latest 1.4.22-svn been tested with php-7?
>
> There's no such thing. What you want to download is a nightly snapshot
> of 1.4.23 (svn) or pull directly from the svn repository.

Yes, that should have been 1.4.23-svn of course. I've upgraded to the
latest svn, and while many of those previously reported
warnings/errors are gone, I'm now seeing this one:

[Thu Jan 05 17:44:41.90 2017] [:error] [pid 26909] [client
174.76.81.196:61320] PHP Notice:  Undefined index: ID in
/usr/share/squirrelmail/functions/mailbox_display.php on line 220,
referer: 
https://mail.example.com/webmail/src/right_main.php?use_mailbox_cache=1=16=INBOX

[Thu Jan 05 16:14:28.562424 2017] [:error] [pid 19516] [client
24.66.160.94:50861] PHP Notice:  Undefined offset: 63 in
/usr/share/squirrelmail/functions/imap_mailbox.php on line 747,
referer: https://mail.example.com/webmail/src/webmail.php

[Thu Jan 05 15:59:50.203093 2017] [:error] [pid 12591] [client
75.149.200.52:50067] PHP Fatal error:  Uncaught Error: Call to
undefined function eregi() in
/usr/share/squirrelmail/plugins/add_address/functions.php:718\nStack
trace:\n#0 /usr/share/squirrelmail/plugins/add_address/functions.php(835):
aa_validate_email('JDawkins@Brigad...', false)\n#1
/usr/share/squirrelmail/plugins/add_address/functions.php(218):
build_address_import_list(Array, false)\n#2
/usr/share/squirrelmail/plugins/add_address/setup.php(153):
add_address_auto_add_do(Array)\n#3
/usr/share/squirrelmail/functions/plugin.php(52):
add_address_auto_add(Array)\n#4
/usr/share/squirrelmail/src/compose.php(492):
do_hook('compose_send_af...', true, Object(Message))\n#5 {main}\n
thrown in /usr/share/squirrelmail/plugins/add_address/functions.php on
line 718, referer:
https://mail.example.com/webmail/src/compose.php?passed_id=37447=INBOX=1_ent_id=0=reply

[Thu Jan 05 15:56:52.644892 2017] [:error] [pid 12380] [client
173.10.11.217:9425] PHP Notice:  Uninitialized string offset: 50 in
/usr/share/squirrelmail/class/mime/Rfc822Header.class.php on line 184,
referer: https://mail.example.com/webmail/src/right_main.php

The first error is the one that seems to be most repetitive and
problematic. Can anything be ascertained about these errors from the
information above in order to fix them?

Thanks,
Alex

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] Latest snapshot and php-7

2017-01-02 Thread Paul Lesniewski
On 1/1/17, Alex  wrote:
> Hi,
>
> Has the latest 1.4.22-svn been tested with php-7?

There's no such thing. What you want to download is a nightly snapshot
of 1.4.23 (svn) or pull directly from the svn repository.


-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] Latest snapshot and php-7

2017-01-01 Thread Tóth Attila
I've just switched to php-7 and the latest 1.4.23_SVN snapshot seems to
work well. BR: Dw.
-- 
dr Tóth Attila, Radiológus, 06-20-825-8057
Attila Toth MD, Radiologist, +36-20-825-8057

2017.Január 2.(H) 04:33 időpontban Alex ezt írta:
> Hi,
>
> Has the latest 1.4.22-svn been tested with php-7?
>
> I've just upgraded to fedora25 and noticing a few warnings/errors, and
> wondered what the best approach to solving them would be:
>
> [Sun Jan 01 22:28:04.387309 2017] [:error] [pid 14190] [client
> 64.183.213.242:6] PHP Warning:  preg_replace(): The /e modifier is
> no longer supported, use preg_replace_callback instead in
> /usr/share/squirrelmail/functions/mime.php on line 711, referer:
> https://mail.hotel.mysite.com/webmail/src/webmail.php
>
> Fri Dec 30 22:21:56.449259 2016] [:error] [pid 21984] [client
> 108.188.187.145:61047] PHP Notice:  Uninitialized
>  string offset: 48 in
> /usr/share/squirrelmail/class/mime/Rfc822Header.class.php on line 184,
> referer: https://ma
> il.hotel.mysite.com/webmail/src/right_main.php?PG_SHOWALL=0=0=1=INBOX
>
> [Sat Dec 31 09:10:46.751591 2016] [:error] [pid 32500] [client
> 98.142.52.16:65429] PHP Notice:  Undefined variab
> le: passed_id in /usr/share/squirrelmail/src/read_body.php on line
> 788, referer: https://mail.hotel.mysite.
> com/webmail/src/webmail.php?right_frame=read_body.php
>
> I'm not necessarily sure these are php-7 problems, but I'd appreciate
> any guidance on whether an upgrade would solve them, or other ideas on
> how to address them.
>
> Thanks,
> Alex
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> -
> squirrelmail-users mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squirrelmail-users@lists.sourceforge.net
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
> List info (subscribe/unsubscribe/change options):
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>



--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users