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)
Awesome – thank you, and thank you for a great tool!
Hi, so what do I do exactly when I get this warning?
Warning: Use of undefined constant LOGGED_IN_COOKIE – assumed ‘LOGGED_IN_COOKIE’ (this will throw an Error in a future version of PHP)
pluggable.php on line 773
and
Warning: Use of undefined constant SECURE_AUTH_COOKIE – assumed ‘SECURE_AUTH_COOKIE’ (this will throw an Error in a future version of PHP)
user.php on line 357
Thx for the support.