• Resolved r3p4

    (@r3p4)


    When i tried to use PHP 7.1 my website is down.
    Here the report from the php compatibiliy plugin :
    FILE: /home/bleusingqj/www/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php
    ————————————————————————————————————————————–
    FOUND 4 ERRORS AND 4 WARNINGS AFFECTING 6 LINES
    ————————————————————————————————————————————–
    293 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; Use random_bytes() or OpenSSL instead
    293 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    293 | WARNING | The constant “MCRYPT_DEV_URANDOM” is deprecated since PHP 7.1
    347 | WARNING | INI directive ‘magic_quotes_sybase’ is deprecated since PHP 5.3 and removed since PHP 5.4
    842 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
    843 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
    848 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
    851 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
    ————————————————————————————————————————————–

    FILE: /home/bleusingqj/www/wp-content/plugins/wordfence/lib/wfConfig.php
    ————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————
    651 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ————————————————————————————————————
    Everything goes back to normal when I come back to php 7.0
    Is there a solution
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Wow that does not look good. I’m using PHP 7.0.27, I do tend to upgrade when new PHP available, but I always run the compatibility checker. Will do so and return here with results. Thanks for the heads up.

    I tried to scan Wordfence with the PHP Compatibility Checker set to scan for PHP 7.1 (from WPengine) and it skips scanning Wordfence because it’s “too large.” (Any tips on how to get the scan to work?)

    But, it appears Compatibility Checker does generate false positives, perhaps try a test site using Wordfence and PHP 7.1, meanwhile it’ll be interesting to see what the Wordfence folks have to say about this.

    Out of curiosity, having been burned before by plugin bloat, I checked sizes of Wordfence plugin folders on my systems:

    Wordfence 6 folder is 7.62 MB
    Wordfence 7 folder is 8.54 MB

    Disappointing, as in, what in the world are they doing that needs 13% bloat, perhaps all those additional tabs and the whitespace?

    MTN

    • This reply was modified 7 years, 1 month ago by mountainguy2.
    wfalaa

    (@wfalaa)

    Hi,
    All of these warnings are false positive, these lines referenced are being used for backwards compatibility, you don’t have to worry about that.

    Check these similar posts. (1, 2)

    Thanks.

    wfalaa

    (@wfalaa)

    Posted my reply twice by mistake!

    Thread Starter r3p4

    (@r3p4)

    Hi,
    I’m sorry but when i try to update PHP (7.1) my website is down with the following error :
    Not Implemented
    GET to / not supported.
    Additionally, a 501 Not Implemented error was encountered while trying to use an ErrorDocument to handle the request.
    Everything goes back to normal when I come back to php 7.0
    Thanks
    Rémi

    wfalaa

    (@wfalaa)

    Hi Rémi
    I’m not sure I can understand how this error is related to Wordfence? I would recommend reporting this issue to your hosting provider and let me know if anything related to Wordfence has been detected.

    Thanks.

    Thread Starter r3p4

    (@r3p4)

    My apologies wfalaa, the problem was caming from my hosting provider. Wordfence works fine with PHP 7.1 and 7.2
    Best regards
    Remi

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Incompatibility with PHP 7.1’ is closed to new replies.