• Resolved Azamat Xodjakov

    (@azamat88)


    When I enable debug mode in wp-config.php, I’m getting this message:

    Deprecated: Function create_function() is deprecated in /var/www/xxx/data/www/example.com/wp-content/plugins/oa-social-login/includes/widget.php on line 119

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Claude

    (@claudeschlesser)

    Hello,

    please open this file:
    wp-content/plugins/oa-social-login/includes/widget.php

    Then replace this:
    add_action ('widgets_init', create_function ('', 'return register_widget("oa_social_login_widget");'));

    By this:

    function oa_social_login_init_widget ()
    {
        return register_widget('oa_social_login_widget');
    }
    add_action ('widgets_init', 'oa_social_login_init_widget');

    This should fix the compatibility issue. The fix will be included in the next version of the plugin.

    • This reply was modified 6 years, 5 months ago by Claude.
    • This reply was modified 6 years, 5 months ago by Claude.
    Plugin Author Claude

    (@claudeschlesser)

    The PHP 7.2+ compatibility has been fixed in the latest version 5.4.2 ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘create_function() is deprecated’ is closed to new replies.