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

Php 7 compatibility issues #359

herrvigg opened this issue Jun 23, 2018 · 2 comments
Labels
legacy issue Legacy issue imported from original repo

Comments

@herrvigg
Copy link
Collaborator

Issue by omargourari
Monday Feb 29, 2016 at 08:16 GMT
Originally opened as qTranslate-Team/qtranslate-x#359


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?

@herrvigg herrvigg added the legacy issue Legacy issue imported from original repo label Jun 23, 2018
@herrvigg
Copy link
Collaborator Author

Comment by Tusko
Saturday Mar 19, 2016 at 08:26 GMT


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

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Monday Mar 21, 2016 at 18:56 GMT


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
legacy issue Legacy issue imported from original repo
Projects
None yet
Development

No branches or pull requests

1 participant