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 20, 2016 3:01 PM in response to linda2009

Hey Linda,

Thanks for your time. I'm ready to simply give up on this.

I followed your directions exactly:

User uploaded file

After the return, I found the var gcurrPostalCode = line, cursored the semicolon , pressed 'i' and entered my zip:

User uploaded file

I then pressed ESC and typed :wq

I quit Terminal.

I did a Restart (Not Logout)

Went to Dashboard and I get the black rectangle. (in the past, the widget sometimes needs to be replaced. I did that just in case. Nada.)

Am I missing a step?

Jan

Feb 20, 2016 3:56 PM in response to MOAOM

Jan,

I don't know exactly, but I'm thinking it might have something to do with all the editing of Movies.js and something got deleted, or moved, etc within the original file.

I don't know why you have those 4 lines above Line 40 and my file does not have those lines like that

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

r

y

y

y

var gCurrPostalCode = "92103";

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

Or, if you replaced the widget -like you mention-- "(in the past, the widget sometimes needs to be replaced. I did that just in case. Nada.)" and you did it after you edited the Movies.js file, you just undid your editing. Movies.js is INSIDE of the Movies.wdgt (app/folder). If you replaced the Movies.wdgt with a backup AFTER you edited Movies.js, then the below suggestions will just be extra work.


IF you replaced the widget (Movies.wdgt) after editing, then just start over with the Vim instructions or the Without Vim instructions. (my last two posts)


IF you replaced the movies.wdgt BEFORE you edited the Movies.js, then you can try this -----------------------------------------------------------------------------

Do you have a Time Machine backup? Or a clone of your system?

I'm thinking you can copy the Movies.wdgt file from your backup and replace the one in the Library/Widgets folder.


I just set up this system, so I haven't done a Time Machine backup. But you need to View your Time Machine backup, go back to the date that was before the Movies widget problem. Because I can't currently test this myself, I don't remember if Time Machine has the Go option on the Menu. If it doesn't, then you'll have to navigate yourself there.


Then from a Finder Window inside your Time Machine view (the Star Wars like window - lol!) go to the widgets folder ---> From the Menu, choose Go, Go to Folder... In that box TYPE: /Library/Widgets/Movies.wdgt

A Finder window will open with the Movies.wdgt highlighted. Copy that file (it's like a mini-app, it's really a "folder" not a file). Command + C --should do it. A option box will ask you where. For now, safest place would be your desktop.

Or, if it will let you, just copy (restore) it right to the /Library/Widgets/ Folder.

Then you can exit Time Machine.

If you copied to desktop --> Open a Finder window and go to your desktop and copy that file. Then navigate to the /Library/Widgets/Movies.wdgt (just like above) and Paste the file (have to use the Edit, Paste. sometimes Command + V will do it). It should ask you for your password. --If TM restored the file you can try fixing the Movies widget again.


If you have a Clone, you can boot into that clone and navigate your main hard drive to copy and paste that file.


Once you have replaced the edited one with an old backup file, then you can try all the steps again. Perhaps use PorscheFanatic's NON-vim instructions, like in my last post. I did do it that way, but it is an easier way.


Hopefully some of this helps!

Feb 21, 2016 9:20 AM in response to linda2009

Thanks Linda,

I replaced the widget after the original didn't work (replaced meaning deleting it from the Dashboard then re adding it?)

I do have Time Machine (has saved my *** a couple times).

When I get the chance I'll look back before the El Cap instal and see if I can capture the previous widget.

I'll let you know how it goes.


Need a break from this now.

Feb 29, 2016 3:07 PM in response to linda2009

Linda, you're a ROCK STAR !!


...AND, I suspect, an editor!


I'm an editor, and considered having a go at Porsche's great instructions, but I'm a newbie at Terminal, too, and I didn't feel I understood it enough to get involved. You made great sense of it. I kept wanting to add "1. " at the beginning of the commands, as Porsche seemed to be suggesting, but I was pretty sure that wasn't right.


Anyway, power to the editors!


And thank you, too, Porsche, for your instructions!

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.