Page 1 of 1
Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 10:38 am
by Tempus
I've hoticed a strange code in the beginning of the every page. This symbols dysplayed in the backend and in the frontend.
It looks like:
Code: Select all
???????????<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" >
<head>
........
I have searched all of the templates - all is ok.
As a result I can't change any content of my site, because I receive a messaga like:
Code: Select all
Error: the XML response that was returned from the server is invalid.
Received:
???????????<?xml version="1.0" encoding="utf-8" ?><xjx><cmd n="as" t="contentlist" p="innerHTML"><
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 11:21 am
by RonnyK
Tempus,
my default template says:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
{* Change lang="en" to the language of your site *}
So there is an additional "lang="en"" at the end. Does it work with "en", or do you get the error then as well,
Ronny
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 12:09 pm
by Tempus
Hm......
I'm trying to change lang="ru" to lang="en" in my template. Nothing matters. Source code (HTML) on the page doesn't change: lang="ru" has left, but in template it has changed.
Where is another head code that writing into the source of the page?
Sorry for my bad english
Thank you
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 12:11 pm
by RonnyK
And "clearing cache" in global settings.
Ronny
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 12:18 pm
by Tempus
Where is it "global settings"?
I'm don't see "clearing cache"

Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 12:20 pm
by Tempus
Sorry. I've find.
But nothing matters.
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 12:23 pm
by Tempus
I think that instead of my head code substitute something different.
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 1:23 pm
by Tempus
Oo!
Cache have cleared.
The code "lang="en"" just enabled. But characters
still there. And this characters also showing in the souce code of the all of backend pages, including login.php?
What's happen?
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 1:29 pm
by RonnyK
You mean that if you got to
site.com/admin
and say "view source", that the question-marks are there. Than I don't have an idea what part of the installation pulls that already.....
If I say view-source, the first view lines say:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CMS Login</title>
Ronny
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 1:52 pm
by Tempus
You mean that if you got to
site.com/admin
and say "view source", that the question-marks are there.
Yes, of course.
My first view lines are:
Code: Select all
???????????<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CMS Login</title>
The site.com first lines of code are similar:
Code: Select all
???????????<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<link rel="stylesheet" type="text/css" href="http://www.site.ru/modules/Album/css/stylesheet.css" />
<title>Site title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 9:15 pm
by Tempus
Anyone?

Re: Invalid symbols in head of the page
Posted: Tue Jul 24, 2007 10:57 pm
by Dr.CSS
Did you check your config.php file?...
Re: Invalid symbols in head of the page
Posted: Wed Jul 25, 2007 6:44 am
by Tempus
yes of course. all is ok.
Re: Invalid symbols in head of the page
Posted: Wed Jul 25, 2007 7:12 am
by Tempus
I've just solved a problem.

Problem was in 4 flies.
1. /modules/Guestbook/lang/ext/ru_RU.php
2. /modules/CompanyDirectory/lang/ru_RU.php
3. Site template
4. config.php
The problem consist in code conversion of files from other coding in UTF-8. If to look contents of these files in the HEX-editor it is possible to see right at the beginning of 4 additional incorrect symbols which at parsing are summarized and stand out in the certain code. I have loaded them in Notepad ++ and have recoded these files in UTF-8, preliminary having checked up on presence of these symbols. After that upload on a server and all has worked. Why these files? It those files which I changed intentionally manually. Someone it can have other files which it for any reasons changed.
All thanks for the help.
