Ralpharama Archive. The archive is almost 20 years old, this website is no longer maintained.

Home | New Writing | Old Writing | Cooking | Technical | Wine Making | Cocktails
   
 
Misc

Javascript onloadRegister is not defined

Hits 19142 | Created 2007-09-25 | Modified 2007-09-25

If you're getting mysterious javascript errors such as 'onloadRegister is not defined' when using Facebook, or Twitter etc, then read on, this might be the solution you were looking for.



One day Facebook stopped working for me. I noticed that there were a lot of Javascript errors on the page:

onloadRegister is not defined
http://www.facebook.com/home.php?
Line 67

tz_autoset is not defined
http://www.facebook.com/home.php?
Line 40

typeaheadpro is not defined
http://static.ak.facebook.com/js/search_typeaheadpro.js?12:59982
Line 3

editStatus is not defined
http://www.facebook.com/home.php?
Line 1

etc.

I assumed they had made site code changes and messed things up, so I sent them an email to tell them :)

They replied and told me it was a caching issue (probably), which it wasn't as that didn't fix it.

I then noticed that Twitter also had the same (similar) errors.

Searching only found one one item, and that was a guy from UAE who complained that static.ak.facebook.com (which is used by Facebook) was censored in his country, hence the problem.

I investigated a bit more, and lo and behold, static.ak.facebook.com was actually in my Firefox Addblock's exclusion list. It was a fully qualified url, not a wildcard (as I am apt to add) so I'm not sure how it got there.

In error console it was there all the time (curse/love firebug):

Warning: Error in parsing value for property 'display'.  Declaration dropped.
Source File: http://static.ak.facebook.com/css/common.css.pkg.php?c=19:12:60635
Line: 74

Anyway, once removed, everything worked fine.









Comment Javascript onloadRegister is not defined comment by Levent Hits | Last Modified 2007-10-22
The same probelm i experienced then i did your recommend it works fine thank you very much my friend :)
Comment Javascript onloadRegister is not defined comment by emma tucker Hits | Last Modified 2008-03-16
cant reply or send messages on facebook ot keeps saying error on page
Comment Javascript onloadRegister is not defined comment by bungee Hits | Last Modified 2008-03-26
Thanks very much - you've solved my problem with this information!
Comment Javascript onloadRegister is not defined comment by Hits | Last Modified 2010-07-15
Nice man, worked just fine now! kinda strange how that happened.
Comment Javascript onloadRegister is not defined comment by angelie Hits | Last Modified 2010-07-22
i can't resolve my problem about this error? can you help me?
Comment Javascript onloadRegister is not defined comment by Ralpharama Hits | Last Modified 2010-07-22
Angelie, do you use Facebook's Adblock addon? If so, try and remove any urls containing 'facebook' and try again. Also try using a different browser - does it work there?

Make a Comment

Name
Comment


Antispam Code (always a number)

Enter Code Above
Submit

Note: All HTML will be removed except for bold and italics. Links will not display. Line breaks are added automatically. Use <pre>...</pre> for code.

Tags

This item has the following tags:
firefox javascript bug tech facebook twitter error

Useful? Donate for hosting costs

All content copyright (c) Ralpharama