php errors in apache log

84 views
Skip to first unread message

Joep van Delft

unread,
May 3, 2011, 1:09:14 PM5/3/11
to neo...@googlegroups.com
Hi there!

Appreciate your work. I love the the looks of the current git version!

Both version 0.5.2 and the current git version seem to work, but my
apache error log (level crit) grows rapidly (a few Mb's per click).
Attached last 500 lines of apache logs for both versions. Is there
something wrong with my setup, or should I just lower the loglevel and
wait for updates?

Some context:
I'm on Debian Squeeze, behind apache2 with php5.conf and php5.load
enabled, and ExecCGI set for php files.

$ dpkg --get-selections *php*
libapache2-mod-php5 install
php5 install
php5-cli install
php5-common install
php5-suhosin install

$ php5 --version
PHP 5.3.3-7+squeeze1 with Suhosin-Patch (cli) (built: Mar 18 2011
20:10:12) Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

$ apache2 -v
Server version: Apache/2.2.16 (Debian)
Server built: Mar 22 2011 21:14:10

Thanks for your time.


Joep


errors.tar.gz

Dan Barber

unread,
May 3, 2011, 1:57:27 PM5/3/11
to NeoMPC
There's nothing wrong with your setup. The messages you are seeing are
just notices from PHP relating to code in mpd.class. You can suppress
these messages by setting your error_reporting level in php.in to
exclude notices.

error_reporting = E_ALL & ~E_NOTICE

Cheers,

- Dan
>  errors.tar.gz
> 5KViewDownload

Dan Barber

unread,
May 3, 2011, 1:59:16 PM5/3/11
to NeoMPC
By the way, in Debian 6 you probably want to be editing the php.ini
file in /etc/php5/apache2 :)

- Dan

On 3 May, 18:09, Joep van Delft <joepvande...@xs4all.nl> wrote:
>  errors.tar.gz
> 5KViewDownload

Joep van Delft

unread,
May 3, 2011, 3:52:48 PM5/3/11
to neo...@googlegroups.com
On Tue, 3 May 2011 10:57:27 -0700 (PDT)
Dan Barber <dan...@gmail.com> wrote:

> There's nothing wrong with your setup. The messages you are seeing are
> just notices from PHP relating to code in mpd.class. You can suppress
> these messages by setting your error_reporting level in php.in to
> exclude notices.
>
> error_reporting = E_ALL & ~E_NOTICE
>

Bingo! That did the trick. Thanks, Dan :)


Joep

Demian Martin

unread,
May 14, 2011, 7:34:19 PM5/14/11
to NeoMPC
I tried the new settings for error_reporting and I still get lots of
errors. Any suggestions?

I discovered someone has updated mpd.class.php. I found it here:
https://bbs.archlinux.org/viewtopic.php?id=107889 and tried it. Its
not compatible with either current version of neompc. It handles
directories differently. It has some new functions and a redesigned
way of parsing the file systems. Many of the old error messages seem
to go away with it but some fundamental things things don't work and
I'm not up to figuring out the fixes, Thats over my head. . .
-Demian

Dan Barber

unread,
May 15, 2011, 11:50:11 AM5/15/11
to neo...@googlegroups.com
Hi Demian,

Are you getting the same log messages as Joep? If so I would suggest that you might not have edited the right php.ini file. What system are you running NeoMPC on?

- Dan


Sent with Sparrow

> --
> You received this message because you are subscribed to the Google Groups "NeoMPC" group.
> To post to this group, send an email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to neompc+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/neompc?hl=en-GB.
>

Dan Barber

unread,
May 15, 2011, 11:54:53 AM5/15/11
to NeoMPC
By the way, thanks for pointing out the improved mpd.class file. I
might try and have a look at that soon.

Demian Martin

unread,
May 15, 2011, 12:40:44 PM5/15/11
to NeoMPC
Dan:
Thanks for looking into this. I am running Voyage Linux (Debian
variant) with most everything up to the very latest.

I'm getting similar errors to Joep, many undefined indexes. mine seem
to be different indexes but the same general problems. A few follow
below. I have tried editing both instances of php.ini on the system,
one in /etc/php5/apache2 and the other in /etc/php5/apache2filter.

[Sun May 15 09:14:17 2011] [error] [client fe80::1c0b:1dd8:4b37:adee]
PHP Notice: Use of undefined constant MPD_CMD_PLMOVE - assumed
'MPD_CMD_PLMOVE' in /var/www/neompc/lib/global.php on line 43,
referer: http://auraliti-server.local/
[Sun May 15 09:14:18 2011] [error] [client fe80::1c0b:1dd8:4b37:adee]
PHP Notice: Undefined index: stats in /var/www/neompc/lib/
mpd.class.php on line 754, referer: http://auraliti-server.local/
[Sun May 15 09:14:18 2011] [error] [client fe80::1c0b:1dd8:4b37:adee]
PHP Notice: Undefined index: stats in /var/www/neompc/lib/
mpd.class.php on line 755, referer: http://auraliti-server.local/
[Sun May 15 09:14:18 2011] [error] [client fe80::1c0b:1dd8:4b37:adee]
PHP Notice: Undefined index: status in /var/www/neompc/lib/
mpd.class.php on line 754, referer: http://auraliti-server.local/
[Sun May 15 09:14:18 2011] [error] [client fe80::1c0b:1dd8:4b37:adee]
PHP Notice: Undefined index: status in /var/www/neompc/lib/
mpd.class.php on line 755, referer: http://auraliti-server.local/
[Sun May 15 09:14:18 2011] [error] [client fe80::1c0b:1dd8:4b37:adee]
PHP Notice: Undefined index: playlistinfo in /var/www/neompc/lib/
mpd.class.php on line 754, referer: http://auraliti-server.local/


Looking deeper now that I'm sure both were changed, and it seems the
first is the one that influences the logging. Changing it I have
traded the above for a lot of these messages :
[Sun May 15 09:22:17 2011] [error] [client fe80::1c0b:1dd8:4b37:adee]
PHP Deprecated: Function split() is deprecated in /var/www/neompc/lib/
mpd.class.php on line 796, referer: http://auraliti-server.local/neompc/index.php.

Looking at the options I don't see one that will suppress the
depreciated notice.

The new mpd.class.php enables some new features and supports the
larger number of tags that mpd now supports. Its not clear if it would
have problems with the older versions of MPD however. When I tried it
the control and playlist pages seems to work but the file management
calls are different and I didn't see and easy way to cheat it all to
work.








On 15 May, 08:50, Dan Barber <dan...@gmail.com> wrote:
> Hi Demian,
>
> Are you getting the same log messages as Joep? If so I would suggest that you might not have edited the right php.ini file. What system are you running NeoMPC on?
>
> - Dan
>
> Sent with Sparrow
>
>
>
>
>
>
>
> On Sunday, 15 May 2011 at 00:34, Demian Martin wrote:
> > I tried the new settings for error_reporting and I still get lots of
> > errors. Any suggestions?
>
> > I discovered someone has updated mpd.class.php. I found it here:
> >https://bbs.archlinux.org/viewtopic.php?id=107889and tried it. Its
Reply all
Reply to author
Forward
0 new messages