Aug
16

Proplayer: This playlist is not a valid XML file.

by Patriek Jeuriens · 6 Comments 

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

6 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?