Elxis CMS Forum

Support => General => Topic started by: merlin on November 19, 2009, 17:20:06

Title: 2x DOCTYPE in html code
Post by: merlin on November 19, 2009, 17:20:06
Hallo,

ich have a little problem.
in my html code is a double DOCTYPE

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
</head>
<body style="direction: ltr;">
<br>
</body></html>

<?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" lang="de" xml:lang="de">
<head>

my template file looks this:

Code: [Select]
<?php
defined
( &#39;_VALID_MOS&#39; ) or die( &#39;Direct Access to this location is not allowed.&#39; );
$iso explode( &#39;=&#39;, _ISO );
echo &#39;<?xml version="1.0" encoding="&#39;.$iso[1].&#39;"?&#39; .&#39;>&#39;._LEND;
?>

<!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" lang="<?php echo _LANGUAGE?>" xml:lang="<?php echo _LANGUAGE?>"<?php echo (_GEM_RTL) ? &#39; dir="rtl"&#39; : &#39;&#39;; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mainframe->getCfg(&#39;live_site&#39;); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css<?php echo (_GEM_RTL) ? &#39;-rtl&#39; : &#39;&#39;; ?>.css" rel="stylesheet" type="text/css" media="all" />
<?php if ( $my->id ) { initEditor(); } ?>
</head>

i have searched around in the forum and via google - i cant find anything helpfull.

hope someone have an idea or hint.

when you need further information, let me know

many thanks in advance!

specs:
ELXIS 2009.0
Ubuntu 8.10 64bit with Apache2, mysql5, php5
Title: Re: 2x DOCTYPE in html code
Post by: ks-net on November 19, 2009, 18:48:35
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
</head>
<body style="direction: ltr;">
<br>
</body></html>


actually prints a complete  html page(doctype 4.01)  above your index of your tpl....

not the tpl but something else do it ...

have you touched any elxis files?
any javascript in tpl that make this happen?
any hackers at your installation trying to load their page?
any htaccess that makes this happen?

check them all first...
Title: Re: 2x DOCTYPE in html code
Post by: merlin on November 19, 2009, 20:00:08
thank fpr your repley.

Quote
1. not the tpl but something else do it ...

2. have you touched any elxis files?
3. any javascript in tpl that make this happen?
4. any hackers at your installation trying to load their page?
5. any htaccess that makes this happen?

1. that was also my point of view
2. think not ... only floodblocker (blocked my own IP) and configuration.php (with gzip enabled, site wont load) are edited thru nano in ssh shell
3. the template itself use no javascript - only what self loaded from elxis.
4. how can i check it? i use strong passwords and installed elxis like in the guide.
5. i have disabled .htacces (in root folder) for testing - nothing changed. is there a another one?

- 6. have also checked apache - no failure found... but iam not a proffessional (5 other vhosts run without problems)
- 7. i will make an update/reinstall to 2009.1 - hope it helps
- 8. a check with updiag shows some errors
Code: [Select]
Warnung/Warning administrator/tools/defender/config.php Datei braucht Aktualisierung/Needs to be updated
Warnung/Warning administrator/tools/defender/logs/allowed.txt Datei braucht Aktualisierung/Needs to be updated
Warnung/Warning administrator/tools/floodblocker/config.php Datei braucht Aktualisierung/Needs to be updated
Warnung/Warning administrator/tools/lrecorder/config.php Datei braucht Aktualisierung/Needs to be updated
Warnung/Warning administrator/tools/lrecorder/logs/logs.txt Datei braucht Aktualisierung/Needs to be updated
Warnung/Warning configuration.php Datei braucht Aktualisierung/Needs to be updated
Warnung/Warning htaccess.txt Datei braucht Aktualisierung/Needs to be updated
Warnung/Warning offline.php Datei braucht Aktualisierung/Needs to be updated
Warnung/Warning tmpr/index.html Datei braucht Aktualisierung/Needs to be updated