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

Php 7 compatibility issues #359

Closed
omargourari opened this Issue Feb 29, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@omargourari
Copy link

omargourari commented Feb 29, 2016

Using the plugin with PHP 7 generates some compatibility issues:

( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; qTranslateXWidget has a deprecated constructor in qtranslate-x/qtranslate_widget.php on line 30

( ! ) Warning: Cannot modify header information - headers already sent by (output started at qtranslate-x/qtranslate_widget.php:30) in qtranslate-x/qtranslate_core.php on line 384

Notice: Undefined property: stdClass::$0 in qtranslate-x/qtranslate_core.php on line 1422

Do you plan to expand support even for php 7?

@Tusko

This comment has been minimized.

Copy link

Tusko commented Mar 19, 2016

the same error

Deprecated
: Methods with the same name as their class will not be constructors in a future version of PHP; qTranslateXWidget has a deprecated constructor in
/home/tusko/http_pub/0_dev/zhuk.devpreview.xyz/wp-content/plugins/qtranslate-x/qtranslate_widget.php
on line
30

Warning
: Cannot modify header information - headers already sent by (output started at /home/tusko/http_pub/0_dev/zhuk.devpreview.xyz/wp-content/plugins/qtranslate-x/qtranslate_widget.php:30) in
/home/tusko/http_pub/0_dev/zhuk.devpreview.xyz/wp-content/plugins/qtranslate-x/qtranslate_core.php
on line
384

@johnclause

This comment has been minimized.

Copy link
Member

johnclause commented Mar 21, 2016

Thank you very much for the report. It will be fixed in the next release.
If you wish to fix it temporarily in your installation, replace line

function qTranslateXWidget() {

with line

function __construct() {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.