Playlist/Library issues 1.8.2
  • 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.
  • 10 Comments sorted by
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    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.

    Paul Baranowski
    CTO, Sourcefabric, http://sourcefabric.org

    +1 (416) 832-6436 (Cell)
    Skype: paulbaranowski
    720 Bathurst St. / Suite 203 / Toronto / ON / M5S 2R4 / Canada



    On Tue, Jun 14, 2011 at 11:29 AM, Jacek Lakomiec <
    airtime-support@lists.sourcefabric.org> wrote:

    > 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.
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    The first step is to get rid of the deprecation warnings. There is a high
    likelihood that those are breaking the interface.

    Not sure if you had to adjust your php.ini or not, but if you did, then did
    you restart apache afterwards?


    Paul Baranowski
    CTO, Sourcefabric, http://sourcefabric.org

    +1 (416) 832-6436 (Cell)
    Skype: paulbaranowski
    720 Bathurst St. / Suite 203 / Toronto / ON / M5S 2R4 / Canada



    On Tue, Jun 14, 2011 at 2:15 PM, Jacek Lakomiec <
    airtime-support@lists.sourcefabric.org> wrote:

    > @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)
    >

  • I didn't have to restart apache as "error_reporting = E_ALL & ~E_DEPRECATED" already was in /etc/php5/apache2/php.ini

    I have done some apache restarts anyways when trying to get it fixed. No difference.
  • Hi Jacek,

    Try the following:

    sudo gedit /var/www/airtime/public/index.php


    Make lines #4 and #5 look like so:
    //error_reporting(E_ALL);
    //ini_set('display_errors', 'on');



    This should force error reporting off.
    Airtime Pro Hosting: http://airtime.pro
  • 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.
  • What happens when you set those lines to

    error_reporting(0);
    ini_set('display_errors', 'off');


    ?
    Airtime Pro Hosting: http://airtime.pro
  • Martin,

    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

    Hope that somehow helps to investigate.

    Thanks and regards,
    Jacek
  • Problem solved. It was a funky configuration of php.ini with additional export added for /usr/share/PEAR.

    Thanks for your support.