Okay
  Public Ticket #3573236
Fatal error
Closed

Comments

  • Michel started the conversation

    Hello,

    After updating the MP3 Player plugin my site crashed due to a fatal error.

    I've deactivated the plugin  and recovered my site.

    Here is the error message:

    WordPress version 6.4.2

    Active theme: Divi (version 3.19.10)

    Current plugin: MP3 Audio Player by Sonaar (version 5.0.2)

    PHP version 7.0.33

    Error Details
    =============

    An error of type E_PARSE was caused in line 451 of the file /home/devsfmwo/micheldqmusic.com/wp-content/plugins/mp3-music-player-by-sonaar/includes/class-sonaar-music.php. Error message: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'

  •  1,114
    Max replied

    Hi,
    PHP 7.0 is a very very old version and its really not secure. Please update at least to PHP 7.4

    Thanks,


    Max from the Sonaar.io Crew

  • Michel replied

    I downgraded back to 4.10.1, for now it'll stay like that.

    Although my PHP needs to be upgraded, I did not get any messages or indication that the new MP3 player version was not going to work with my current PHP version, and that is something that needs to be fixed on your side. 

    I will talk to my host about the PHP upgrade (using hardenedPHP for now) but we should get a warning if your plug in is going to crash our sites, like every other non-compatible plug in does.

  •  1,114
    Max replied

    This will be fixed in an hotfix in version 5.0.3 that we will release probably next week, but using PHP 7.0 is still highly risky and nobody would recommend running PHP 7.0. It even reached End of Life: https://www.php.net/supported-versions.php

    https://kinsta.com/blog/php-versions/#:~:text=PHP%205.6%2C%207.0%2C%207.1%2C,reached%20its%20end%20of%20life.

    Thanks,


    Max from the Sonaar.io Crew