Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

why has the movie widget stopped working?

why has the movie widget stopped working in Dashlane on iMac?

iMac, OS X El Capitan (10.11.1), Movie Widget suddenly stopped work

Posted on Feb 12, 2016 5:42 AM

Reply
Question marked as Best reply

Posted on Feb 13, 2016 10:31 PM

I’m on OS X 10.11.3, and I fixed my Movies Widget by doing the following:

  1. Open terminal
  2. cd /Library/Widgets/Movies.wdgt/ (go to the movies widget directory)
  3. sudo cp Movies.js Movies.js.bak (create a backup file of the original)
  4. sudo vim Movies.js (edit the file)
  5. Find line 40 (var gCurrPostalCode = null)
  6. Replace null with “YOUR_ZIP_CODE” (with the quotes)
  7. Save and close file (:wq)
  8. Log out then back in


By opening Movies.html in a web browser and using the built-in debugger, I found that the offending line was 218 in parser.js (http://gws2.maps.yahoo.com…..). From what I read, this is a paid map service. The “&appid=apple_placefinder” part of the URL causes a 404 error, and removing it gets an empty JSON download. This suggests the deal between Apple and Yahoo for this service has expired.


By initializing the zip code, validateLocation() and the Yahoo map service are never called/needed and the Widget runs just fine.

38 replies

Feb 15, 2016 11:48 AM in response to dialabrain

dialabrain wrote:


It certain did make it difficult. 😁

Which is why I used the other method. And yes it works. 😎


FWIW, I never used the Movie widget or Dashboard until this post. Well Dashboard years ago. 😝


Good to hear that it works! 🙂


I'm just curious, how did you come across this post if you haven't been using the Movie widget or Dashboard?

Feb 15, 2016 5:10 PM in response to PorscheFanatic

PorscheFanatic wrote:


Note:

If you do not have an administrator account/password (like you need to install new software), you will not be able to complete the steps below.


Here's another attempt at a clearer set of steps:

  1. Open terminal
  2. Go to the movies widget directory (type/copy the below into Terminal)

    cd /Library/Widgets/Movies.wdgt/

  3. Create a backup of the Movies.js file (type/copy the below into Terminal)

    sudo cp Movies.js Movies.js.bak

  4. Open Movies.js for editing (type/copy the below into Terminal)

    sudo vim Movies.js

  5. Find this line (var gCurrPostalCode = null), it should be on line 40

    Scroll/click/use the arrow keys to navigate there

  6. Replace null with “YOUR_ZIP_CODE”
    1. Type i to enter vim's insert mode, then use it like a normal text editor (backspace to delete null, then type your zip code)
    2. Make sure you use quotes surrounding the zip code, and replace YOUR_ZIP_CODE with the 5-digit number that is your zip code
  7. Save and close file
    1. In vim, push escape to exit insert mode
    2. Then type the following to write (w) and close/quit the file (q)

      :wq

  8. Log out then back in


Reference:

  1. sudo gives you administrator privileges for the command that follows it
  2. vim is a terminal-based text editor. If you want to know more about how to use it, this is a good tutorial (http://www.openvim.com/)

I followed these instructions and movie widget is working again. Hope they don't do something else to break it!

I'm using El Capitan and Mavericks. It fixed them both.


On a side note, I also use the Weather widget. I have several cities open for comparison, and for some reason, some cities "links" are just broken. The box is just blank. If I change it to a working city, then it keeps that city when trying to change back to the broken city. Frustrating, because I can't see the weather for the city I want. I plugged in a nearby city and it at least gives me a general idea... ugh!

Feb 15, 2016 7:32 PM in response to linda2009

linda2009 wrote:


I followed these instructions and movie widget is working again. Hope they don't do something else to break it!

I'm using El Capitan and Mavericks. It fixed them both.


On a side note, I also use the Weather widget. I have several cities open for comparison, and for some reason, some cities "links" are just broken. The box is just blank. If I change it to a working city, then it keeps that city when trying to change back to the broken city. Frustrating, because I can't see the weather for the city I want. I plugged in a nearby city and it at least gives me a general idea... ugh!


That's great to hear! Since we've cut off their location check with yahoo by applying this fix, trailers.apple.com is the only server left the Movies widget is using. This is a full featured webpage and I believe what the iPhone Trailers app uses, so we should be in good shape on the server front 🙂.


If anyone else tries to fix their Movies widget, use my latest instructions on the end of page 1. They are shorter and easier than the earlier version linda2009 used.


I'm sorry the Weather widget is being flaky, I suspect it might be for a similar reason (using an expired yahoo location service). I use the new weather widget in the Today view of the Notification Center, so I don't intend to look into the old Dashboard widget. I'll let you know if I do, though.

Feb 18, 2016 4:03 PM in response to dialabrain

OK, once more guys.

I open Terminal, I enter the first line (cd /Library/...).

I hit Enter (yes?) and I get and new line: Macintosh:Movies.wdgt and my name.

Then I enter: sudo cp Movies.js Movies.js.bak

I get Password and type it

I hit enter and again get Macintosh:Movies.wdgt and my name.

Your next instruction is to scroll to: var gCurrPostalCode = null

which, earlier, you said sould be on line 40

However, I don't get 40 or any lines of code.???


Feb 18, 2016 4:35 PM in response to MOAOM

MOAOM wrote:


OK, once more guys.

I open Terminal, I enter the first line (cd /Library/...).

I hit Enter (yes?) and I get and new line: Macintosh:Movies.wdgt and my name.

Then I enter: sudo cp Movies.js Movies.js.bak

I get Password and type it

I hit enter and again get Macintosh:Movies.wdgt and my name.

Your next instruction is to scroll to: var gCurrPostalCode = null

which, earlier, you said sould be on line 40

However, I don't get 40 or any lines of code.???



Please use my latest set of instructions. They don't use vim at all and are quicker to accomplish the goal. Let me know if you have trouble following them.

Feb 18, 2016 4:43 PM in response to MOAOM

Here are the steps I took:


  1. Open Terminal. In the space after yourname$ type:: cd /Library/Widgets/Movies.wdgt/ PRESS ENTER
  2. after yourname$ type:: sudo cp Movies.js Movies.js.bak PRESS ENTER
  3. your will see:: Password TYPE IN YOUR PASSWORD, PRESS ENTER
  4. after yourname$ type:: sudo vim Movies.js PRESS ENTER
  5. Use either/and scrolling, arrow keys (arrow keys seemed easier for me), mouse click to get your cursor covering the semicolon ( ; ) after the text:: var gCurrPostalCode = null;
  6. PRESS YOUR i key on your keyboard (this starts edit mode -- DO NOT PRESS ENTER OR ANY OTHER KEY)
  7. At that point, using backspace and delete the text:: null
  8. Without moving your cursor after deleting null, TYPE:: "12345" MAKE SURE you type the quotes and your zip or zip code of your nearest theater instead of 12345. DO NOT DELETE the semicolon.
  9. PRESS your escape (esc) key. (this stops the edit mode)
  10. At that point, without moving cursor, TYPE:: :wq PRESS ENTER
  11. Then EXIT terminal.
  12. Reboot. Logout might do it.

Feb 18, 2016 4:40 PM in response to PorscheFanatic

PorscheFanatic wrote:


Ok, one more try for those of you that hate vim (these instructions don't use it and should be faster/easier 🙂)


  1. Open terminal
  2. Go to the movies widget directory (type/copy the below into Terminal)

    cd /Library/Widgets/Movies.wdgt/

  3. Create a backup of the Movies.js file (type/copy the below into Terminal)

    sudo cp Movies.js Movies.js.bak

  4. Replace the line (var gCurrPostalCode = null) with (var gCurrPostalCode = "YOUR_ZIP_CODE")
    1. Type/copy step 3 into Terminal (follow step 2 though!)
    2. Make sure to replace YOUR_ZIP_CODE with the 5-digit number that is your zip code before hitting enter!
    3. sudo sed -i -- 's/var gCurrPostalCode = null/var gCurrPostalCode = "YOUR_ZIP_CODE"/g' Movies.js
  5. Log out then back in


Reference:

sed is a find/replace command-line tool


These are my latest instructions; re-posting here for visibility.

Feb 19, 2016 2:28 PM in response to linda2009

Linda2009, Thanks. Your instructions are the clearest--by far. However, still no luck.

[The:: sudo vim Movies.js command was not included in the instructs I was trying to follow.]

In yours, when I got to:: var gCurrPostalCode = , I didn't have "nul" I had:: "YOUR_ZIP_CODE"

[PorscheFanatic says to replace "nul" with " "YOUR_ZIP_CODE" Why???]

Nonetheless, I replaced "YOUR_ZIP_CODE" with "nnnnn" (my zip) -- ESC -- :wq

Now you say to "Exit" Terminal--I presume you mean Quit? I saw nothing the said Exit.

["Log Out" had me buffaloed as I never used it before but I found it under the Apple menu. Go figure.)

Anyway--the Movies widget still doesn't work (I'm on El Cap).

Note: I redid the whole thing again (my zip of course was listed), still no luck.

Any suggestions?

Linda2009 ???

PorscheFanatic???

Thanks for whatever

Jan (MOAOM)


Feb 19, 2016 4:21 PM in response to MOAOM

Jan,


First, please restart (reboot) the Mac. Test the Movie widget. Is it working? If not, I would retry the list of steps. Do not leave out any of the steps. Remember the quotes on your zip code "12345"


When PorscheFanatic said to type "YOUR_ZIP_CODE" -- he meant REPLACE the null characters with your personal five digit zip code, with the quotes. It has to be your personal zip code or the zip code to the nearest theater (that's what I used for me).


So you look for a line like this:: var gCurrPostalCode = null;

Because you edited that line a few times, it might look different at the end, like this:: var gCurrPostalCode = "YOUR_ZIP_CODE";

In this case, replace the characters inside the quotes with your zip code.

You want it to look like this:: var gCurrPostalCode = "12345";

DO NOT ADD ANY LINES OR PRESS ENTER AFTER TYPING IN YOUR ZIP CODE.


After doing step 8, do step 9 through 12.

Let me clarify steps 11 and 12.


11. Quit Terminal. Command + Q. Or, up on the Menu, Terminal, Quit.

12. Reboot - Rebooting would be--> Restart... on the Apple Menu.

Logout would be--> Log Out Jan... on the Apple Menu.


I'm not sure that just Logging out would do the trick. It might take Restarting your Mac. (Sometimes Restarting is referred to as Rebooting). So if you Restart, you won't need to Log Out.


Please post if it worked or not.

And, do you have Time Machine backups or other backups?

Feb 19, 2016 4:43 PM in response to linda2009

Here's some clarification on PorscheFanatic's NON-vim instructions::

*with these instructions, do not worry about the semicolon, like in last post**

  • Step for Replacing the line:: var gCurrPostalCode = null with var gCurrPostalCode = "12345"
    (Remember 12345 represents Your own personal five digit zip code)
  • You do not have to scroll anywhere, or arrow over to any spot with these instructions
  • Type the bold characters Exactly. Or, copy and paste, but remember to replace the "12345" from the example with your own 5-digit zip code before you press enter.

-------------------------------------------------------------------------------- ---------


  1. Open Terminal. In the space after yourname$ type:: cd /Library/Widgets/Movies.wdgt/ PRESS ENTER
  2. after yourname$ type:: sudo cp Movies.js Movies.js.bak PRESS ENTER
  3. your will see:: Password TYPE IN YOUR PASSWORD, PRESS ENTER
  4. after yourname$ type::
    sudo sed -i -- 's/var gCurrPostalCode = null/var gCurrPostalCode = "12345"/g' Movies.js PRESS ENTER
  5. Quit Terminal. --> Command + Q.
  6. Restart your Mac. --> Apple Menu, Restart...



Reference:

sed is a find/replace command-line tool

why has the movie widget stopped working?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.