Page 1 of 1

[SOLUTION] Backend XML-Error in Firefox and 1.2.8 150806

Posted: Wed 16. Aug 2006, 20:36
by silver
Hi folks,
after updating to 1.2.8 150806 I get the following error in Firefox when trying to login:

Code: Select all

XML-Verarbeitungsfehler: Syntax-Fehler
Adresse: http://christoph-von-gonschor.de/neu/login.php
Zeile Nr. 1, Spalte 63:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
--------------------------------------------------------------^
a similary error comes in Firefox, when trying to launch upgrade.php:

Code: Select all

XML-Verarbeitungsfehler: Nicht übereinstimmendes Tag. Erwartet: </link>.
Adresse: http://christoph-von-gonschor.de/neu/setup/upgrade.php
Zeile Nr. 16, Spalte 3:</head>
--^
In Firefox also the frontend looks a litte scattered...

In IE everything seems to work well.

What's up? anyone an idea?

Greetz

silver

Posted: Wed 16. Aug 2006, 20:56
by pico

Posted: Wed 16. Aug 2006, 20:56
by silver
prob solved by this:
http://www.phpwcms.info/forum/viewtopic ... 0660#70660

By the way:
does anyone know if this is a general prob with FF?

BR

silver

Posted: Wed 16. Aug 2006, 21:14
by Oliver Georgi
It's a problem in the backend which is not XHTML compatible - so FF uses wrong renderer. My fault ;-).

But there is a setting in conf.inc.php which disables sending such header to the browser:

Code: Select all

$phpwcms['header_XML']        = 0; // Content Type: 1 = application/xhtml+xml, 0 = text/html
Oliver

Posted: Wed 16. Aug 2006, 22:09
by pico
Hi

if in default.inc.php

Code: Select all

header('Content-Type: text/html; charset='.PHPWCMS_CHARSET);
is used for both - it seems to work in IE and FF also with XHTML setting for

Code: Select all

$_use_content_type = 'application/xhtml+xml';
so only the Header Data will bring the FF to work wrong and IE also doesn't work correct.

Posted: Wed 16. Aug 2006, 22:13
by Oliver Georgi
don't mix it here - the setting in conf.inc.php is doing the correct thing. IE does not work with application/xhtml+xml so it is always using text/html.

Oliver