Hi,
I am using Storefront. I did a test with the Plugin PHP compatibility what was the problem when upgrading to php7 and this is what I’ve got as a result:
FILE: /home…/MySite/public_html/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
—————————————————————————————————
FILE: /home…/MySite/public_html/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
—————————————————————————————————————-
What do you think I should do?
Greetings,
Hi David,
We’ve looked into the highlighted issues in the past. These errors are coming up due to how the PHP 7 Compatability Checker checks for compatibility. It’s basically missing the context and the context prevents the issue from occurring and flagging it incorrectly as a result.
In other words, these “issues” are false positive and safe to ignore. We’re not too sure why you’re unable to use PHP 7, but it’s not due to the SiteOrigin Widgets Bundle. We actively use PHP 7 during development so we can assure you – there are no issues with PHP 7.