Home>Support>PHP 7 compatibility

PHP 7 compatibility

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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,

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 8 months ago Alex S
    Hi, I Work Here

    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.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More