• rianovost

    (@suryano11)


    wp-content/plugins/smooth-slider/slider_versions/widgets_1.php:52
    wp-content/plugins/smooth-slider/slider_versions/smooth_1.php
    wp-content/plugins/smooth-slider/slider_versions/smooth_1.php:225

    Rianovost.ru

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello rianovost,

    The same thing happened to me, I fixed it by changing the 52 line of widgets_1.php (version 2.8.8) with the following:

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

    In file smooth_1.php:225 it includes the widgets_1.php file so I suppose it might fix all errors

    Be aware that copying the above code will not work because the “ and ” and ‘ will cause the code to break, due to WordPress forum auto formating the letters…

    In smooth-slider/slider_versions/widgets_1.php replace the line 52 with the following code like konnpp has pointed out above:

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

    After that the plugin will continue to work (tested on PHP 8.1).
    create_function() is deprecated in newer versions of PHP so it needs to be replaced like so.

    • This reply was modified 2 years, 10 months ago by nilsen.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Function create_function() is deprecated’ is closed to new replies.