Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Date Date
Qty:
Subtotal
Promotions
Estimated Shipping
VAT
Calculated at checkout
Total
Checkout
Dreamweaver Help / 

Troubleshoot JavaScript errors | Dreamweaver CS4, CS5, CS5.5, CS6

Adobe Community Help


Products Affected

  • Dreamweaver CS5.5
  • Dreamweaver CS4
  • Dreamweaver CS5
  • Dreamweaver CS6

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

What's covered

  • Identify JavaScript errors
  • JavaScript errors in Dreamweaver
  • JavaScript error troubleshooting tips
  • Troubleshooting steps
  • Known JavaScript errors and solutions
To the top

Identify JavaScript errors

When you perform tasks within Dreamweaver, you sometimes encounter a JavaScript error message. These design-time JavaScript errors usually prevent you from implementing a portion of Dreamweaver functionality.

Example: The following JavaScript error message can appear when you save a file:



Another example of a possible JavaScript error: "While executing onLoad in tempURL_afterSave.htm, a JavaScript error occurred."

Important: These pop-up JavaScript errors in Dreamweaver are different from JavaScript runtime errors you encounter when viewing a page in a web browser. JavaScript errors in a web browser indicate a problem with embedded or linked JavaScript in the HTML page. These types of runtime JavaScript errors are beyond the scope of this TechNote. See the Dreamweaver Help files for errors resulting from JavaScript that Dreamweaver generates. Or, see a third-party JavaScript reference for troubleshooting hand-coded JavaScript.

Sometimes, a translator error message accompanies these internal JavaScript errors:

The following translators were not loaded due to errors: ASP.htm: has configuration information that is invalid. ASP.NET.htm: has configuration information that is invalid. ColdFusion.htm: has configuration information that is invalid. PHP_MySQL.htm: has configuration information that is invalid. JSP.htm: has configuration information that is invalid. XSLT.htm: has configuration information that is invalid.

To the top

JavaScript errors in Dreamweaver

Dreamweaver uses JavaScript to perform numerous internal actions. Adobe has implemented much of Dreamweaver functionality by using JavaScript files. This heavy use of JavaScript helps to make Dreamweaver easily extensible. Developers only have to have a good knowledge of JavaScript and access to the Dreamweaver API to add to or change the native functionality of Dreamweaver. However, the errors that Dreamweaver generates if it encounters a problem executing some action tend to be JavaScript errors.

To the top

JavaScript error troubleshooting tips

JavaScript errors in Dreamweaver usually indicate a conflicting Dreamweaver extension, a conflict with the code on a page or a bad installation of Dreamweaver. Here are a few questions that can help you isolate the problem:

  • Does the error occur when using a specific feature?
    For example, do you see the same error message every time you attempt to create a web photo album? This error can indicate a conflicting extension or a bad installation of Dreamweaver.

  • Does the error occur on a specific page or with all pages?
    If the error doesn't occur with all pages, then you can have a conflict with some code on a particular page.

  • Does the error occur in all sites or just one?
    To test this issue properly, make sure that you test a different site that does not use the same files. If the error only occurs in a certain site, then the issue can be specific to files and code within that site.

  • Does the problem persist if you restart Dreamweaver?
    If the problem does not recur on relaunching Dreamweaver, then it's possible that a JavaScript file loaded incorrectly.

  • If using a server behavior, does the problem occur with all databases and tables?
    If not, then it's possible that you have an issue with the database connection files or with the tables of the database itself.

To the top

Troubleshooting steps

After answering the questions above, follow the steps below to troubleshoot the errors:

  1. Check the list of known JavaScript errors.

  2. Install the latest update for your version of Dreamweaver.

  3. Name objects referenced by JavaScript.

  4. Delete the FileCache.dat file.

  5. Try a new page.

  6. Re-create the site cache.

  7. For site-specific errors, try deleting the .dws site cache file.

  8. Mac OS users: Check for special characters in paths.

  9. Verify that extensions are compatible with your version of Dreamweaver.

  10. Disable extensions.

  11. Uninstall extensions.

  12. Re-create the Dreamweaver user configuration folder.

  13. Run Dreamweaver in Selective Startup Mode or Diagnostic Startup Mode.

  14. See additional TechNotes.

1. Check the list of known JavaScript errors.

Adobe has documented a number of known errors within Dreamweaver and have provided information to assist you in resolving the problem.  For a list of known issues, see the Known JavaScript Errors Chart.

