There seems to be an issue with Playlist/Library. After going through the initial step of creating a playlist and not yet at adding media files to it I encounter an exception.
Screenshots attached.
System is: Debian Squeeze AMD64
php, python, apache, postgresql and rabbitmq are default Squeeze versions.
To get the /Library listing working again I have cleaned up cc_playlist table
airtime=> delete from cc_playlist;
However creating a new playlist called "test playlist" causes the same problem to reappear.
Posts: 389Member, Administrator, Sourcefabric Team
That looks like a bunch of deprecation warnings coming from a PEAR library.
Make sure that your php.ini file (located in /etc/php5/apache2/php.ini), has
the following value for error_reporting:
error_reporting = E_ALL & ~E_DEPRECATED
All those PEAR libraries are planned to be removed in version 2.0 of
Airtime.
> There seems to be an issue with Playlist/Library. After going through
> the initial step of creating a playlist and not yet at adding media files to
> it I encounter an exception.
>
> Screenshots attached.
>
> System is: Debian Squeeze AMD64
> php, python, apache, postgresql and rabbitmq are default Squeeze versions.
>
> To get the /Library listing working again I have cleaned up cc_playlist
> table
>
> airtime=> delete from cc_playlist;
>
> However creating a new playlist called "test playlist" causes the same
> problem to reappear.
>
> < http://forum.sourcefabric.org/index.php?t=getfile&id=147> Attachment:
> library_playlist_crashed.png< http://forum.sourcefabric.org/index.php?t=getfile&id=147>
> (Size: 108.13KB)
> < http://forum.sourcefabric.org/index.php?t=getfile&id=148> Attachment:
> library_playlist_crashed2.png< http://forum.sourcefabric.org/index.php?t=getfile&id=148>
> (Size: 128.58KB)
>
@Paul: I do have error_reporting = E_ALL & ~E_DEPRECATED set in my php.ini. However it's not only about the warnings. It's not possible to create any working playlists at all. Each ends up being just a dummy entry without a possibility to add media to (please mind the new screenshot attached).
Not sure what the problem is about as this is pretty much a clean installation of the OS and no custom configuration has been made. Airtime installed for the first time and via apt-get.
> @Paul: I do have error_reporting = E_ALL & ~E_DEPRECATED set in my
> php.ini. However it's not only about the warnings. It's not possible to
> create any working playlists at all. Each ends up being just a dummy entry
> without a possibility to add media to (please mind the new screenshot
> attached).
>
> Not sure what the problem is about as this is pretty much a clean
> installation of the OS and no custom configuration has been made. Airtime
> installed for the first time and via apt-get.
>
> < http://forum.sourcefabric.org/index.php?t=getfile&id=149> Attachment:
> library_playlist_crashed3.png< http://forum.sourcefabric.org/index.php?t=getfile&id=149>
> (Size: 142.96KB)
>
Apart from that I also get the following in /var/log/apache2/error.log:
[Tue Jun 14 20:36:23 2011] [error] [client 80.x.x.x] PHP Fatal error: Cannot redeclare class PEAR_Common in /var/lib/airtime/library/pear/PEAR/Common.php on line 834, referer: http://myweb.tld/Library
@Martin: I have adjusted it as you advised but unfortunately it didn't make any difference. Still getting similar logs in /var/log/apache2/error.log , plus deprecation warnings thrown to the browser when creating playlist.
With those changes applied I still can't modify playlists and issue is still there. No improvement at all.
I thought something from /var/log/apache2/error.log could be useful - please mind the Fatal error at the end:
[Wed Jun 15 18:18:10 2011] [error] [client 80.x.x.x] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Common.php on line 607, referer: http://myweb.tld/Library
[Wed Jun 15 18:18:10 2011] [error] [client 80.x.x.x] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Common.php on line 629, referer: http://myweb.tld/Library
[Wed Jun 15 18:18:10 2011] [error] [client 80.x.x.x] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/lib/airtime/library/pear/PEAR/Config.php on line 650, referer: http://myweb.tld/Library
End in the end a Fatal error:
[Wed Jun 15 18:18:10 2011] [error] [client 80.x.x.x] PHP Fatal error: Cannot redeclare class PEAR_Common in /var/lib/airtime/library/pear/PEAR/Common.php on line 834, referer: http://myweb.tld/Library