• Resolved connectisl

    (@connectisl)


    Hi there,

    There is an issue with the Download Manager plugin with PHP version >= 7.2.
    The create_function method has been deprecated, and is now ‘Highly Discouraged’: https://www.php.net/manual/en/function.create-function.php

    The use of create_function appears in: /widgets/class.CatPackages.php:
    > add_action(‘widgets_init’, create_function(”, ‘return register_widget(“WPDM_CatPackages”);’));

    Could you please consider changing this for an anonymous function for compatibility with PHP >= 7.2, for example:

    > add_action(‘widgets_init’, function() { return register_widget(“WPDM_CatPackages”); } );

    There are other areas where this function appears, include all other widget registering action hooks, and a filter in /tpls/media-tab.php.

    Thank you,
    Connect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Shahriar Alam

    (@shahriar0822)

    Maybe you are using an older version of WordPress Download Manager. Please install the latest version to fix the issue.

    Thread Starter connectisl

    (@connectisl)

    Thanks, with an updated version this is resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use of create_function is deprecated and highly discouraged since PHP 7.2’ is closed to new replies.