Hi all. I have a site (scotthom.com) using Siteground’s hosting service. They have a plugin, SG Optimizer, that checks your site for PHP 7.0 compatibility, and it appears that the SO Widget Bundle plugin is not, see below. Can this be fixed?
FILE: /home/xxxxxx/public_html/scotthom.com/wp-content/plugins/so-widgets-bundle/base/inc/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
—————————————————————————————————————————-
FILE: /home/xxxxxx/public_html/scotthom.com/wp-content/plugins/so-widgets-bundle/base/inc/lib/Less/Parser.php
—————————————————————————————————————
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
—————————————————————————————————————
93 | WARNING | INI directive ‘mbstring.internal_encoding’ is deprecated since PHP 5.6.
94 | WARNING | INI directive ‘mbstring.internal_encoding’ is deprecated since PHP 5.6.
229 | WARNING | INI directive ‘mbstring.internal_encoding’ is deprecated since PHP 5.6.
—————————————————————————————————————
Hi Scott,
We’ve run a few tests regarding this issue and looked into it in the past. This error is coming up due to how the PHP 7 Compatability Checker checks things. It’s basically missing the context and said context prevents the issue from occurring and flagging it incorrectly as a result.
In other words, this is a false positive and safe to ignore.