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
why has the movie widget stopped working in Dashlane on iMac?
iMac, OS X El Capitan (10.11.1), Movie Widget suddenly stopped work
I’m on OS X 10.11.3, and I fixed my Movies Widget by doing the following:
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.
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?
grossmusic wrote:
woo-hoo!
thank you!
I'll do a Time Machine backup this afternoon then try all these steps.
Thank you for the clarification & sharing your knowledge, porsche!
You're welcome! Please let me know how it goes.
PorscheFanatic wrote:
🙂
I'm just curious, how did you come across this post if you haven't been using the Movie widget or Dashboard?
I was just perusing the list.
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:
- Open terminal
- Go to the movies widget directory (type/copy the below into Terminal)
cd /Library/Widgets/Movies.wdgt/
- Create a backup of the Movies.js file (type/copy the below into Terminal)
sudo cp Movies.js Movies.js.bak
- Open Movies.js for editing (type/copy the below into Terminal)
sudo vim Movies.js
- Find this line (var gCurrPostalCode = null), it should be on line 40
Scroll/click/use the arrow keys to navigate there
- Replace null with “YOUR_ZIP_CODE”
- 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)
- Make sure you use quotes surrounding the zip code, and replace YOUR_ZIP_CODE with the 5-digit number that is your zip code
- Save and close file
- In vim, push escape to exit insert mode
- Then type the following to write (w) and close/quit the file (q)
:wq
- Log out then back in
Reference:
- sudo gives you administrator privileges for the command that follows it
- 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!
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.
Another woo-hoo! I don't know how all that garblety-gook worked, but it did! Widget working.
Thanks, Porsche!
grossmusic wrote:
Another woo-hoo! I don't know how all that garblety-gook worked, but it did! Widget working.
Thanks, Porsche!
Awesome, glad to hear it! You're welcome 🙂
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.???
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.
whwbillwill wrote:
why has the movie widget stopped working in Dashlane on iMac?
Thanks for accepting my post as the answer 🙂. If possible, though, can you please change the accepted answer to my latest set of instructions (I had one more guide after the one you accepted)? They will be easier to follow for anyone who finds this thread.
Here are the steps I took:
PorscheFanatic wrote:
Ok, one more try for those of you that hate vim (these instructions don't use it and should be faster/easier 🙂)
- Open terminal
- Go to the movies widget directory (type/copy the below into Terminal)
cd /Library/Widgets/Movies.wdgt/
- Create a backup of the Movies.js file (type/copy the below into Terminal)
sudo cp Movies.js Movies.js.bak
- Replace the line (var gCurrPostalCode = null) with (var gCurrPostalCode = "YOUR_ZIP_CODE")
- Type/copy step 3 into Terminal (follow step 2 though!)
- Make sure to replace YOUR_ZIP_CODE with the 5-digit number that is your zip code before hitting enter!
- sudo sed -i -- 's/var gCurrPostalCode = null/var gCurrPostalCode = "YOUR_ZIP_CODE"/g' Movies.js
- Log out then back in
Reference:
sed is a find/replace command-line tool
These are my latest instructions; re-posting here for visibility.
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)
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?
Here's some clarification on PorscheFanatic's NON-vim instructions::
*with these instructions, do not worry about the semicolon, like in last post**
-------------------------------------------------------------------------------- ---------
Reference:
sed is a find/replace command-line tool
why has the movie widget stopped working?