2. Install the latest Dreamweaver updates.

Updates provide fixes for a number of issues identified within Adobe applications. Download updates from the Adobe Updates page.

3. Verify that any object the JavaScript references is named in the code.

For example, if you have a behavior applied to an image, then that image must have a name. Likewise, if the behavior references another image, then that image must also have a name. All object names must be unique and must meet other criteria. Object naming is described in Naming strategies for Dreamweaver and various interpreters (tn_14610).

4. Delete FileCache.dat files from the Dreamweaver user configuration folder.

Delete the WinFileCache-7A9586CB.dat, MacFileCache-BFE7CE2E.dat, or FileCache.dat file from the Dreamweaver user configuration folder. Adobe recommends that you delete the FileCache.dat file if you are experiencing a JavaScript error related to "dwscripts. " Also delete the file if you receive a "translators were not loaded" error. The string of characters after "FileCache-" can differ on your machine. The location of the FileCache.dat file depends your operating system and your version of Dreamweaver. On Windows, the Application Data and AppData folders are hidden by default, so verify that your Windows Explorer folder options are set to View Hidden Folders.

Note:  The [language] folder below is an abbreviation of the language you are currently using.  Typically there is only one folder in this location.

  • Mac OS:

    Dreamweaver CS6: /Users/Your User Name/Library/Application Support/Adobe/Dreamweaver CS6/[language]/Configuration

    Dreamweaver CS5.5: /Users/Your User Name/Library/Application Support/Adobe/Dreamweaver CS5.5/[language]/Configuration

    Dreamweaver CS5: /Users/Your User Name/Library/Application Support/Adobe/Dreamweaver CS5/[language]/Configuration

    Dreamweaver CS4: C/Users/Your User Name/Library/Application Support/Adobe/Dreamweaver CS4/[language]/Configuration
     
  • Windows 7 or Windows Vista:

    Dreamweaver CS6: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration

    Dreamweaver CS5.5: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS5.5\[language]\Configuration

    Dreamweaver CS5: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS5\[language]\Configuration

    Dreamweaver CS4: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS4\[language]\Configuration
     
  • Windows XP:

    Dreamweaver CS6: C:\Documents and Settings\Your User Name\Application Data\Adobe\Dreamweaver CS6\[language]\Configuration

    Dreamweaver CS5.5: C:\Documents and Settings\Your User Name\Application Data\Adobe\Dreamweaver CS5.5\[language]\Configuration

    Dreamweaver CS5: C:\Documents and Settings\Your User Name\Application Data\Adobe\Dreamweaver CS5\[language]\Configuration

    Dreamweaver CS4: C:\Documents and Settings\Your User Name\Application Data\Adobe\Dreamweaver CS4\[language]\Configuration
     

For older versions of Dreamweaver, the configuration paths are as follows:

Dreamweaver CS3 on Windows Vista:
C:\Users\[user name]\AppData\Roaming\Adobe\Dreamweaver 9\Configuration

Dreamweaver CS3 on Windows XP:
C:\Documents and Settings\[user name]\Application Data\Adobe\Dreamweaver 9\Configuration

Dreamweaver 8 on Windows XP:
C:\Documents and Settings\[user name]\Application Data\Macromedia\Dreamweaver 8\Configuration

Dreamweaver 8 on Windows Vista:
C:\Users\[user name]\AppData\Roaming\Macromedia\Dreamweaver 8\Configuration

Dreamweaver CS3 on Macintosh:
Mac HD/Users/[user]/Library/Application Support/Adobe/Dreamweaver 9/

Dreamweaver 8 on Macintosh:
Mac HD/Users/[user]/Library/Application Support/Macromedia/Dreamweaver 8/

5. Try a new page.

There can be conflicting code or Dreamweaver behaviors on the page. Try to build a page from scratch with minimal behaviors and other design elements and see if you can reproduce the error. Custom code or modified Dreamweaver code can occasionally cause problems.

6. Re-create the site cache and see if the problem persists.

In particular, this step is useful for JavaScript errors related to templates, library items, and uploading files. This step is only available if the site is defined to use a site cache:

  1. Within Dreamweaver, open the Site panel by choosing Window > Files.
  2. From the Files panel group, click the Options menu in the upper-right corner, and choose Site > Recreate Site Cache.

7. For site-specific errors, try deleting the .dws site cache file.

If the JavaScript only occurs in one site definition, then delete the site cache file for that site. To delete the cache, choose Site > Advanced > Recreate Site Cache.

