{"id":20207,"date":"2016-02-17T03:01:08","date_gmt":"2016-02-16T17:01:08","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=20207"},"modified":"2019-11-13T11:56:31","modified_gmt":"2019-11-13T01:56:31","slug":"google-crawl-errors-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-crawl-errors-primer-tutorial\/","title":{"rendered":"Google Crawl Errors Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/broken_links-111of.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Google Crawl Errors Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/broken_links.jpg\" title=\"Google Crawl Errors Primer Tutorial\"  style=\"float:left;\" id='giow10' onmouseover=\" this.src=this.src.replace('-111of.j','-112of.xj').replace('-112of.j','-113of.xj').replace('-113of.j','-114of.xj').replace('-114of.j','-115of.xj').replace('-115of.j','-116of.xj').replace('-116of.j','-112of.xj').replace('.xj','.j');   \" \/><\/a><p class=\"wp-caption-text\">Google Crawl Errors Primer Tutorial<\/p><\/div>\n<p>When you are a webmaster (of a web domain, such as <a target=_blank title='RJM Programming landing page' href='http:\/\/www.rjmprogramming.com.au'>www.rjmprogramming.com.au<\/a>) <a target=_blank title='Google Webmasters information from Google' href='https:\/\/www.google.com.au\/intl\/en\/webmasters\/'>registered with Google<\/a> you can receive (Google) console notifications from unusual events.  Thanks for the heads up, Google.  This is like a sanity check, independently, for webmasters, registering websites at Google.<\/p>\n<p>Lately, we&#8217;ve been noticed a bit, we guess, because of the introduction of <i>index.htm<\/i> into the picture (that we talked about last with <a target=_blank tit;le='Landing Page Mobile Phone Crontab Curl Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/landing-page-mobile-phone-crontab-curl-tutorial\/'>Landing Page Mobile Phone Crontab Curl Tutorial<\/a>) &#8230; you&#8217;ll see it middle top of today&#8217;s tutorial picture &#8230; saying cheese &#8230; sorry, the dogs <a target=_blank title='The Pups' href='https:\/\/www.rjmprogramming.com.au\/Android\/NalaLuna.jpg'><img title='The Pups' src='https:\/\/www.rjmprogramming.com.au\/Android\/NalaLuna.jpg' style='width:60px;'><\/img><\/a> got involved in today&#8217;s blog posting &#8230; they&#8217;re sooooooooooo immature &#8230; unlike the humans, of course!?<\/p>\n<p>Anyway, mistakes of the past hand crafting blog posting have come back to bite, and the Google <a target=_blank title='Google Crawl Error information from Google' href='https:\/\/support.google.com\/webmasters\/answer\/35120?hl=en'>crawl error<\/a> count for <a target=_blank title='HTTP 404 error information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/HTTP_404'>error 404<\/a> has gone up, for www.rjmprogramming.com.au, quite a bit lately.  Another term for this is &#8220;broken links&#8221;.<\/p>\n<p>No excuse, but when hand crafting blog posts, care is needed with HTML <i>a<\/i> links, pretty obviously, regarding &#8230;<\/p>\n<ul>\n<li>spelling mistakes<\/li>\n<li>copying and pasting (absolute) URLs (often from a search engine result set) and forgetting the <i>http:\/\/<\/i> or <i>https:\/\/<\/i> bit (which does not always appear with a copied URL from the search engine results, for instance) &#8230; which, if left out, as you can imagine, leads the web browser to want to search through your domain for that (what becomes &#8220;orphaned&#8221;) URL reference &#8230; we make this mistake quite a bit with Wikipedia and W3schools &#8230; sorry, guys<\/li>\n<li>for us, moving between WordPress blog URLs that are non-permalink pointing to the <a target=_blank title='WordPress permalinks' href='https:\/\/codex.wordpress.org\/Using_Permalinks'>permalink<\/a> ones and misspelling, or not properly working(\/mapping) out the permalink, or forgetting to change the blog posting title into its URL-part-of constituent (see also <a target=_blank title='WordPress Upgrade Links Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-upgrade-links-tutorial\/'>WordPress Upgrade Links Tutorial<\/a>), properly, in our heads (Nala??!!)<\/li>\n<\/ul>\n<p>Of course, all this should be checked with the WordPress (Blog Post) Preview button ahead of it going live, but, there you go. <font size=1>Nala????!!!!<\/font>  We&#8217;re fixing them gradually, as an ongoing issue.<\/p>\n<p>We&#8217;ve talked about broken links, and a programmable way to detect them, previously, with <a title='More Bookmarklet via Javascript Tutorial' href='#mbvjt'>More Bookmarklet via Javascript Tutorial<\/a> and WordPress plugins such as <a target=_blank title='Broken Link Checker' href='https:\/\/wordpress.org\/plugins\/broken-link-checker\/'>Broken Link Checker<\/a> could help with this issue, as well.<\/p>\n<p>And you&#8217;ll be pleased to know <i><font size=2>No puppy feelings were hurt in the production of this blog posting<\/font><font size=1> &#8230; it ended up being my fault.<\/font><\/i><\/p>\n<hr>\n<p id='mbvjt'>Previous relevant <a target=_blank title='More Bookmarklet via Javascript Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/more-bookmarklet-via-javascript-tutorial\/'>More Bookmarklet via Javascript Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/Bookmarklet\/BrokenLinks\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"More Bookmarklet via Javascript Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/Bookmarklet\/BrokenLinks\/Bookmarklet_BrokenLinks-4of.jpg\" title=\"More Bookmarklet via Javascript Tutorial\"  \/><\/a><p class=\"wp-caption-text\">More Bookmarklet via Javascript Tutorial<\/p><\/div>\n<p>\nHave you heard of Bookmarklets?<\/p>\n<p>Are you a person with a cluttered (thoughtfully placed, of course) desk?<\/p>\n<p>Yes?   Read on &#8230; even if not, <strike>&#8220;Go to Jail &#8230; Do Not Pass Go&#8221;<\/strike> (maybe you were impressed by that idea that the <a target=_blank title=\"Lord's Prayer was Once Etched on a Pinhead\" href='http:\/\/www.dailymail.co.uk\/news\/article-1252765\/The-man-carved-Lords-Prayer-head-pin.html'>Lord&#8217;s Prayer was Once Etched on a Pinhead<\/a>? &#8230; yes? &#8230; read on down below &#8230; are you here? &#8230; oops &#8230; c&#8217;est la vie &#8230; <span style=\"font-size:6px;\">read on<\/span>) &#8230; read on &#8230; why?<\/p>\n<p>This tutorial builds on <a target=_blank href='#mvjpt' title='Bookmarklet via Javascript Primer Tutorial'>Bookmarklet via Javascript Primer Tutorial<\/a> below.   For our tutorial we write a bookmarklet to check for Broken Links, something that could be very useful to run against the very common Links pages on websites today, so that you can check for those Broken Links that annoy the search engines so much and contribute to a lower SEO &#8220;score&#8221;.<\/p>\n<p><strong><em><br \/>\n&lt;script type=&#8221;text\/javascript&#8221;&gt;<br \/>\nfunction checkBrokenLink() {<br \/>\n var bWin,j,b=&#8221;,tl=40,dl=document.links;<br \/>\n for(j=0;j&lt;dl.length;j++){<br \/>\n  if(b.indexOf(dl[j].href)&lt;0){<br \/>\n   bWin=window.open(dl[j].href,&#8217;BW&#8217;+j,&#8217;top=&#8217;+tl+&#8217;,left=620,width=400,height=120,<br \/>\n              scrollbars=yes,menubar=no,titlebar=no,toolbar=no,status=no&#8217;);<br \/>\n   tl+=120;<br \/>\n   b+='&lt;tr style=&#8221;height:120&#8243;&gt;&lt;td&gt;&#8217;+dl[j].href+'&lt;\/td&gt;&lt;td&gt;&#8217;;<br \/>\n   b+=dl[j].target+'&lt;\/td&gt;&lt;td&gt;&#8217;+dl[j].id+'&lt;\/td&gt;&lt;td&gt;&#8217;;<br \/>\n   b+=dl[j].className+'&lt;\/td&gt;&lt;td&gt;&#8211;&gt;&lt;\/td&gt;&lt;\/tr&gt;&#8217;;<br \/>\n  }<br \/>\n }<br \/>\n if(b===&#8221;){<br \/>\n  alert(&#8216;No links&#8217;);<br \/>\n }else{<br \/>\n  bWin=window.open(&#8221;,&#8217;Links of &#8216;+document.title,&#8217;top=0,left=0,width=600,height=800,scrollbars=yes&#8217;);<br \/>\n  bWin.title=&#8217;Links of &#8216;+document.title;<br \/>\n  bWin.document.body.innerHTML='&lt;table border=1 cellpadding=5 cellspacing=0&gt;&lt;tr&gt;&lt;th&gt;Link of &#8216;;<br \/>\n  bWin.document.body.innerHTML+=document.title+'&lt;\/th&gt;&lt;th&gt;Target&lt;\/th&gt;&lt;th&gt;ID&lt;\/th&gt;&lt;&#8216;;<br \/>\n  bWin.document.body.innerHTML+=&#8217;th&gt;Class&lt;\/th&gt;&lt;th&gt;Broken?&lt;\/th&gt;&lt;\/tr&gt;&#8217;+b+'&lt;\/table&gt;&#8217;;<br \/>\n }<br \/>\n}<br \/>\n&lt;\/script&gt;<br \/>\n<\/strong><\/em><\/p>\n<p>To get some downloadable Javascript programming code for this bookmarklet please rename to <a target=_blank title='Broken Links bookmarklet Javascript code' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/Bookmarklet\/BrokenLinks\/BrokenLinks.js_GETME'>BrokenLinks.js<\/a> and copy its contents into the address of your Bookmarklet to try this yourself.<\/p>\n<p>Okay, if you have downloaded, take a look at how similar it is to code above.   So you just place javascript: in front of the Javascript code required to do something interesting, all squeezed together onto the one line (no pinheads please) &#8230; this is where the cluttered desk people may continue breathing easily but others may falter.<\/p>\n<p>Well, if you can place this sort of thing into a browser Bookmark then that is a Bookmarklet.   Remember the Javascript calculator rave in previous tutorials?<\/p>\n<p>Bear in mind we show Firefox in tutorial but all browsers have something similar, whether that be called Bookmarks or Favourites.   Our tutorial shows the Safari browser using this Bookmarklet.<\/p>\n<p>Regarding this Bookmarklet tutorial topic I really like <em>\u201cJavaScript &#038; Ajax\u201d<\/em> seventh edition by <em>Tom Negrino and Dori Smith<\/em>.<\/p>\n<p>Click <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/Bookmarklet\/BrokenLinks\/'>on picture above<\/a> to go to tutorial about Bookmarklets.<\/p>\n<p><strong><em>Did you know &#8230;<\/em><\/strong><br \/>\nJavaScript makes a great easy-access Calculator?<\/p>\n<p>Try typing the lines below into the address bar of your favourite browser:<\/p>\n<p>Javascript: eval(512 \/ 380);<br \/>\nJavascript: eval(512 * 380);<br \/>\nJavascript: eval(512 &#8211; 380);<br \/>\nJavascript: eval(512 + 380);<br \/>\nJavascript: eval(512 % 380);<\/p>\n<p>These days we spend so much time on the Internet it is a much quicker way to get to a calculator!\n<\/p>\n<hr \/>\n<p id=\"mvjpt\">Previous <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3789' title='Bookmarklet via Javascript Primer Tutorial'>Bookmarklet via Javascript Primer Tutorial<\/a> below &#8230; <\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/Bookmarklet\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Bookmarklet via Javascript Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/Bookmarklet\/Bookmarklet_Primer-4of.jpg\" title=\"Bookmarklet via Javascript Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Bookmarklet via Javascript Primer Tutorial<\/p><\/div>\n<p>\nHave you heard of Bookmarklets?<\/p>\n<p>Are you a person with a cluttered (thoughtfully placed, of course) desk?<\/p>\n<p>Yes?   Read on &#8230; even if not &#8230; read on &#8230; why?<\/p>\n<p><strong><em><br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221;&gt;<\/p>\n<p>while (&#8220;abracadabra&#8221; != prompt(&#8220;Guess the magic word?&#8221;).toLowerCase()) {<br \/>\n   alert(&#8220;Bad Luck&#8221;);<br \/>\n}<br \/>\ndocument.write(&#8220;&lt;html&gt;&lt;body&gt;&lt;p&gt;You win a cupee doll!&lt;\/body&gt;&lt;\/html&gt;&#8221;);<\/p>\n<p>&lt;\/script&gt;<br \/>\n&lt;a href=&#8217;#&#8217; onclick=&#8217;javascript: while (&#8220;abracadabra&#8221; != prompt(&#8220;Guess the magic word?&#8221;).toLowerCase()) { alert(&#8220;Bad Luck&#8221;); } document.write(&#8220;&lt;html&gt;&lt;body&gt;&lt;p&gt;You win a cupee doll!&lt;\/body&gt;&lt;\/html&gt;&#8221;);&#8217;&gt;Click me for another (confirmed) go &#8230; but limited offer on cupee dolls!&lt;\/a&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n<\/em><\/strong><\/p>\n<p>Look at the cutesy wootsey HTML\/Javascript above.   Isn&#8217;t it cuuuuuuute?!<br \/>\n Isn&#8217;t it sweeeeeet?!<\/p>\n<blockquote><p>&#9835; Oh, aint she sweet, when she&#8217;s walking down the street,<br \/>\n Well I ask you very confidentially &#8230; aint &#8230; she &#8230; sweet. &#9835; <\/p><\/blockquote>\n<p>  Enough of a sell job?<\/p>\n<p>Okay look at the Javascript of one vs Javascript of one below in the a tag onclick bit.   So you just place javascript: in front of the Javascript code required to do something interesting, all squeezed together onto the one line &#8230; this is where the cluttered desk people may continue breathing easily but others may falter.<\/p>\n<p>Well, if you can place this sort of thing into a browser Bookmark then that is a<br \/>\n Bookmarklet.   Remember the Javascript calculator rave in previous tutorials?<\/p>\n<p>Bear in mind we show Firefox in tutorial but all browsers have something similar, whether that be called Bookmarks or Favourites.\n<\/p>\n<p>Click <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/Bookmarklet\/'>on picture above<\/a> to go to tutorial about Bookmarklets.<\/p>\n<p>Link to downloadable source code of HTML above is <a href=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/Bookmarklet\/bmark.html_GETME\" title='bmark.html'>bmark.html<\/a> which you need to rename in order to try.<\/p>\n<p><strong><em>Did you know &#8230;<\/em><\/strong><br \/>\nJavaScript makes a great easy-access Calculator?<\/p>\n<p>Try typing the lines below into the address bar of your favourite browser:<\/p>\n<p>Javascript: eval(512 \/ 380);<br \/>\nJavascript: eval(512 * 380);<br \/>\nJavascript: eval(512 &#8211; 380);<br \/>\nJavascript: eval(512 + 380);<br \/>\nJavascript: eval(512 % 380);<\/p>\n<p>These days we spend so much time on the Internet it is a much quicker way to get to a calculator!\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d887' onclick='var dv=document.getElementById(\"d887\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Javascript\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d887' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d3798' onclick='var dv=document.getElementById(\"d3798\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Javascript\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d3789' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d20207' onclick='var dv=document.getElementById(\"d20207\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=google\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d20207' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you are a webmaster (of a web domain, such as www.rjmprogramming.com.au) registered with Google you can receive (Google) console notifications from unusual events. Thanks for the heads up, Google. This is like a sanity check, independently, for webmasters, registering &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-crawl-errors-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[151,165,513,576,1807,917,1111,1120,1319,1345,1806,1456],"class_list":["post-20207","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-blog","tag-broken-links","tag-google","tag-html","tag-link","tag-permalink","tag-search-engine","tag-seo","tag-tutorial","tag-url","tag-webmaster","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20207"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=20207"}],"version-history":[{"count":15,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20207\/revisions"}],"predecessor-version":[{"id":47165,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20207\/revisions\/47165"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=20207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=20207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=20207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}