• I am brand new at WordPress and website administration. I am trying to update the website and updated it to PHP ea-php74 but now I receive and error at top of page that says: “Deprecated: Function create_function() is deprecated in /home2/c319371/public_html/wp-content/plugins/smooth-slider/slider_versions/widgets_1.php on line 52”

    The error appears when you visit the site home page: https://www.centohretfirefighters.com/

    My version of Smoothslider is 2.8.8

    Could anyone help me fix this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • In smooth-slider/slider_versions/widgets_1.php replace the line 52 with the following code like konnpp has pointed out in the review section of this plugin:

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Sliders Showing Error After Upgrading to: PHP ea-php74’ is closed to new replies.