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

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

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

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

by Dev » Wed Mar 31, 2021 8:21 am

This helped a lot.
Thank you so much

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

by axew3 » Fri Jul 17, 2020 8:41 am

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.'")';});

Top