Facebook plugin - validation
4 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: February 17, 2013 (RSS)
By Toledoh - February 13, 2013
Hi Guys,
When I use a HTML validating service, I got the following error. Should I do anything about it?
Line 33, Column 79: & did not start a character reference. (& probably should have been escaped as &.)
…dialog/oauth?client_id=XXXXXXX&redirect_uri=http%3A%2F%2FXXXXX%2Fu…
Error Line 33, Column 151: & did not start a character reference. (& probably should have been escaped as &.)
…ect_uri=http%3A%2F%XXXXX%2Fuser-login.php%3Faction%3DfbLogin&scope=email"
Tim (toledoh.com.au)
Hi Tim,
I've done some local testing, and the only character you can use in a URL string is the & symbol for passing variables, so I don't think there is anything you can do about it.
It looks as if your HTML validating service thinks the text is not in a link, and that the & character is going to be used to declare a html special character like . Are there any other errors before these that could cause the validating service to think that?
Thanks
Greg
PHP Programmer - interactivetools.com
By Dave - February 17, 2013
Hi Guys,
When & chars are used in HTML tags they should be html encoded as & to validate.
Tim, try search for display=popup and then adding the following line of code in red below it.
if ($popup) { $url .= "&display=popup"; }
else { $url = str_replace('&','&', $url); }
Let me know if that fixes the validation issues, if so we'll add this fix to the next release.
Thanks!
interactivetools.com