PHP Notice about WP_Widget method
-
Hello,
First of all, great plugin, well done!
Since WordPress 4.3 was released, qTranslate-X is causing a PHP notice:
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead
Simply change
$this->WP_Widget
to
parent::__construct
to solve the problem. It is in the
qtranslate-x/qtranslate_widget.php
file.I hope it helps!
-
I confirm. Same issue here
Same issue here.
For now change the qtranslate_widget.php file as Tribulant Software said.
In the nect update it will be fixed.
Just installed the last update but it wasn’t fixed. Thought I’d let you know.
other plugins that use that function? qTranslate Slug for example?
@gunu
I don’t understand. Can you explain?for example do you use qTranslate Slug?
AFAICT no. The problem lies at line 32 plugins/qtranslate-x/qtranslate_widget.php
$this->WP_Widget('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);
Should be:
parent::__construct('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);
Or are you telling me that it should be solved?
@@hansaplasts
Or are you telling me that it should be solved?
Yes, on line 32 there is now:
parent::__construct('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops); }
Very strange….
Probably a noob question. But could it be that it wasn’t updated because I changed it manually??? (nah)you’re right…. only the GitHub version is changed…. 🙂
Download it here
@johnclause…. please update the WordPress version….
That solves it 🙂
When will it be available on wordpress.org/plugins/qtranslate-x ?
Tnx.
- The topic ‘PHP Notice about WP_Widget method’ is closed to new replies.