• Resolved laraej

    (@laraej)


    It seems that Compress JPEG & PNG images plugin is not fully compatible with PHP 7. Based on a PHP compatibility test I noticed the following warning:

    FILE: /better-search-replace-pro/includes/class-bsr-compatibility.php
    —————————————————————————————–
    INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    —————————————————————————————–

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author TinyPNG

    (@tinypng)

    Hi, could it be you pasted your question in the wrong place? The plugin is fully PHP7 compatible and the file you talk about is not part of the plugin. Maybe this refers to the plugin “Better Search Replace Pro”.

    Thread Starter laraej

    (@laraej)

    Hi, sorry I had copied the wrong warning message. But I am actually referring to your plugin, Compress JPEG & PNG images as below:

    FILE: /wp-content/plugins/tiny-compress-images/src/class-tiny-notices.php
    —————————————————————————————–
    134 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    —————————————————————————————–

    Just wondering if you know about this warning and if something needs to be done about it.
    Thanks in advance.

    Plugin Author TinyPNG

    (@tinypng)

    Ok thanks. It is a deprecation warning so that sounds like something we will definitely address in one of the next updates!

    Thread Starter laraej

    (@laraej)

    That would be good, thanks!

    Hi there just updated to version 3.0 of your plugin.
    Unfortunately the warning still occurs on two instances.

    tiny-compress-images/src/class-tiny-notices.php

    134 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead

    169 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead

    Can you please integrate a fix for this in the next version. Fix is pretty easy see PHP Manual.

    Thank you, have a nice day.

    Tobias

    Plugin Author TinyPNG

    (@tinypng)

    Hi Tobias,

    Thanks for bringing this to our attention again. We indeed forgot to address it in 3.0.0, but since we also introduced a bug in 3.0.0 that we wanted to quickly fix, we’ve just released 3.0.1 in which you no longer should get these warnings as we no longer use create_function().

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP7 compatibility’ is closed to new replies.