• Deprecated: Function create_function() is deprecated in […]/wp-content/plugins/footnotes/class/init.php on line 61

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mark Cheret

    (@markcheret)

    Hey Julien Felix,

    thank you for your support request.
    I’m sorry to hear you’re experiencing issues.

    I’d so love to help you on this one but I currently don’t have the development resources. Do you know someone who could help me out on the development side to iron out your issue?

    Thank you so much for your request and for your time!
    Best
    Mark

    Interested in solving this too.

    The line in question causing problems is init.php line 61:
    add_action('widgets_init', create_function('', 'return register_widget("MCI_Footnotes_Widget_ReferenceContainer");'));

    My favored solution is to make the add_action callable a function definition:

    add_action('widgets_init', function() {
    	return register_widget("MCI_Footnotes_Widget_ReferenceContainer");
    });

    This requires support for PHP 5.3+ (the plugin shows compatibility currently with WP 3.9+, which claims to run on PHP 5.2.4+. Don’t know if that makes a difference; I’m betting the plugin already uses some features for later versions of PHP). @markcheret is this something you can put in place on a release to make compatibility with PHP 7.2+ better?

    ~Dan

    Hello, any update on this 7.2 compatibility issue ?

    Please provide a solution for the Deprecated: Function create_function() as I am spammed with logs regarding this error.

    PHP Deprecated: Function create_function() is deprecated in /var/www/hlbenefits.com/html/wp-content/plugins/footnotes/class/init.php on line 61

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deprecated: Function create_function()’ is closed to new replies.