Support » Plugin: Swift Performance Lite » PHP Warning: Undefined constant LOGGED_IN_COOKIE in performance.php (PHP 7.2)

  • swampgeek

    (@swampgeek)



    Noticed this in the error_log after installing on PHP 7.2:
    PHP Warning: Use of undefined constant LOGGED_IN_COOKIE – assumed ‘LOGGED_IN_COOKIE’ (this will throw an Error in a future version of PHP) in /xxxxx/wp-content/plugins/swift-performance-lite/performance.php on line 1252

Viewing 3 replies - 1 through 3 (of 3 total)
  • swampgeek

    (@swampgeek)

    A quick review with the PHP Compatibility Checker plugin yielded several issues that seem straightforward:
    FILE: /xxx/wp-content/plugins/swift-performance-lite/includes/cache-status/cache-status.php
    74 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

    FILE: /xxx/wp-content/plugins/swift-performance-lite/includes/setup/setup.php
    495 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    589 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

    FILE: /xxx/wp-content/plugins/swift-performance-lite/performance.php
    574 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    693 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    2032 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    2052 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

    FILE: /xxx/wp-content/plugins/swift-performance-lite/modules/image-optimizer/image-optimizer.php
    705 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

    FILE: /xxx/wp-content/plugins/swift-performance-lite/modules/cache/cache.php
    262 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    302 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    748 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    819 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    1050 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

    FILE: /xxx/wp-content/plugins/swift-performance-lite/modules/asset-manager/JSMin.class.php
    107 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2

    FILE: /xxx/wp-content/plugins/swift-performance-lite/modules/asset-manager/asset-manager.php
    163 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    180 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

    Plugin Author swte

    (@swte)

    Hi,

    The LOGGED_IN_COOKIE issue is a known issue, it has been fixed in the latest version, it will release within 1-2 weeks

    Regarding the compatibility checker, the mysql is false positive, we are using an own function for some queries: Swift_Performance::mysql_query

    Regarding safe mode warning it is legacy stuff, you can ignore it. (it will be removed in 2.0 as the minimum PHP requirement will be PHP 5.6)

    swampgeek

    (@swampgeek)

    Awesome – thank you, and thank you for a great tool!

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