Skip navigation
Currently Being Moderated

onOpen is not defined error

Aug 3, 2010 3:27 PM

  I've been using Dreamweaver CS5 since it came out and just today I randomly received the message:  While executing onLoad in _onOpen.htm, the following JavaScript error(s) occurred: In file "_onOpen": onOpen is not defined.  I looked up the issue and it said after awhile some files in Dreamweaver start to crash and that this was a simple fix.  I read that you have to go into folder options and turn on show hidden folders so you can see the folder in which you have to do the file correction.  The folder is located in the documents and settings directory which I cannot seem to find.  I am using Windows 7 and all of the helps I have found are for Dreamweaver 8 and I've tried to look up how to find the documents and settings folder on w7 but I can't seem to find anything.  Any help would be much appreciated on how to solve this issue.

 
Replies
  • Currently Being Moderated
    Aug 3, 2010 3:35 PM   in reply to djones0305

    C:\Users\<you>\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2010 3:43 PM   in reply to djones0305

    You find the WinFileCache file and delete it.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2010 3:46 PM   in reply to djones0305

    That should have fixed it.  Did it?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 10, 2010 7:02 AM   in reply to djones0305

    Just wanted to say thanks. This worked for me, too.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 10, 2010 7:06 AM   in reply to jchiff

    Good luck!

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 14, 2010 10:57 AM   in reply to MurraySummers

    Do you know where this file/folder can found on a Mac OS 10.6?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 14, 2010 11:51 AM   in reply to benjaminwo

    <user>/Library/Application Support/Adobe/Dreamweaver CS5/en_US/Configuration/MacFileCache-XXXXXXX.dat

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 8:35 AM   in reply to MurraySummers

    This has not worked for me....Im on a PC with XP using CS5.5

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 8:41 AM   in reply to rlsdesigns

    What are your symptoms, and what did you try?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 9:10 AM   in reply to MurraySummers

    found this info for XP

     

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

     

    I followed this and deleted the WinFileCache file...RE-booted and file still shows up everytime!! ARG!

     

    Every time I open a page in DW the error pos up....

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 9:40 AM   in reply to rlsdesigns

    Wait - you delete the winfilecache file, and after rebooting it's there again?  Do you look BEFORE, or AFTER starting DW?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 8:44 AM   in reply to MurraySummers

    The error is still there assuming the file isn't.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 9:34 AM   in reply to rlsdesigns

    Is the file still there?  What are your error messages?  Is it the same error every time.  Is it true for all sites?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 4:16 AM   in reply to MurraySummers

    Well, actually the file is still there...deleted it again, tired to open a page (true for ALL sites), error appears, look in the configuration file again and a NEW WinFileCasche-xxxx has been created......DWerror_2012aug.jpg

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 4:21 AM   in reply to rlsdesigns

    Every time you restart DW, it'll create a new file cache although the name will be different.  That's why I asked if you looked BEFORE or AFTER starting DW after a reboot.  Are you sure you are deleting the file that is in the correct location?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 19, 2014 6:03 PM   in reply to rlsdesigns

    Hi rlsdesigns,

     

    I have exactly the same problem and error message even though my setup is slightly different (- Win7Ult, 64 bit, CS6).  I've tried deleting the WinFileCache in User\AppData\Roaming\Adobe\DeamweaverCS6\en_US\Configuration and rebooted, whatever, but still get the error saying onOpen is not defined.

     

    I just wondered if you'd subsequently found a solution please?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points