• Resolved jstamberg

    (@jstamberg)


    Hello, I recently was notified by my webhost (1and1) that I need to upgrade my version of PHP from 5.5 to 7.0.

    I made the upgrade and all my other sites work fine. However, my one site that uses the Audio Player plugin received an error message when I made this upgrade:

    Parse error: syntax error, unexpected ‘new’ (T_NEW) in /homepages/41/d197534790/htdocs/naknekchurch/wordpress/wp-content/plugins/audio-player/audio-player.php on line 903

    When I downgraded PHP to 5.6 it seems to work fine. Any suggestions? Is Audio Player simply no longer supported and not compatible with PHP 7?
    Thanks,
    Jim

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @jstamberg

    I just found the same bug. Luckily, only a small fix in the code made it work again. It is triggered inside an if condition that uses the PHP version. It seems like some functionality that, in the end, wasn’t developed or needed.

    Find:
    $AudioPlayer = &new AudioPlayer();

    and replace by
    $AudioPlayer = new AudioPlayer();

    Hopefully, Martin (the developer) will fix the source code and upgrade the plugin.

    Regards,
    Hernan

    Thread Starter jstamberg

    (@jstamberg)

    Interesting. Thanks!
    Jim

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Audio Player breaks website w/ PHP 7’ is closed to new replies.