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
Closed

Php 7 compatibility issues #359

omargourari opened this issue Feb 29, 2016 · 2 comments

Comments

@omargourari
Copy link

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
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
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants