4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Knightfell on July 03, 2002, 08:43:56 PM
-
when i try to upload an image as a user, i get this message:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource 'http://knightfell.port5.com/member.php?action=uploadform&cat_id=1'. Line 8, Position 11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
----------^
Any ideas why this happens? everything else seems to work fine.
Knightfell
-
Try to remove this code from the top of your template "header.html":
<!-- <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr"> -->
Greets Jan
-
thanks jan,
that got the page to load. now the only thing wrong is that now i get
Warning: Wrong parameter count for preg_replace() in ./includes/sessions.php on line 368
at top of upload page
cheers,
knightfell
-
Hi,
which PHP Version are you running? Can you post a URL?
Greets Jan
-
sure it's http://knightfell.port5.com
not sure what version my server is using.
but even if i can't get rid of the error text, the script still works.
-
Hi,
i guess you are running a php version lower than required. Try to change line 368 in sessions.php from
$url = preg_replace("/&/", "?", $url, 1);
to
$url = preg_replace("/&/", "?", $url);
Greets Jan
-
Thank you Jan,
It worked everything seems fine now :D
cheers,
Knightfell