Posted - 10/02/2019 : 07:27:42
We are troubleshooting the high CPU usage we're having and our host said that proddetails.php is the largest consumption of resources. We assume this is because it is the page that all customers visit, however, while inspecting we did find a javascript error of "Failed to load resource: the server responded with a status of 404 ()" for the Google+ button.
I believe the button and it's APIs were discontinued in March (2019).
The code I am referencing is in /inc/incproddetail.php
[code]elseif($layoutoption=='google'){ print '<div class="socialmediabutton socialgoogle">'; print '<script src="https://apis.google.com/js/platform.js" async defer>' . ($storelang!='en'?'lang:"'.$storelang.'" ':'') . '</script>'; if(@$GLOBALS['socialbuttongoogle']!='') print str_replace('%pageurl%',$thisurl,@$GLOBALS['socialbuttongoogle']); else print '<div class="g-plusone" data-href="' . $thisurl . '"></div>'; print '</div>'; }[/code]
Should we remove this block?
Thank you, Lynne
|