Page 1 of 1

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

Posted: Fri Jul 17, 2020 8:41 am
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.'")';});

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

Posted: Wed Mar 31, 2021 8:21 am
by Dev
This helped a lot.
Thank you so much