Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated WP_Widget #202

Closed
faina09 opened this issue Jul 23, 2015 · 5 comments
Closed

deprecated WP_Widget #202

faina09 opened this issue Jul 23, 2015 · 5 comments

Comments

@faina09
Copy link

faina09 commented Jul 23, 2015

PHP Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use

__construct()
instead.

..\wp-content\plugins\qtranslate-x\qtranslate_widget.php
Line 32: $this->WP_Widget('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);

should be:
$this->__construct('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);

@cywtf
Copy link

cywtf commented Aug 17, 2015

I installed the plugin today and I am getting the error message for the same reason:

 Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in \wp-includes\functions.php on line 3457

Using WP 4.3-RC2-33619 and QTranslate-X 3.4.3

For the moment I did a manual fix, using suggestion indicated above, but the message is truly annoying.

@72quadrat
Copy link

Same as @Rootion the quick fix works one of my sites. Error only seems to print on debug_log on.

@johnclause
Copy link
Member

This has been taken care of in #230. WIll be released in 3.4.5.

@koen84
Copy link

koen84 commented Sep 10, 2015

Ergo, qTranslate-X 3.4.4 that's currently pushed through wordpress.org is NOT 100% compatible with wordpress 4.3 as is "claimed by author". Above fix still solves issue though.

@johnclause
Copy link
Member

Yes, sorry, a few imperfections have been discovered and fixed by now. Could you test the latest version from GitHub, or this pre-release https://github.com/qTranslate-Team/qtranslate-x/releases/tag/3.4.5, which is currently the same as the latest, and most likely will be published on WordPress? Please, let us know if you find any problems on your sites. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants