Hi, sorry here’s the edited section of class.mashsharer.php I got the error on. With more testing, I found it’s the Twitter button that’s causing the problem which was generated from here:
https://about.twitter.com/resources/buttons#tweet
if ($f)
$return = '
<div style="line-height:10px;"> </div>
<div class="mashsharer-box">
<div class="mashsharer-count"><font style="padding: ' . $padding . 'px ' . $padding . 'px ' . $padding . 'px ' . $padding . 'px; font-size: ' . $fontsize . 'px; font-weight:' . $fontweight . '; font-family: ' . $fontfamily . '; color: ' . $fontcolor . '; background-color: ' . $bgcolor . '; border: ' . $bordercolor . ' ' . $bordertype . ' ' . $borderwidth . 'px">' . $totalshares . '</font>
<br><span class="mashsharer-sharetext">SHARES</span>
</div>
<div class="share">
<div class="sharefb">
<div class="fb-like" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
</div>
<div class="sharetw">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="twitter">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<div class="likeus">LIKE US</div>
<div class="likefb">
<div class="fb-like" data-href="https://www.facebook.com" data-layout="button" data-action="like" data-show-faces="false" data-share="false"></div>
</div>
</div>'
. $addons .
'</div>
<div style="clear:both;:"></div>