• Resolved kradblatt

    (@kradblatt)


    Hi folks.

    My provider switched to php Version 7.2 and my site went totally down.
    Switching back to 7.0 brought it back on.
    I installed “PHP Compatibility Checker” and it gave me a red warning on ip geo block (see below).

    Question: Do I have to uninstall it?
    Are there any updates coming?
    I’m not a programmer, just user ??

    greetings from Germany,
    Marcus

    —-
    FILE: /is/*mysite*/plugins/ip-geo-block/includes/random_compat/byte_safe_strings.php
    —————————————————————————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    —————————————————————————————————————————–
    33 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    87 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    —————————————————————————————————————————–

    FILE: /is/*mysite*/plugins/ip-geo-block/includes/random_compat/random_bytes_mcrypt.php
    ——————————————————————————————————————————————————
    FOUND 3 ERRORS AFFECTING 1 LINE
    ——————————————————————————————————————————————————
    60 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
    60 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
    60 | ERROR | The constant “MCRYPT_DEV_URANDOM” is deprecated since PHP 7.1 and removed since PHP 7.2
    ————————–

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi @kradblatt,

    I’m sorry about your situation. But all the warnings and errors you reported here are related to the fallback functions for PHP 5.x.

    PHP 5.x support for random_bytes() and random_int()

    Those will not be executed on PHP 7.0+. And I have confirmed that this plugin will work with PHP 5.2 through 7.2.

    So you don’t have to uninstall this plugin.

    WP core also includes the same functions (but a little bit old). So I will adopt them instead of new ones in this plugin to prevent users from worrying about.

    Thanks for your reporting!

    • This reply was modified 6 years, 1 month ago by tokkonopapa.
Viewing 1 replies (of 1 total)
  • The topic ‘Site crashes on php 7.2’ is closed to new replies.