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.../blocks
File: ninja-forms-blocks.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/** IMPORTANT: This file MUST be PHP 5.2 compatible */
[2] Fix | Delete
[3] Fix | Delete
// Check for the autoloader - common development issue.
[4] Fix | Delete
if(file_exists($autoloader = dirname(__DIR__) . '/vendor/autoload.php')) {
[5] Fix | Delete
require $autoloader;
[6] Fix | Delete
} else {
[7] Fix | Delete
add_action( 'admin_notices', 'ninja_forms_blocks_autoloader_notice' );
[8] Fix | Delete
function ninja_forms_blocks_autoloader_notice() {
[9] Fix | Delete
if( defined('WP_DEBUG') && WP_DEBUG ){
[10] Fix | Delete
echo sprintf(
[11] Fix | Delete
'<div class="notice notice-error"><p>%s</p></div>',
[12] Fix | Delete
esc_html__( 'Autoloader not found for Ninja Forms Blocks - try running <code>composer install</code>', 'ninja-forms' )
[13] Fix | Delete
);
[14] Fix | Delete
} else {
[15] Fix | Delete
echo sprintf(
[16] Fix | Delete
'<div class="notice notice-error"><p>%s</p></div>',
[17] Fix | Delete
esc_html__( 'Ninja Forms Blocks was unable to load.', 'ninja-forms' )
[18] Fix | Delete
);
[19] Fix | Delete
}
[20] Fix | Delete
}
[21] Fix | Delete
return;
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
include_once plugin_dir_path(__FILE__) . '/bootstrap.php';
[25] Fix | Delete
[26] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function