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/wp-conte.../plugins/wp-super.../partials
File: debug.php
<div class="wpsc-settings-inner">
[0] Fix | Delete
<?php
[1] Fix | Delete
extract( wpsc_update_debug_settings() ); // $wp_super_cache_debug, $wp_cache_debug_log, $wp_cache_debug_ip, $wp_super_cache_comments, $wp_super_cache_front_page_check, $wp_super_cache_front_page_clear, $wp_super_cache_front_page_text, $wp_super_cache_front_page_notification, $wp_super_cache_advanced_debug, $wp_cache_debug_username
[2] Fix | Delete
$admin_url = admin_url( 'options-general.php?page=wpsupercache' );
[3] Fix | Delete
[4] Fix | Delete
echo '<a name="debug"></a>';
[5] Fix | Delete
echo '<fieldset class="options">';
[6] Fix | Delete
echo '<div class="wpsc-card">';
[7] Fix | Delete
echo '<p>' . __( 'Fix problems with the plugin by debugging it here. It will log to a file in your cache directory.', 'wp-super-cache' ) . '</p>';
[8] Fix | Delete
// $wp_cache_debug_log is declared when this file is included.
[9] Fix | Delete
// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
[10] Fix | Delete
if ( ! isset( $wp_cache_debug_log ) || $wp_cache_debug_log == '' ) {
[11] Fix | Delete
extract( wpsc_create_debug_log() ); // $wp_cache_debug_log, $wp_cache_debug_username
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
// $cache_path and $wp_cache_debug_log is declared when this file is included.
[15] Fix | Delete
// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
[16] Fix | Delete
$log_file_link = "<a href='" . home_url( str_replace( get_home_path(), '', "{$cache_path}view_{$wp_cache_debug_log}?wp-admin=1&wp-json=1&filter=" ) ) . "'>$wp_cache_debug_log</a>";
[17] Fix | Delete
[18] Fix | Delete
if ( $wp_super_cache_debug == 1 ) {
[19] Fix | Delete
echo "<p>" . sprintf( __( 'Currently logging to: %s', 'wp-super-cache' ), $log_file_link ) . "</p>";
[20] Fix | Delete
} else {
[21] Fix | Delete
echo "<p>" . sprintf( __( 'Last Logged to: %s', 'wp-super-cache' ), $log_file_link ) . "</p>";
[22] Fix | Delete
}
[23] Fix | Delete
echo "<p>" . sprintf( __( 'Username/Password: %s', 'wp-super-cache' ), $wp_cache_debug_username ) . "</p>";
[24] Fix | Delete
[25] Fix | Delete
echo '<form name="wpsc_delete" action="' . esc_url_raw( add_query_arg( 'tab', 'debug', $admin_url ) ) . '" method="post">';
[26] Fix | Delete
wp_nonce_field('wp-cache');
[27] Fix | Delete
echo "<input type='hidden' name='wpsc_delete_log' value='1' />";
[28] Fix | Delete
submit_button( __( 'Delete', 'wp-super-cache' ), 'delete', 'wpsc_delete_log_form', false );
[29] Fix | Delete
echo "</form>";
[30] Fix | Delete
[31] Fix | Delete
echo '<form name="wpsc_delete" action="' . esc_url_raw( add_query_arg( 'tab', 'debug', $admin_url ) ) . '" method="post">';
[32] Fix | Delete
if ( ! isset( $wp_super_cache_debug ) || $wp_super_cache_debug == 0 ) {
[33] Fix | Delete
$debug_status_message = __( 'Enable Logging', 'wp-super-cache' );
[34] Fix | Delete
$not_status = 1;
[35] Fix | Delete
} else {
[36] Fix | Delete
$debug_status_message = __( 'Disable Logging', 'wp-super-cache' );
[37] Fix | Delete
$not_status = 0;
[38] Fix | Delete
}
[39] Fix | Delete
echo "<input type='hidden' name='wp_super_cache_debug' value='" . $not_status . "' />";
[40] Fix | Delete
wp_nonce_field('wp-cache');
[41] Fix | Delete
submit_button( $debug_status_message, 'primary', 'wpsc_log_status', true );
[42] Fix | Delete
echo "</form>";
[43] Fix | Delete
echo '</div>';
[44] Fix | Delete
[45] Fix | Delete
echo '<div class="wpsc-card">';
[46] Fix | Delete
echo '<form name="wp_cache_debug" action="' . esc_url_raw( add_query_arg( 'tab', 'debug', $admin_url ) ) . '" method="post">';
[47] Fix | Delete
echo "<input type='hidden' name='wp_cache_debug' value='1' /><br />";
[48] Fix | Delete
echo "<table class='form-table'>";
[49] Fix | Delete
echo "<tr><th>" . __( 'IP Address', 'wp-super-cache' ) . "</th><td> <input type='text' size='20' name='wp_cache_debug_ip' value='{$wp_cache_debug_ip}' /> " . sprintf( __( '(only log requests from this IP address. Your IP is %s)', 'wp-super-cache' ), $_SERVER[ 'REMOTE_ADDR' ] ) . "</td></tr>";
[50] Fix | Delete
echo "<tr><th valign='top'>" . __( 'Cache Status Messages', 'wp-super-cache' ) . "</th><td><input type='checkbox' name='wp_super_cache_comments' value='1' " . checked( 1, $wp_super_cache_comments, false ) . " /> " . __( 'enabled', 'wp-super-cache' ) . "<br />";
[51] Fix | Delete
echo __( 'Display comments at the end of every page like this:', 'wp-super-cache' ) . "<br />";
[52] Fix | Delete
echo "<pre>&lt;!-- Dynamic page generated in 0.450 seconds. -->
[53] Fix | Delete
&lt;!-- Cached page generated by WP-Super-Cache on " . date( "Y-m-d H:i:s", time() ) . " -->
[54] Fix | Delete
&lt;!-- super cache --></pre></td></tr>";
[55] Fix | Delete
echo "</table>\n";
[56] Fix | Delete
if ( isset( $wp_super_cache_advanced_debug ) ) {
[57] Fix | Delete
echo "<h5>" . __( 'Advanced', 'wp-super-cache' ) . "</h5><p>" . __( 'In very rare cases two problems may arise on some blogs:<ol><li> The front page may start downloading as a zip file.</li><li> The wrong page is occasionally cached as the front page if your blog uses a static front page and the permalink structure is <em>/%category%/%postname%/</em>.</li></ol>', 'wp-super-cache' ) . '</p>';
[58] Fix | Delete
echo "<p>" . __( 'I&#8217;m 99% certain that they aren&#8217;t bugs in WP Super Cache and they only happen in very rare cases but you can run a simple check once every 5 minutes to verify that your site is ok if you&#8217;re worried. You will be emailed if there is a problem.', 'wp-super-cache' ) . "</p>";
[59] Fix | Delete
echo "<table class='form-table'>";
[60] Fix | Delete
echo "<tr><td valign='top' colspan='2'><input type='checkbox' name='wp_super_cache_front_page_check' value='1' " . checked( 1, $wp_super_cache_front_page_check, false ) . " /> " . __( 'Check front page every 5 minutes.', 'wp-super-cache' ) . "</td></tr>";
[61] Fix | Delete
echo "<tr><td valign='top'>" . __( 'Front page text', 'wp-super-cache' ) . "</td><td> <input type='text' size='30' name='wp_super_cache_front_page_text' value='{$wp_super_cache_front_page_text}' /> (" . __( 'Text to search for on your front page. If this text is missing, the cache will be cleared. Leave blank to disable.', 'wp-super-cache' ) . ")</td></tr>";
[62] Fix | Delete
echo "<tr><td valign='top' colspan='2'><input type='checkbox' name='wp_super_cache_front_page_clear' value='1' " . checked( 1, $wp_super_cache_front_page_clear, false ) . " /> " . __( 'Clear cache on error.', 'wp-super-cache' ) . "</td></tr>";
[63] Fix | Delete
echo "<tr><td valign='top' colspan='2'><input type='checkbox' name='wp_super_cache_front_page_notification' value='1' " . checked( 1, $wp_super_cache_front_page_notification, false ) . " /> " . __( 'Email the blog admin when checks are made. (useful for testing)', 'wp-super-cache' ) . "</td></tr>";
[64] Fix | Delete
[65] Fix | Delete
echo "</table>\n";
[66] Fix | Delete
}
[67] Fix | Delete
echo '<div class="submit"><input class="button-primary" type="submit" ' . SUBMITDISABLED . 'value="' . __( 'Save Settings', 'wp-super-cache' ) . '" /></div>';
[68] Fix | Delete
wp_nonce_field('wp-cache');
[69] Fix | Delete
echo "</form>\n";
[70] Fix | Delete
echo '</div>';
[71] Fix | Delete
echo '</fieldset>';
[72] Fix | Delete
echo '</div>';
[73] Fix | Delete
[74] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function