Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 WordPress for Ecommerce Templates
 apis.google.com js error
Author « Topic »  

stonewx
Starting Member

31 Posts

Pre-sales questions only
(More Details...)

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

Vince
Administrator

42466 Posts

Posted - 10/02/2019 :  08:05:14  
Hi Lynne
I understand that Google+ is shutting down so it wouldn't hurt to remove that anyway. Just remove it from your list of social media buttons. For instance...
$GLOBALS['socialmediabuttons']='facebook,linkedin,twitter,askaquestion';


Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000