• Resolved Vlad Lasky

    (@vlasky)


    Hiya,

    A plugin update is needed to the plugin to fix PHP notices of the form “Trying to access array offset on value of type bool”. This is due to stricter array type checking introduced in PHP 7.4.

    Examples:

    Notice: Trying to access array offset on value of type bool in /wp-content/plugins/starbox/models/Frontend.php on line 32
    Notice: Trying to access array offset on value of type bool in /wp-content/plugins/starbox/models/Frontend.php on line 65
    Notice: Trying to access array offset on value of type bool in /wp-content/plugins/starbox/models/Frontend.php on line 84
    Notice: Trying to access array offset on value of type bool in /wp-content/plugins/starbox/models/Frontend.php on line 96
    Notice: Trying to access array offset on value of type bool in /wp-content/plugins/starbox/models/Frontend.php on line 119
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Calin Vingan

    (@calinvingan)

    Hi Vlad,

    Thank you for your feedback.
    We’ll test Starbox with the last version of PHP and make sure it’s working without any PHP warning.

    Calin

    A check for PHP 7.3 of this plugin (v3.2.8) with the help of plugin ‘PHP Compatibility Checker’ also results in this warning in file Frontend.php:

    FILE: /usr/www/users/kirchp/wp-content/plugins/starbox/controllers/Frontend.php
    ————————————————————————————–FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————– 241 | WARNING | The "result" parameter for function parse_str() is missing. Passing this parameter is no longer optional. The optional nature of the parameter is deprecated since PHP 7.2
    ————————————————————————————–

    • This reply was modified 5 years, 3 months ago by JochenT.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update needed to fix PHP 7.4 notices’ is closed to new replies.