Since PHP 5 came into conception there is a new security warning for developers called E_Strict. Unfortunatly this can cause quite a lot of problems for code written in the old days. The code is fine but uses techniques that are no longer used and therefore PHP throws a deprecated warning. Proplayer uses some of these techniques in their XML writer. You can turn off E_Strict by setting the following in the error_reporting line.

error_reporting = E_ALL & ~E_DEPRECATED

Once the server reads the configuration it will no longer throw any E_Strict warning.

note: You have to edit the PHP.INI file! Do not place this code in your plugin.

Comments

9 Responses to “Proplayer: This playlist is not a valid XML file.”
  1. Tad says:

    Where do i find that to edit?

  2. Patriek Jeuriens says:

    You can find it in the PHP.ini file, just look for error and you’ll see something similar looking.

  3. Danny says:

    Really useful, thank you so much!

  4. Huu Minh says:

    Thank you SO much Patriek Jeuriens. Took me a while to find your solution. One little note to newbies like me: after you make the change in the php.ini file, you have to do a “restart all services” (if you’re using WAMP) for server, then your ProPlayer will work. :)

  5. guest says:

    This just messed up wp-admin and Still did not fix pro-player

  6. Patriek Jeuriens says:

    That is very strange, all the above does is turn deprecated error warnings off by PHP. It should not have any effect on wp-admin.

    Did you edit the php.ini file?

  7. kagliostro says:

    Thank you very much!
    Unluckily Dreamhost doesn’t permit php.ini fastcgi modification (or is very difficult!).
    Is there another way to solve this problem?

    Thanks in advance!

  8. Patriek Jeuriens says:

    Depending on the configuration of dreamhost you could set it inline in php. You can read this article on php config mode changes. Configuration changes mode. You should be able to find this in phpinfo. Depending on its value you might be able to use ini_set() or error_reporting() to pass the directive to the php parser. Check this page out for more info on that one. Error_reporting() If that isn’t allowed im not sure if its possible. Maybe you could catch the xml before it’s send to Proplayer and strip out all warnings. But you would be better off rewriting it.

  9. kagliostro says:

    Again, thank you very much Patriek!!!

    I have written two lines to Dreamhost: I hope they can do it for me (or perhaps enable php-xml/lib-xml as Proplayer site suggest for this type of problem).

    Thanks Patriek!
    Francesco