Support » Plugin: Autoptimize » PHP-Warnings

  • Resolved The-Dude

    (@the-dude-1)


    Hi,

    as i run my monthly php compatibility check i see this errors in the AO section:

    FILE: /is/htdocs/…/www/…/wp-content/plugins/autoptimize/classes/external/php/jsmin.php
    —————————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————————-
    109 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    —————————————————————————————————————-

    FILE: /is/htdocs/…/www/…/wp-content/plugins/autoptimize/classes/autoptimizeCriticalCSSCore.php
    ————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————
    17 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$_option}
    ————————————————————————————————————————

    FILE: /is/htdocs/…/www/…/wp-content/plugins/autoptimize/classes/autoptimizeCriticalCSSCron.php
    ————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————
    17 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$_option}
    ————————————————————————————————————————

    FILE: /is/htdocs/…/www/…/wp-content/plugins/autoptimize/classes/autoptimizeCriticalCSSEnqueue.php
    —————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————————————
    16 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$_option}
    —————————————————————————————————————————

    FILE: /is/htdocs/…/www/…/wp-content/plugins/autoptimize/classes/autoptimizeCriticalCSSSettingsAjax.php
    ——————————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————————–
    16 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$_option}
    ——————————————————————————————————————————–

    FILE: /is/htdocs/…/www/…/wp-content/plugins/autoptimize/classes/autoptimizeCriticalCSSSettings.php
    —————————————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————————————-
    106 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$_option}
    —————————————————————————————————————————-

    My server runs with PHP 7.3.18, but because of problems with php compatibility check in PHP-7.3-mode i check only for errors with PHP 7.2 and lower.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    in short; nothing to worry about 🙂

    in detail;
    1. WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2 is a false positive as the code explictly checks if that functions is available
    2. WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$_option}: discouraged but still working, this will be looked into at a later stage though 🙂

    have a nice friday!
    frank

    Thread Starter The-Dude

    (@the-dude-1)

    Hi Frank,

    thx 4 your very quick answer. Ok, but … what about the other warnings?
    And … i plan to upgrad in week to PHP 7.4. I hope, the warnings dont’t turn into errors or break my site.

    I’m a little concerned …

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    all warnings are one of those 2, but I’m 100% sure it will work very well on 7.4 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.