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/wordfenc.../lib
File: menu_install.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
$errorMessage = null;
[2] Fix | Delete
if (!$shouldShowOnboarding) {
[3] Fix | Delete
$errorMessage = __('Wordfence is already installed on this site. If you need to replace the current license, you may do so by visiting the "All Options" page of the Wordfence menu.', 'wordfence');
[4] Fix | Delete
}
[5] Fix | Delete
elseif ($invalidLink) {
[6] Fix | Delete
if ($payloadException instanceof wfWebsiteEphemeralPayloadRateLimitedException) {
[7] Fix | Delete
$errorMessage = __('Too many installation requests have been made from your IP address. Please try again later.', 'wordfence');
[8] Fix | Delete
}
[9] Fix | Delete
elseif ($payloadException instanceof wfWebsiteEphemeralPayloadExpiredException) {
[10] Fix | Delete
$errorMessage = __('The link you used to access this page has expired, has already been used, or is otherwise invalid.', 'wordfence');
[11] Fix | Delete
}
[12] Fix | Delete
else {
[13] Fix | Delete
$errorMessage = __('An error occurred while retrieving your license information from the Wordfence servers. Please ensure that your server can reach www.wordfence.com on port 443.', 'wordfence');
[14] Fix | Delete
}
[15] Fix | Delete
}
[16] Fix | Delete
?>
[17] Fix | Delete
<div class="wrap wordfence" id="wf-install">
[18] Fix | Delete
<div class="wf-container-fluid">
[19] Fix | Delete
<div class="wf-row">
[20] Fix | Delete
<div class="wf-col-xs-12">
[21] Fix | Delete
<div class="wp-header-end"></div>
[22] Fix | Delete
<?php
[23] Fix | Delete
echo wfView::create('common/section-title', array(
[24] Fix | Delete
'title' => __('Install Wordfence', 'wordfence'),
[25] Fix | Delete
'showIcon' => true,
[26] Fix | Delete
))->render();
[27] Fix | Delete
?>
[28] Fix | Delete
</div>
[29] Fix | Delete
</div>
[30] Fix | Delete
<div class="wf-row">
[31] Fix | Delete
<div class="wf-col-xs-12">
[32] Fix | Delete
<?php if ($errorMessage): ?>
[33] Fix | Delete
<p class="wf-onboarding-error"><?php echo esc_html($errorMessage) ?></p>
[34] Fix | Delete
<?php endif ?>
[35] Fix | Delete
<?php if ($shouldShowOnboarding): ?>
[36] Fix | Delete
<?php echo wfView::create('onboarding/registration-prompt', array('attempt' => 1, 'existing' => true, 'email' => $email, 'license' => $license)) ?>
[37] Fix | Delete
<?php endif ?>
[38] Fix | Delete
</div>
[39] Fix | Delete
</div>
[40] Fix | Delete
</div>
[41] Fix | Delete
</div>
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function