Invalid symbols in head of the page

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Tempus

Invalid symbols in head of the page

Post 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"><![CDATA[
....
Please, help me. It's urgent!  :(
Last edited by Tempus on Tue Jul 24, 2007 10:56 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Invalid symbols in head of the page

Post 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
Tempus

Re: Invalid symbols in head of the page

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Invalid symbols in head of the page

Post by RonnyK »

And "clearing cache" in global settings.

Ronny
Tempus

Re: Invalid symbols in head of the page

Post by Tempus »

Where is it "global settings"?
I'm don't see "clearing cache" :(
Tempus

Re: Invalid symbols in head of the page

Post by Tempus »

Sorry. I've find.

But nothing matters.
Tempus

Re: Invalid symbols in head of the page

Post by Tempus »

I think that instead of my head code substitute something different.
Tempus

Re: Invalid symbols in head of the page

Post by Tempus »

Oo!
Cache have cleared.
The code "lang="en"" just enabled. But characters

Code: Select all

??????
still there. And this characters also showing in the souce code of the all of backend pages, including login.php?

What's happen?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Invalid symbols in head of the page

Post 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
Tempus

Re: Invalid symbols in head of the page

Post 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" />
Tempus

Re: Invalid symbols in head of the page

Post by Tempus »

Anyone?  :(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Invalid symbols in head of the page

Post by Dr.CSS »

Did you check your config.php file?...
Tempus

Re: Invalid symbols in head of the page

Post by Tempus »

yes of course. all is ok.
Tempus

Re: Invalid symbols in head of the page

Post 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.
::) :)
Locked

Return to “CMSMS Core”