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/custom-t.../template...
File: error.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Smash Balloon Custom Twitter Feeds Error Template
[2] Fix | Delete
*
[3] Fix | Delete
* @version 2.0 Custom Twitter Feeds by Smash Balloon
[4] Fix | Delete
*
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
// Don't load directly
[8] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[9] Fix | Delete
die( '-1' );
[10] Fix | Delete
}
[11] Fix | Delete
?>
[12] Fix | Delete
<div id="ctf" class="ctf" data-ctfshortcode="<?php echo $this->getShortCodeJSON() ?>">
[13] Fix | Delete
<div class="ctf-error">
[14] Fix | Delete
<div class="ctf-error-user"></div>
[15] Fix | Delete
<?php if ( current_user_can( 'manage_options' ) ): ?>
[16] Fix | Delete
<div class="ctf-error-admin">
[17] Fix | Delete
<?php if ( ! empty( $this->api_obj->api_error_no ) ): ?>
[18] Fix | Delete
<p>Unable to load Tweets</p>
[19] Fix | Delete
<a class="twitter-share-button" href="https://twitter.com/share" data-size="large" data-url="<?php echo get_the_permalink() ?>" data-text="Check out this website"></a>
[20] Fix | Delete
<?php if ( !empty( $this->feed_options['screenname'] ) ) : ?>
[21] Fix | Delete
<a class="twitter-follow-button" href="https://twitter.com/share" data-size="large" data-url="https://twitter.com/<?php echo $this->feed_options['screenname'] ?>" data-dnt="true">Follow</a>
[22] Fix | Delete
<?php endif; ?>
[23] Fix | Delete
<p><b>This message is only visible to admins:</b><br />
[24] Fix | Delete
An error has occurred with your feed.<br />
[25] Fix | Delete
<?php if ( $this->missing_credentials ): ?>
[26] Fix | Delete
There is a problem with your access token, access token secret, consumer token, or consumer secret<br />
[27] Fix | Delete
<?php endif; ?>
[28] Fix | Delete
<?php if ( isset( $this->errors['error_message'] ) ): ?>
[29] Fix | Delete
<?php echo $this->errors['error_message']; ?> <br />
[30] Fix | Delete
<?php endif; ?>
[31] Fix | Delete
The error response from the Twitter API is the following:<br />
[32] Fix | Delete
<code>Error number: <?php echo $this->api_obj->api_error_no ?> <br />
[33] Fix | Delete
Message: <?php echo $this->api_obj->api_error_message ?> </code>
[34] Fix | Delete
<a href="https://smashballoon.com/custom-twitter-feeds/docs/errors/?utm_campaign=twitter-free&utm_source=frontend&utm_medium=errormessage" target="_blank" rel="noopener noreferrer">Click here to troubleshoot</a></p>
[35] Fix | Delete
<?php endif; ?>
[36] Fix | Delete
</div>
[37] Fix | Delete
<?php endif; ?>
[38] Fix | Delete
</div>
[39] Fix | Delete
</div>
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function