problem with folder_sizes plugin in squirrelmail

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
nocloud
Normal user
Normal user
Posts: 59
Joined: 2005-06-29 20:50

problem with folder_sizes plugin in squirrelmail

Post by nocloud » 2005-07-26 08:52

from my apache server logs

[client 128.195.64.98] PHP Notice: Constant HEAD_BATCH already defined in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 84, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Constant HEAD_BATCH already defined in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 84, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Undefined offset: 0 in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 307, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Undefined offset: 0 in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 308, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Undefined offset: 0 in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 309, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Undefined offset: 0 in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 310, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Undefined offset: -1 in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 138, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Undefined offset: -1 in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 139, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Undefined offset: -1 in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 140, referer: http://nocloud.hopto.org/mail/src/right_main.php
[client 128.195.64.98] PHP Notice: Undefined offset: -1 in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mail\\plugins\\folder_sizes\\setup.php on line 141, referer: http://nocloud.hopto.org/mail/src/right_main.php

totally confused and have no clue at all what is causing the problem

would really appreciate some help here

nocloud
Normal user
Normal user
Posts: 59
Joined: 2005-06-29 20:50

Post by nocloud » 2005-07-26 19:34

can anybody help here?

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-07-26 20:10

You have notices turned on in php. This should only be turned on if you're running in debug. Open php.ini and search for error_reporting and change the setting. Then restart Apache/IIS.

nocloud
Normal user
Normal user
Posts: 59
Joined: 2005-06-29 20:50

Post by nocloud » 2005-07-26 20:13

so notices are different from errors?

even though this stuff ended up in the error logs, they are not really errors and i have no reason to be concerned? or are they errors?

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-07-26 20:19

; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
It could be an error but it does not have to be.

nocloud
Normal user
Normal user
Posts: 59
Joined: 2005-06-29 20:50

Post by nocloud » 2005-07-26 21:40

okay, i looked through my php.ini and i can't really find where to change the setting.

can you paste the line(s) i need to edit?

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-07-26 21:45

Open the file. Search for error_reporting a few times. You should have a line that look like this (note that it does _not_ start with a ;)

error_reporting = E_ALL

Try replacing that with

error_reporting = E_ALL & ~E_NOTICE

nocloud
Normal user
Normal user
Posts: 59
Joined: 2005-06-29 20:50

Post by nocloud » 2005-07-26 21:57

found it :) thanks a ton

Post Reply