Hi ProAvia
<li><?php
foreach($news as $item) {
}
$hashtag_string = str_replace(['!', '\\', '/', '*', ' '], '',$item->subject); // Line 17 in the file
$lowercase = strtolower($hashtag_string);
echo '<a href="'.SITE_URL.'/index.php/PopUpNews/popupnewsitem/'.$item->id.'"><font color="white">#'.$lowercase.'</font></a>';
$posted_month = date(m, $item->postdate);
$current_month = date('m');
if($posted_month == $current_month)
{
echo '<span class="pull-right">
<i class="material-icons">trending_up</i>
</span>';
}
else
{
'';
}
?></li>
this is the code and I posted the function and highlighted the line 17.
it works fine locally but not live.