Closed (won't fix)
Project:
Facebook Connect
Version:
6.x-1.0-beta9
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Jun 2009 at 13:14 UTC
Updated:
5 Feb 2011 at 02:29 UTC
I am assuming it is from the FB Connect module but I receive this error.
Error Line 180, Column 76: Attribute "onlogin" is not a valid attribute. Did you mean "scrolling" or "onload"?
…irst last">
Comments
Comment #1
gibus commentedIn function function fbconnect_render_button, replace the return value with fb:login-button by:
return "<a href='#' onclick='FB.Connect.requireSession(); facebook_onlogin_ready(); return false;'> <img id='fb_login_image' src='$src' alt='Connect' /> </a>";with $src pointing to a fbconnect image...
Comment #2
gregarios commentedI get various W3C markup errors as well. This module's output should have XHTML 1.0 strict compliance.
W3C Validator Reports:
Attribute "size" exists, but can not be used for this element.
<fb:login-button size="medium" length="short" onlogin="facebook_onlogin_ready(Attribute "length" is not a valid attribute. Did you mean "maxlength" or "content"?
…:login-button size="medium" length="short" onlogin="facebook_onlogin_ready()Attribute "onlogin" is not a valid attribute. Did you mean "scrolling" or "onload"?
…ize="medium" length="short" onlogin="facebook_onlogin_ready();" background="dAttribute "background" exists, but can not be used for this element.
…cebook_onlogin_ready();" background="dark"></fb:login-button>element "fb:login-button" undefined
…_onlogin_ready();" background="dark"></fb:login-button>Comment #3
Aniara.io commentedSame errors as #2, anyone working on a fix?
Comment #4
gibus commentedjust try what I've proposed in #1
Comment #5
gregarios commentedStill invalid.
Comment #6
vectoroc commentedToo much work to fix this little problem
Comment #7
gh0st commentedThat solved the problem for me.
If you steel have this problem do this few steps:
1. Go to your fbconnect folder and locate this file "fbconnect.module"
2. Open the file with your favorite text editor
3. Locate the fbconnect_render_button fonction
4. remplace the foction return by :
5. Add variable $src in the same fonction like this :
$src = "http://www.mamak.com/images/fbconnect.png";
That's it ! Hope that help you
Comment #8
mattwfx commentedButton doesn't work for me. :/ Where it can be a problem?
Comment #9
vectoroc commentedhttp://drupal.org/node/365584#comment-3539890
guys, look in README.txt sometimes ;)
Comment #10
thriftyngreen commentedoh seriously the readme txt is not definitive at all.
Comment #11
liormark commentedOk, after going over literally hundreds of these posts, I finally found a quick and easy way to get a valid page with a Like button (or any other facebook widget) on it.
Just a fewlines of code really, take a look at http://www.liormark.com/develop/development-articles/facebook-fbml-w3c-v...
Comment #12
thriftyngreen commentedmy god thank you!