8. Mac OS users: Check for special characters in paths.

Check for any special characters in the hard drive name, in the path to the Dreamweaver configuration folder, or in the path to your site files. Examples of special characters that can cause conflicts include the following:

~ @ # $ % ^ & * ( ) + | / \ ';

9. Verify that extensions are compatible with your version of Dreamweaver.

There can be a conflicting extension installed in Dreamweaver. For example, an extension could have been designed to work with an older version of Dreamweaver. Check the extension developer's website to see if the extension is compatible with your version of Dreamweaver.

There are several JavaScript errors associated with third-party extensions. Adobe recommends searching the Dreamweaver forum. Search using some of the keywords in your JavaScript error message (for example, search using the text of the JS filename).

10. Disable extensions.

To manually test for an extension conflict, open the Extension Manager and disable the extensions that you installed in Dreamweaver. If turning off the extensions solves the problems, then turn them back on one-by-one, until you isolate the problematic extension. If you identify a problematic extension, then notify the extension developer.

  1. Choose Commands > Manage Extensions.
  2. In the Extension Manager, select your version of Dreamweaver from the product list
  3. Within the list of installed extensions, set the On/Off checkbox to Off for all Dreamweaver extensions.

11. Uninstall extensions.

If the JavaScript error persists after you disable all of the extensions, then uninstall the extensions in the Extension Manager. If you identify a problematic extension, then notify the extension's author.

  1. Within the Extension Manager, select each extension.
  2. Choose File > Remove Extension.

12. Re-create the Dreamweaver user configuration folder.

For Dreamweaver CS4, CS5, CS5.5 or CS6, see Restore preferences | Dreamweaver CS4, CS5, CS5.5, CS6.

For Dreamweaver CS3 on Windows, see "How to re-create the Dreamweaver user configuration folder (CS3 on Windows XP, Vista)" (TechNote kb401118).

On Mac OS

  1. Quit Dreamweaver
  2. In the Mac Finder, browse to the following folder:
    /Users/[username]/Library/Application Support/Adobe/Dreamweaver CS4 [or CS5]/[language]/Configuration
    Note: For older versions of Dreamweaver, the paths are as follows:

    Dreamweaver CS3:
    Mac HD/Users/[user]/Library/Application Support/Adobe/Dreamweaver 9/Configuration

    Dreamweaver 8:
    Mac HD/Users/[user]/Library/Application Support/Macromedia/Dreamweaver 8/Configuration

  3. Rename the folder to "Configuration Old."
  4. Restart Dreamweaver and see if the problem persists.

13. Run Dreamweaver in Selective Startup Mode.

  • To start Windows XP in diagnostic mode, see Start Windows in Diagnostic mode (Windows XP) (kb404860) for details.
  • To start Windows Vista/7 in modified mode, see Restart Windows in a modified mode (Windows Vista/7) (kb404913) for details.

14. See additional TechNotes.

If the JavaScript errors persist after you follow the suggestions above, then see the following TechNotes for additional troubleshooting suggestions. Uninstalling and reinstalling Dreamweaver, with anti-virus software disabled, is an important test to perform:

  • Troubleshooting Dreamweaver for Windows (tn_15481)
To the top

Known JavaScript errors and solutions

JavaScript Error Solution

"The following JavaScript errors occurred: At line 56 of file "C:\ Program Files\Adobe\Dreamweaver CS4\Configuration\Shared\Common\ Scripts\dwscriptsExtData.js": ReferenceError: dwscripts is not defined."

Remove the WinFileCache-7A9586CB.dat file from the Dreamweaver user configuration folder. If that doesn't solve it, then recreate the Dreamweaver user configuration folder. These suggestions also apply if you are receiving the error message: "The following translators were not loaded due to errors."

While executing DWMenu_File_SaveDocumentToRemoteServer command in menus.xml, the following JavaScript errors occurred: Exception thrown in native function.

See the following TechNote for more information: JavaScript error and hang when performing Save To Remote Server (kb401216)

"While executing applyBehavior in Show Pop-Up Menu.htm, the following JavaScript errors occurred: At line 27 of file "D:\Program Files\Macromedia\DreamweaverMX\Configuration\ Behaviors\Actions\Show Pop-up Menu.js":

The image to which you are applying the behavior is not named, or there is a problem with the object name. For more information, see "Error 'While executing applyBehavior in Show Pop-Up Menu...'" (TechNote tn_16462).

Keywords: kb405604

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement