* Help and Advice page Script Error Code 0

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
GeorgeJ
Platinum
Posts: 43
Joined: 05 Jan 2013 21:48
Family Historian: V6.2
Location: Hertfordshire UK
Contact:

Help and Advice page Script Error Code 0

Post by GeorgeJ »

Hi Mike.

Here is error message.

I used Export Gedcom File 3.9 . Is that correct ?

I daren't fiddle with any plugin yet.
Attachments
Export Gedcom File Plugin error 1.jpg
Export Gedcom File Plugin error 1.jpg (230.29 KiB) Viewed 6783 times
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Help and Advice page Script Error Code 0

Post by tatewise »

Ah, I see!
That is associated with the FHUG Knowledge Base when attempting to display the Help & Advice page.
However, nobody else has reported such an error, and I cannot reproduce it.
The program that displays those Help & Advice pages is the Internet Explorer browser shell.
I suspect you may have an older version of the Internet Explorer Shell installed and that causes the problem.

What Windows operating system are you running?

In any case please download and run the Write Reg IE Shell Version Plugin.
What is the current Internet Explorer Shell Version number reported by this Plugin?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5465
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Help and Advice page Script Error Code 0

Post by ColeValleyGirl »

I get the same error intermittently Mike (not with this plugin). My Internet Explorer Shell Version is 11.
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Help and Advice page Script Error Code 0

Post by tatewise »

It could arise with any of my Plugins that have that style of Help & Advice window, and appears to be a script error in the server that is reported by the IE Shell browser..

When has that been happening Helen?
Has it been for many years, or only since FHUG changed servers earlier this year?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5465
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Help and Advice page Script Error Code 0

Post by ColeValleyGirl »

Couldn't swear to it, but it may only have been since the server change.
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Help and Advice page Script Error Code 0

Post by tatewise »

So maybe that is something Jane could investigate?

George, it seems nothing you are doing wrong, and just has to be tolerated.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
Jane
Site Admin
Posts: 8508
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Help and Advice page Script Error Code 0

Post by Jane »

The help pages use a very very old theme, as Mike was not happy with the current theme on the help windows. As it's a javascript error I would guess there in something in the theme which causes problems occasionally.

I did not write any of the theme javascript and unless it can be reproduced outside of embedded IE in a decent web browser with a debug the chances of fixing it are pretty small.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Help and Advice page Script Error Code 0

Post by tatewise »

Thanks Jane for that insight. Yes, I prefer not to have the contents sidebar in Plugin Help & Advice pages.
It is odd that it is intermittent and only some users experience the error.
The plugins:help:index|> Plugin Help and Advice pages can be visited with any browser, but have never had that error reported before by anyone else, and I visit those pages in Firefox regularly.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Help and Advice page Script Error Code 0

Post by tatewise »

This may be a wild goose chase but the following details are associated with the error.

Firstly, Java Script Syntax Error Code 0 is identified as:
SyntaxError: Octal numeric literals and escape characters not allowed in strict mode (Edge)
See SyntaxError: "0"-prefixed octal literals and octal escape seq. are deprecated for Error Code 0 details.
See strict mode for its JavaScript details, and that it is invoked by the 'use strict'; statement.

So I started looking for use strict in the scripts, and found very few, which might be helpful.

In standard FHUG Knowledge Base pages the HTML script has the following line 27 javascript link:
src="/wiki/lib/exe/js.php?t=bootstrap-flatty&tseed=81c281a326fbc68ff3d6cac32a5ef9bf">
Opening that script file and searching for use strict reveals the one and only statement:
jQuery(function(){'use strict';const $searchForm=jQuery('.search-results-form');

In the FHUG special Help and Advice pages the HTML script has the following line 27 javascript link:
src="/wiki/lib/exe/js.php?t=arctic2&tseed=81c281a326fbc68ff3d6cac32a5ef9bf"
Opening that script file and searching for use strict reveals the same one and only statement:
jQuery(function(){'use strict';const $searchForm=jQuery('.search-results-form');

The error message refers to Line: 1 Char: 45041 which points to the start of word const in the jQuery above.
( The JavaScript file has no newline characters, so everything is on Line: 1 )

I'm not sure whether that leads anywhere useful, but it is the start of the journey.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
GeorgeJ
Platinum
Posts: 43
Joined: 05 Jan 2013 21:48
Family Historian: V6.2
Location: Hertfordshire UK
Contact:

Re: Help and Advice page Script Error Code 0

Post by GeorgeJ »

Hi all,

That's a relief. Beginning to think I'd caused it.

So as it doesn't stop the plugin working do we need to worry ???

I had a read through https://love2dev.com/blog/javascript-strict-mode/

Maybe try TypeScript and ESLint for syntax errors.
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Help and Advice page Script Error Code 0

Post by tatewise »

It has no impact on the operation of the Plugin, and only possibly impacts the Help & Advice window.
The scripts are written by the Knowledge Base wiki developers, so we may just have to live with it.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
GeorgeJ
Platinum
Posts: 43
Joined: 05 Jan 2013 21:48
Family Historian: V6.2
Location: Hertfordshire UK
Contact:

Re: Help and Advice page Script Error Code 0

Post by GeorgeJ »

Mike,

I can live with it.

Thanks for all your help. :D

If you would like any help with DNA please just ask. I am in contact with Les Tate a fellow researcher with a very distant proven connection. Early Scottish Clan history.
Post Reply