Validation errors, seems to be a problem with FB connect

GK User
Tue Apr 12, 2011 4:25 pm
Hi Guys,

I have a fresh install of Penguin 1.8 on 1.6 but when I go to W3C to validate it I get two warnings and two errors that seem to relate to FB connect, I have tried to disable this plugin and have disabled nearly all mods however I still get the errors:

Validation Output: 2 Errors

1. Warning Line 277, Column 27: character "&" is the first character of a delimiter but occurred as data

if (response.session && $gkFBLoginClicked) {



This message may appear in several cases:
* You tried to include the "<" character in your page: you should escape it as "<"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
2. Warning Line 277, Column 28: character "&" is the first character of a delimiter but occurred as data

if (response.session && $gkFBLoginClicked) {



This message may appear in several cases:
* You tried to include the "<" character in your page: you should escape it as "<"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
3. Error Line 277, Column 27: xmlParseEntityRef: no name

if (response.session && $gkFBLoginClicked) {


4. Error Line 277, Column 28: xmlParseEntityRef: no name

if (response.session && $gkFBLoginClicked) {
User avatar
Expert Boarder

GK User
Wed Apr 13, 2011 10:40 am
as a quick solution, how can I disable FB connect?
User avatar
Expert Boarder

teitbite
Thu Apr 14, 2011 12:10 am
Hi

Please show me which FB connection You have in mind ? I cannot see it in the template ;/
User avatar
Moderator

GK User
Thu Apr 14, 2011 9:07 am
Thanks Teitbite,

This is where I'm working:
http://removed

you can see I've turned off most of the modules to be sure it's a template issue.

Might also be worth looking here:

http://validator.w3.org/check?uri=http% ... ne&group=0
User avatar
Expert Boarder

teitbite
Fri Apr 15, 2011 7:39 am
Hi

I do not understand what's oing on. I've instaled penguinmail myself and there is no errors of validation ;/ Te same with the demo site http://validator.w3.org/check?uri=http% ... ne&group=0

Are You sure there were no changes to the site ? Try maby reinstall the template.
User avatar
Moderator

GK User
Fri Apr 15, 2011 1:06 pm
Ok, reinstalled the template...now I get 47 errors:(

I'm going to switch to another template, I'm stuck for time now :(

Thanks for looking.
User avatar
Expert Boarder

GK User
Mon Jul 18, 2011 8:48 pm
Hello, i got the same problem. looks like ampersand errors. validator says:



Validation Output: 2 Errors

Line 368, Column 27: character "&" is the first character of a delimiter but occurred as data
if (response.session && $gkFBLoginClicked) {

This message may appear in several cases:

You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Line 368, Column 28: character "&" is the first character of a delimiter but occurred as data
if (response.session && $gkFBLoginClicked) {

This message may appear in several cases:

You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Line 368, Column 27: xmlParseEntityRef: no name
if (response.session && $gkFBLoginClicked) {

Line 368, Column 28: xmlParseEntityRef: no name
if (response.session && $gkFBLoginClicked) {

just take a look pls.


can you tell me in which file the source code is?
User avatar
Fresh Boarder

GK User
Mon Jul 18, 2011 9:05 pm
Oh i got it. B)

its in /templates/usedtemplate/layouts/blocks/social.php

in line 46

"if (response.session && $gkFBLoginClicked) {"

Change the "&" in "&amp"; like this:

"if (response.session && $gkFBLoginClicked) {"

and everything works fine in the validation.

dont know how this could happening, i never opened this file before and i dont use the login.

-----------------------------------------------------------------------------------

But thats just a little thing if you are looking at http://validator.w3.org/unicorn/check?u ... nformance#

the unchanged demo of this template got 131 css errors. :unsure:
User avatar
Fresh Boarder

GK User
Mon Jul 18, 2011 9:09 pm
It will be better if you add //<![CDATA[ at start and //]]> at end of the script fragment.
User avatar
Administrator

GK User
Mon Jul 18, 2011 9:16 pm
great thankyou. works too ;-)

can you tell me solution for the css errors too, pls?
hope its just as simple as the cadata command.
User avatar
Fresh Boarder

GK User
Mon Jul 18, 2011 9:28 pm
All "errors" are related to CSS3 values - we cannot remove it ;) Don't worry about it.
User avatar
Administrator

GK User
Mon Jul 18, 2011 9:29 pm
:laugh:
i will try.

have a nice evening, thx for your help.
User avatar
Fresh Boarder


cron