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
herrvigg opened this issue Jun 22, 2018 · 5 comments
Closed

deprecated WP_Widget #202

herrvigg opened this issue Jun 22, 2018 · 5 comments
Labels
duplicate This issue or pull request already exists legacy issue Legacy issue imported from original repo

Comments

@herrvigg
Copy link
Collaborator

Issue by faina09
Thursday Jul 23, 2015 at 20:02 GMT
Originally opened as qTranslate-Team/qtranslate-x#202


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);

@herrvigg herrvigg added duplicate This issue or pull request already exists legacy issue Legacy issue imported from original repo labels Jun 22, 2018
@herrvigg
Copy link
Collaborator Author

Comment by rootion
Monday Aug 17, 2015 at 18:43 GMT


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.

@herrvigg
Copy link
Collaborator Author

Comment by 72quadrat
Friday Aug 21, 2015 at 13:42 GMT


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

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Wednesday Sep 02, 2015 at 00:00 GMT


This has been taken care of in qTranslate-Team/qtranslate-x#230. WIll be released in 3.4.5.

@herrvigg
Copy link
Collaborator Author

Comment by koen84
Thursday Sep 10, 2015 at 14:59 GMT


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.

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Tuesday Sep 15, 2015 at 04:50 GMT


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
Labels
duplicate This issue or pull request already exists legacy issue Legacy issue imported from original repo
Projects
None yet
Development

No branches or pull requests

1 participant