4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Knightfell on July 03, 2002, 08:43:56 PM

Title: upload problem
Post 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
Title: upload problem
Post by: Jan on July 03, 2002, 11:32:16 PM
Try to remove this code from the top of your template "header.html":

Code: [Select]
<!-- <?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
Title: upload problem
Post by: Knightfell on July 04, 2002, 12:31:18 AM
thanks jan,
that got the page to load. now the only thing wrong is that now i get
Quote
Warning: Wrong parameter count for preg_replace() in ./includes/sessions.php on line 368

at top of upload page
cheers,
knightfell
Title: upload problem
Post by: Jan on July 04, 2002, 12:39:14 AM
Hi,

which PHP Version are you running? Can you post a URL?

Greets Jan
Title: upload problem
Post by: Knightfell on July 04, 2002, 12:42:52 AM
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.
Title: upload problem
Post by: Jan on July 04, 2002, 09:16:17 AM
Hi,

i guess you are running a php version lower than required. Try to change line 368 in sessions.php from

Code: [Select]
$url = preg_replace("/&/", "?", $url, 1);
to
Code: [Select]
$url = preg_replace("/&/", "?", $url);
Greets Jan
Title: upload problem
Post by: Knightfell on July 04, 2002, 03:00:17 PM
Thank you Jan,
It worked everything seems fine now  :D
cheers,
Knightfell