PDA

View Full Version : How to remove unexpected text from Google cache


webmastersun
05-14-2014, 01:23 AM
Hello,

I'm running a SEO forum (http://www.webmastersun.com) http://www.webmastersun.com

My google cache text is ok but only 1 thing(error code) showed on my Google cache web page, it makes me annoy with this

on the top, it showed

'); var sidebar_align = 'right'; var content_container_margin = parseInt('320px'); var sidebar_width = parseInt('300px'); //-->

you can see full in this link (http://webcache.googleusercontent.com/search?q=cache:http://www.webmastersun.com&strip=1)

and I report that it also showed the same in old Internet explorer old versions (in web browser, not in google cache text)

If I remove this code or remove --> in vbulletin template, it will make error on forum sidebar or my forum layout. ( Note: code above is default from vbulletin template)

I saw some threads asked about that, but didn't give solutions for it.

Just want to make question here, hope I can have the best solution.

Thank you

tbworld
05-14-2014, 01:32 AM
You have JavaScript errors on that page.

webmastersun
05-14-2014, 02:34 AM
You have JavaScript errors on that page.
That code came from vbulletin sidebar template, I don't know what purpose it used for ?

tbworld
05-14-2014, 02:54 AM
Start with fixing your Javascript error on your megamenu. :)

webmastersun
05-14-2014, 04:29 AM
Start with fixing your Javascript error on your megamenu. :)
what is error on mega menu?
can you show the details or taking a screenshot about error?

tbworld
05-14-2014, 07:22 AM
Use the development mode (Console) of your browser, all JavaScript errors will be reported there. :)

Zachery
05-14-2014, 09:07 AM
Uncaught TypeError: undefined is not a function (index):112
Attr.specified is deprecated. Its value is always true.
Fire vB_XHTML_Ready vbulletin-core.js?v=420:11
Fetch Cookie :: vbulletin_collapse (null) vbulletin-core.js?v=420:11
Invalid App Id: Must be a number or numeric string representing the application id. all.js:53
FB.getLoginStatus() called before calling FB.init(). all.js:53
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1400006231.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) follow_button.1400006231.html:1
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://www.stumbleupon.com (http://www.stumbleupon.com/)') does not match the recipient window's origin ('http://www.webmastersun.com (http://www.webmastersun.com/)').



http://validator.w3.org/check?uri=http%3A%2F%2Fwww.webmastersun.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

From your normal page:


<script type="text/javascript">
<!--
document.write('<script type="text/javascript" src="' + yuipath + '/animation/animation-min.js?v=420"></script>');
var sidebar_align = 'right';
var content_container_margin = parseInt('320px');
var sidebar_width = parseInt('300px');
//-->
</script>


From the google source


');
var sidebar_align = 'right';
var content_container_margin = parseInt('320px');
var sidebar_width = parseInt('300px');
//-->

Its chopping it off, there isn't much we can do about that.

webmastersun
05-16-2014, 08:08 AM
Thanks Zachery, I will fix errors on code when checking with validator.w3.org
Still finding ways to remove this code without getting errors.
');
var sidebar_align = 'right';
var content_container_margin = parseInt('320px');
var sidebar_width = parseInt('300px');
//-->

romaine
10-25-2015, 01:00 AM
I am getting the same problem when using vB4xx.

If I delete these codes then seem the right sidebar will not work. Can any one show tips to remove codes without any problems?