Php 7.4 Rev Slider: Undefined variable: widgetName /framework/functions-wordpress.class.php

User avatar
axew3
w3all User
w3all User
Posts: 1971
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Php 7.4 Rev Slider: Undefined variable: widgetName /framework/functions-wordpress.class.php

Post by axew3 »

PHP Notice: Undefined variable: widgetName in /wp-content/plugins/revslider/includes/framework/functions-wordpress.class.php on line 259
if using an old version of revslider and new Php versions, you'll change the line 259 into this file:

Code: Select all

add_action('widgets_init', create_function('', 'return register_widget("'.$widgetName.'");'));
into this:

Code: Select all

add_action( 'widgets_init', function() { global $widgetName; return 'register_widget("'.$widgetName.'")';});