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/
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.
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
—————————————————————————————————————————————————-
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!