• Resolved ADHDassassin

    (@adhdassassin)


    I was attempting to upgrade to php 7.0 on my server and but siteground does a check of all plugins before the upgrade to verify they will work correctly on that version of php.

    I received this error message in return:

    wp-content/plugins/the-seo-framework-extension-manager/inc/classes/schemapacker.class.php
    ——————————————————————————————————————————————–
    FOUND 2 ERRORS AFFECTING 2 LINES
    ——————————————————————————————————————————————–
    181 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0

    196 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
    ——————————————————————————————————————————————–

    I’m not sure if it’s just an issue for me or not.

    Any guidance or a fix for this would be awesome.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, it shouldn’t be an issue. TSF + TSFEM are being developed with both PHP 7.x and 5.x in mind. Moving forwards, TSF focuses on better and faster PHP 7.x. As of now, I’m using TSFEM only on 7.x installations with no issues at all.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi @adhdassassin,

    This error is a false positive and should be ignored.

    The plugin checker doesn’t know the number that’s going to be at the “erroneous lines”, as no real evaluation/execution takes place.
    The variable input integer will naturally always be bigger than the negative subtraction; therefore, a negative evaluation can never yield.

    In any case, I’ve contacted Siteground regarding this issue and I’ll see if this check can be prevented from showing up. I’m not certain if the check prevents you from activating the plugin; so, more information will follow soon.

    I’m marking this topic as resolved in the meantime. Have a great weekend ??

    Plugin Author Sybre Waaijer

    (@cybr)

    I’ve received word back from SiteGround, and it boils down to that I’m going to slightly adjust the code so their checker won’t pick up on it.

    I took note that the checker won’t prevent the plugin from installing nor will it prevent you from upgrading to PHP7. It’s merely cautionary.

    If you wish to help SiteGround resolve this issue for other plugins, then a SiteGround customer who’s experiencing this needs to forward this to their support team. Which is odd, because who knows better what the code does than the developer?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 7.0 incompatible’ is closed to new replies.