Author Topic: upload problem  (Read 5621 times)

0 Members and 1 Guest are viewing this topic.

Offline Knightfell

  • Pre-Newbie
  • Posts: 4
    • View Profile
upload problem
« 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
upload problem
« Reply #1 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Knightfell

  • Pre-Newbie
  • Posts: 4
    • View Profile
upload problem
« Reply #2 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
upload problem
« Reply #3 on: July 04, 2002, 12:39:14 AM »
Hi,

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

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Knightfell

  • Pre-Newbie
  • Posts: 4
    • View Profile
upload problem
« Reply #4 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.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
upload problem
« Reply #5 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Knightfell

  • Pre-Newbie
  • Posts: 4
    • View Profile
upload problem
« Reply #6 on: July 04, 2002, 03:00:17 PM »
Thank you Jan,
It worked everything seems fine now  :D
cheers,
Knightfell