• Hi,

    I did a PHP 7.1 compatibility test and the following warnung was found. Can you fix it?

    FILE: /wp-content/plugins/better-search-replace/includes/class-bsr-compatibility.php
    ——————————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————-
    54 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ——————————————————————————————————————-

    Alex

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m running the plugin using PHP 7.1.2 without issues -at least, it seems like that-. However, using PHP 7.2 over the same installation with the same search-replace query it throws that error processing the “wp_options” (2,52MB) table:

    PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /{server_folder}/wp-content/plugins/better-search-replace/includes/class-bsr-db.php on line 342

    Hope @deliciousbrains could check this.

    I ran the PHP version compatibility checker and got the same message. So I’m trying to figure out if this is a real problem or not.

    First thing, notice it is a Warning and not an Error. So that’s a good start.

    Here is the line of code that the checker flagged:

    $return .= ‘Safe Mode: ‘ . ( ini_get( ‘safe_mode’ ) ? ‘Enabled’ : ‘Disabled’ . “\n” );

    According to the warning message, the ‘safe_mode’ feature was deprecated in PHP 5.3 and completely REMOVED as of PHP 5.4…

    So this does not appear to be a new issue. In fact, it would still seem to be the case when running this same plugin under PHP 5.5 or PHP 5.6.

    In other words, not being new behavior for any migration to PHP 7, it doesn’t really seem to me to be a true problem.

    Disclaimer: I have no connection to the plugin or its author(s). Hope this helps nevertheless.

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