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

How do I fix the "invalid URL" problem?

User uploaded file

For the last couple of days or so, everytime I log onto facebook i get this message. I've tried deleting caches, cookies, flush dns, change DNS servers...all that good stuffs that people suggest but it still doesnt work. This is getting really frustratiing. If there's anyone who could help me solving this problem, I'd appericiate it so much. Thanks alot!

MacBook, Mac OS X (10.6.8)

Posted on May 19, 2012 5:51 PM

Reply
22 replies

May 19, 2012 6:28 PM in response to long.joon

Hi.


You mentioned that you deleted cookies but try this also...


From your Safari menu bar click Safari > Preferences then select the Privacy tab.


Click: Remove All Website Data


Quit then relaunch Safari, try FB.


If that doesn't help, boot in Safe Mode


A Safe Mode boot takes longer then a normal boot so be patient. This will delete system caches that may help.


Once you see the Desktop, click the Apple menu icon top left in your screen. From the drop down menu click Restart.


Try FB.

May 19, 2012 11:56 PM in response to long.joon

Check System Preferences > Network > Advanced > Proxies


If any of the boxes on the left are selected, deselect then click OK.


Quit then relaunch Safari.


And check Safari > Preferences > Extensions. If you have any installed, turn that OFF, try FB.


If nothing above has helped, try deleting the cache associated with Safari.


Go to ~/Library/Caches/com.apple.Safari/Cache.db.


Move the Cache.db file to the Trash.


Try FB.


One other thing to try is to delete your Facebook keychain.


Open Keychain Access located in /Applications/Utilities


Select Passwords on the left.


Type facebook in the search field top right corner of that window then right or control click the Facebook keychain then click Delete.


Back to Safari. From the Safari menu bar click Safari > Preferences > Autofill


Make sure User names and passwords is selected.


Go to Facebook, enter your user name and password. Click Yes when prompted to save that data to a new keychain.


And try using a different browser.Mozilla Firefox Web Browser





edited by: cs

Jun 13, 2012 7:26 AM in response to long.joon

This looks like a DNS cache issue.


Flush your DNS cache regularly (I set all my Macs to flush daily at boot): http://applehelpwriter.com/2012/04/16/flush-dns-cache-in-lion


Try to use a different DNS server (eg 8.8.8.8) directly from your computer rather than via your router or ISP.


Adjust your Reset Safari settings to something you are happy with and in future start Safari via the following AppleScript. I use this script on old Macs to increase Safari speed. The first line overcomes the reluctance of some Safari versions to remove local storage when resetting. Local storage is sometimes used as an alternative to cookies by HTML 5 pages - Facebook uses HTML 5.


do shell script "rm -Rf ~/Library/Safari/LocalStorage"

tellapplication"Safari"toactivate

tell application "System Events"

tell process "Safari"

click menu item "Reset Safari…" of menu "Safari" of menu bar 1


clickbutton"Reset"ofwindow1


endtell

endtell

Sep 27, 2012 12:32 PM in response to long.joon

"Neville Hillyer" That was an excellent answer, and has fixed my problem as well. For googlers, and forum hunters looking for an answer to the dreaded "invalid url "/" " problem, flush the DNS cache is simple (This is for Mountail Lion anyway)


1:) Goto "Finder"

2:) Select "Utilities"

3:) Select "Terminal"


After opening a new terminal session, simply copy the following command line, and paste it into the Terminal session.


sudo killall -HUP mDNSResponder


That will flush your DNS cache (OSX will ask for your admin password, which you will be prompted to enter in Terminal)


Hopefully that will solve a lot of problems, again, thanks to Neville and Phil Stokes.

How do I fix the "invalid URL" problem?

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