9 Replies Latest reply on Aug 15, 2017 4:48 AM by Laubender

    JavaScript error - Object is invalid

    cocom26166573

      Problem (while using Indesign CS6 on Mac OS X):

      • After updating to El Capitan and installing the, now necessary, legacy Java SE 6
        • there's a JavaScript error;
        • Indesign files won't open;
        • Indesign won't "Quit" without force quitting.
      • The following error message appears:

      JavaScript Error!

       

      Error Number: 54

      Error String: Uncaught JavaScript exception:

      ReferenceError: Object is invalid

       

      Engine: ConvertURLToHyperlinks

      File: /Applications/Adobe InDesign CS6/Scripts/converturltohyperlink/startup scripts/ConvertURLtoHyperlinkMenuItemLoader.jsx

      Line: 100

      Source: Folder.current = cacheCurrent ;

        • 1. Re: JavaScript error - Object is invalid
          rob day Adobe Community Professional & MVP

          Java and JavaScript are not related. The error you are getting is coming from a startup JavaScript installed in your scripts folder ConvertURLtoHyperlinkMenuItemLoader.jsx. Try removing it from your ID folder.

          • 2. Re: JavaScript error - Object is invalid
            diegoq38379764

            I'm with the same error. How you fixed it?

            • 3. Re: JavaScript error - Object is invalid
              mcshrae Level 1

              Did you ever find a solution to this? I'm going through the same thing right now, and I have projects due.

              I bought my CS6 software under two years ago, so I find the lack of service unbelievable!

              • 4. Re: JavaScript error - Object is invalid
                Test Screen Name Most Valuable Participant

                There was an answer the day after the question. Did you try what it said? What sort of "service" do you imagine there should be for this product, which is now out of support? Why did you buy obsolete software?

                • 5. Re: JavaScript error - Object is invalid
                  Laubender Adobe Community Professional & MVP

                  Hi together,

                   

                  simply removing the script will not work.
                  It's part of a generic function InDesign is providing and is installed also with the latest version of InDesign.
                  Removing it would provoke other problems perhaps.

                   

                  I think, the problem is more how CS6 is interacting with the OS in this case during start-up.
                  And maybe a read/write problem perhaps.

                  Or a problem retrieving properties and values that are set by the script in a timely manner while starting.

                  No idea how to workaround this.

                   

                  So to all that experience this problem:

                   

                  What is the exact version of your InDesign CS6?
                  8.0.0, 8.0.1, 8.0.2, 8.0.3 or 8.1.0 ?

                   

                  What is your exact OS version?

                  => El Capitan in the case of our OP. Not supported by CS6.


                  And what did you lately with the OS?
                  Did you do an update to El Capitan, did you migrate CS6 to the new OS?

                  Installed new after updating the OS?


                  Or will the problem happen on a new Mac with a fresh installed OSX that is not bug-fixed by Apple perhaps?

                   

                  Hm.
                  Also check, if some other versions of InDesign are already started before when trying to start up InDesign CS6.

                   

                  Regards,
                  Uwe

                  • 6. Re: JavaScript error - Object is invalid
                    mcshrae Level 1

                    "What is the exact version of your InDesign CS6?"

                    Version 8.0 (that's exactly what it says)

                    "What is your exact OS version?"

                    Sierra v10.12.5

                     

                    "And what did you lately with the OS?"

                    This problem started shortly after updating to Sierra. InDesign became unusable (and mostly unopenable), and in PhotoShop I can crop and Save As but not much more. Illustrator appears to be fine.

                    It's not a new Mac (bought in 2013). No other versions of InDesign are open before trying to open CS6.

                    • 7. Re: JavaScript error - Object is invalid
                      Laubender Adobe Community Professional & MVP

                      Hi,

                      some people do have massive problems with CS6 on Sierra, some do not.

                      So updating Sierra seems to be the culprit here.

                       

                      I see a very small chance for running InDesign CS6 if you manage to install version 8.1.0. It should be available under the help menu if your current version is 8.0.2. Otherwise I can only suggest installing a CC version. Or revert to an older version of Mac OS X.

                       

                      Regards,
                      Uwe

                      1 person found this helpful
                      • 8. Re: JavaScript error - Object is invalid
                        mcshrae Level 1

                        Hi Uwe,

                         

                        Omg, it worked!! Thank you so much. I installed all the CS6 updates with the exception of Adobe CSXS InfrastructureCS6 (since I'm paranoid about updating at this point). And I can now open my InDesign files and was even able to do some work on them today as well. Hopefully this will hold and there are no more issues coming!

                         

                        Of course, now I'm afraid to do any updates on Sierra, since installing it is likely what triggered the issues in the first place. Do you think it's okay to go ahead and update from 10.12.5 to 10.12.6? And how about Adobe CSXS InfrastructureCS6?

                         

                        Again, thank you so much - you are the true MVP of this thread!

                         

                        Shan

                        • 9. Re: JavaScript error - Object is invalid
                          Laubender Adobe Community Professional & MVP

                          mcshrae  wrote

                          … Of course, now I'm afraid to do any updates on Sierra, since installing it is likely what triggered the issues in the first place. Do you think it's okay to go ahead and update from 10.12.5 to 10.12.6? And how about Adobe CSXS InfrastructureCS6? …

                          Hi Shan,
                          I cannot tell or suggest anything in this case. I'm running InDesign CS6 8.1.0 on El Capitan…
                          Be happy, that CS6 is working again :-)

                           

                          Do a TimeMachine backup before doing any update to the system so that you can revert if anything goes wrong.

                           

                          Best,
                          Uwe

                          1 person found this helpful