Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ninja-fo.../includes/AJAX/Controll...
File: JSError.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
class NF_AJAX_Controllers_JSError
[2] Fix | Delete
{
[3] Fix | Delete
public function __construct()
[4] Fix | Delete
{
[5] Fix | Delete
// Ajax calls are handled by 'log_error' in this file
[6] Fix | Delete
add_action( 'wp_ajax_nf_log_js_error', array( $this, 'log_error' ) );
[7] Fix | Delete
add_action( 'wp_ajax_nopriv_nf_log_js_error', array( $this, 'log_error' ) );
[8] Fix | Delete
}
[9] Fix | Delete
[10] Fix | Delete
public function log_error()
[11] Fix | Delete
{
[12] Fix | Delete
check_ajax_referer( 'ninja_forms_display_nonce', 'security' );
[13] Fix | Delete
$message = esc_html( stripslashes( $_REQUEST[ 'message' ] ) );
[14] Fix | Delete
$url = esc_html( stripslashes( $_REQUEST[ 'url' ] ) );
[15] Fix | Delete
$lineNumber = esc_html( stripslashes( $_REQUEST[ 'lineNumber' ] ) );
[16] Fix | Delete
[17] Fix | Delete
Ninja_Forms()->logger()->emergency( $message . ' in ' . $url . ' on line ' . $lineNumber );
[18] Fix | Delete
[19] Fix | Delete
die( 1 );
[20] Fix | Delete
}
[21] Fix | Delete
}
[22] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function