"A Runtime Error has occured"


Unfortunately, we have been encountering this error on our Digital Album pages, some pages don't even have a JavaScript running on the page.  We are currently working to resolve these issues but would recommend the IE changes listed at the bottom of this page as a work-around, unless you are a JavaScript programmer.

Symptom:

When opening a web pages within Internet Explorer (IE) a dialog box is displayed titled ‘Error’ displaying the message:

A Runtime Error has occurred.
Do you wish to Debug?

Line: NN
Error: Object expected

What the error means:

IE is displaying this message because it has encountered this error when trying to run a JavaScript on the web page.

Possible Causes and Remedies:

  • The problem may be related not with the site but with the contents of Internet Explorer’s cache.

IE may be using some old files from its cache instead of retrieving newer versions from the site. Try deleting all of Internet Explorers temporary files (Tools > Internet Options ... > Delete Files) and then refresh the page view. If the error persists then it is a fault with the page.

  • The page contains a genuine JavaScript error.

    If the page is yours (i.e. one that your are developing or one for which you are the webmaster responsible) then its up to you to debug the problem. Otherwise ignore the error (select ‘No’ to debug) and see if you can carry on.

Our Recommendation:

  • Within IE select ‘Tools’, ‘Internet Options’.

  • Select the ‘Advanced’ tab.

  • Click to place a checkmark for the option ‘Disable script debugging’ (under ‘Browsing’) (6th check box)

  • Make sure that the check box for the option "Display a notification about every script error" is unchecked (7th check box)

  • For the setting change to take effect close down all Internet Explorer windows and restart.

Note: If you are a JavaScript developer (or webmaster) then it is probably wise to leave script debugging enabled.

Page last updated on: 08/30/03


All Photos shown on following pages are the property of Doug M. and may not be used without prior written consent.

If you find bad links or errors, please report them to Doug