PHP 7.1 incompabilities

Posted in: Newspaper
Post count: 1

Hello!
It’s seems what current version of Newspaper slightly incompatible with php 7.1.
Here is a part of nginx log:
2017/01/26 01:35:10 [error] 5642#5642: *4175 FastCGI sent in stderr: “PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: A non-numeric value encountered in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 997
PHP message: PHP Warning: Illegal string offset ‘test_time’ in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_remote_http.php on line 93
PHP message: PHP Warning: Illegal string offset ‘test_status’ in /usr/local/nginx/html/wp-content/themes/Newspaper/includes/wp_booster/td_remote_http.php on line 95
PHP message: PHP Warning: Illegal string offset ‘youtube_ids’ in /usr/local/

Post count: 22421

Hello,
Please only use php 7.0
We added compatibility with php 7.0 but not 7.1 for the moment.
Thank you!

Post count: 3

I have the same issue.

Is there any update on when Newsmag and Newspaper will run under 7.1?

Post count: 9544

Most good hosts allow you to run BOTH 7.0x and 7.1x during the transitional period of phasing out 5.6 this year for most folk. Ideally you should run 7.0x for now until ALL the plugins and whatnot across the WP universe have been updated; 7.1 is still somewhat bleeding edge for most stuff.

To maintain compatibility with *all* WP stuff, best to stick with 7.0x for now, unless you have no other choice; however with 7.1x you *will* end up having to manually fix some php stuff in WP universe to work with it.

WP will soon “require” PHP 7x to work, and at that point “everybody” who is still active in WP dev should be running 7x and 7.1x.

Just a thought, anyway.

Post count: 22421

Hello,

For the moment we only added compatibility with php 7.0.
7.1 is not yet tested and no implementation was made for 7.1 for the moment. We will test it for future versions though but I cannot provide an ETA at the moment.

Thank you!

Post count: 31

Hi,

I have a website running Newspaper 7.7 on PHP 7 and still some incompatibilities found.

FILE: …/website.com/wp-content/themes/Newspaper/includes/wp_booster/td_translate.php
—————————————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————————————————————
263 | WARNING | Function name “__td” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
—————————————————————————————————————————————

FILE: …/website.com/wp-content/themes/Newspaper/includes/wp_booster/external/less.php-master/lib/Less/Parser.php
—————————————————————————————————————————————
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
—————————————————————————————————————————————
470 | WARNING | INI directive ‘mbstring.internal_encoding’ is deprecated since PHP 5.6.
471 | WARNING | INI directive ‘mbstring.internal_encoding’ is deprecated since PHP 5.6.
478 | WARNING | INI directive ‘mbstring.internal_encoding’ is deprecated since PHP 5.6.
—————————————————————————————————————————————

FILE: …/website.com/wp-content/themes/Newspaper/includes/wp_booster/external/less.php-master/lib/Less/SourceMap/Base64VLQ.php
—————————————————————————————————————————————————-
FOUND 3 ERRORS AFFECTING 1 LINE
—————————————————————————————————————————————————-
156 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
156 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
156 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
—————————————————————————————————————————————————-

Post count: 22421

Hello,
Please make sure you use the latest version of the theme and php 7.0. When we tested there was no 7.0.15 so please revert to a previous version http://php.net/releases/ Use 7.0.0 to be sure
Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.