Title: Constructor error
Last modified: August 30, 2016

---

# Constructor error

 *  Resolved [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/constructor-error/)
 * Please fix the constructor error, i.e. change:
 *     ```
       class qTranslateXWidget extends WP_Widget {
   
       	function qTranslateXWidget() {
       		$widget_ops = array('classname' => 'qtranxs_widget', 'description' => __('Allows your visitors to choose a Language.', 'qtranslate') );
       		$this->WP_Widget('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);
       	}
       ```
   
 * into:
 *     ```
       class qTranslateXWidget extends WP_Widget {
   
       	function qTranslateXWidget() {
       		$widget_ops = array('classname' => 'qtranxs_widget', 'description' => __('Allows your visitors to choose a Language.', 'qtranslate') );
       		parent::__construct('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);
       	}
       ```
   
 * This is required for php7 support and has been requested by wp to change it before
   the release of wp 4.3
    [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Gunu](https://wordpress.org/support/users/grafcom/)
 * (@grafcom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/constructor-error/#post-6514554)
 * [@jacob](https://wordpress.org/support/users/jacob/) N. Breetvelt
 * Jacob, thanks has already changed in the version of GitHub but we forget here.
   🙂 We do a.s.a.p
 * Github version [download here](https://github.com/qTranslate-Team/qtranslate-x/archive/master.zip)

Viewing 1 replies (of 1 total)

The topic ‘Constructor error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gunu](https://wordpress.org/support/users/grafcom/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/constructor-error/#post-6514554)
 * Status: resolved