Compatibility with PHP 7

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31590
    Macarena
    Participant

      Hello, I have to update to PHP 7 and I ran a test to see if there would be any issues. The report says the following:

      …plugins/wppizza/templates/wppizza-order-email-html.php
      ————————————————————————————————————————————————
      FOUND 8 ERRORS AFFECTING 8 LINES
      ————————————————————————————————————————————————
      42 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: ‘0x5’
      167 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: ‘0x5’
      171 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: ‘0x5’
      176 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: ‘0x5’
      181 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: ‘0x5’
      186 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: ‘0x5’
      190 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: ‘0x5’
      195 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: ‘0x5’
      ————————————————————————————————————————————————

      …plugins/wppizza/inc/common.helper.functions.inc.php
      ——————————————————————————————————————————
      FOUND 7 ERRORS AFFECTING 7 LINES
      ——————————————————————————————————————————
      115 | ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
      255 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      257 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      261 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      264 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      265 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      268 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      ——————————————————————————————————————————

      …plugins/wppizza/inc/admin.system-info.php
      ——————————————————————————————————————–
      FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
      ——————————————————————————————————————–
      61 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
      ——————————————————————————————————————–

      What are we supposed to do? Please help. Thanks!

      #31591
      Olly
      Admin & Mod

        these are all completely false positives (and some of them in functions that are not even in use anywhere or from fallbacks if the server setup has not been updated )
        in any event this is also from the old wppizza v2.x

        #31592
        Macarena
        Participant

          Hi Olly,

          Good to know! I have WPPizza version 2.16.11.23 and it has not asked for an update. How do I update to 3.0?

          #31593
          Olly
          Admin & Mod

            >I have WPPizza version 2.16.11.23 and it has not asked for an update
            then you might have something set somewhere that does block updates.

            However, i STRONGLY suggest you do NOT now simply enable updates (as you might automatically be updated to 3.0.28 – or whatever the latest one currently is)

            you MUST read this http://docs.wp-pizza.com/getting-started/?section=upgrade-v2-x-v3-x

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Compatibility with PHP 7’ is closed to new replies.