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 4 years, 2 months ago by
nilsen.