#382 File Gals:IIS REQUEST_URI not set in file download

BRANCH-1-8_(CVS)
closed-fixed
Oliver Hertel
PHP Error (166)
5
2004-03-09
2003-06-25
Michael Medved
No

Install on IIS
Request to view file in "File Gallery" creates error
Undefined index: REQUEST_URI on line 54 of tiki-
download-file.php

Suggested fix at

http://alt.thetinfoilhat.com/htmldoc/tikiDoc_appendix.htm
l

if (!IsSet($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = '';

if (IsSet($_SERVER['PHP_SELF'])) {
$_SERVER['REQUEST_URI'] = $_SERVER
['REQUEST_URI'].$_SERVER['PHP_SELF'];
}

if (IsSet($_SERVER['QUERY_STRING'])) {
$_SERVER['REQUEST_URI'] = $_SERVER
['REQUEST_URI'].'?'.$_SERVER['QUERY_STRING'];
}
}

inserted at line 53
works fine.

Discussion

  • Dave Sanders
    Dave Sanders
    2003-07-06

    Logged In: YES
    user_id=6717

    Updating this item for category / group / subject line or other
    data. No real change to the item, just house-keeping.

     
  • Dave Sanders
    Dave Sanders
    2003-07-06

    • labels: --> 544455
    • milestone: --> 316039
     
  • Dave Sanders
    Dave Sanders
    2003-07-06

    • labels: 544455 --> PHP Error
    • summary: IIS REQUEST_URI not set in file download --> File Gals:IIS REQUEST_URI not set in file download
     
  • Robert Orso
    Robert Orso
    2003-09-30

    Logged In: YES
    user_id=591769

    Suggested workaround at
    http://tikiwiki.org/tiki-index.php?page=IisWorkarounds
    catches all similar dependencies at once. No need to "fix"
    every module.

     
  • Oliver Hertel
    Oliver Hertel
    2004-03-09

    • status: open --> closed-fixed
     
  • Oliver Hertel
    Oliver Hertel
    2004-03-09

    Logged In: YES
    user_id=21633

    fixed

     
  • Oliver Hertel
    Oliver Hertel
    2004-03-09

    • milestone: 316039 --> BRANCH-1-8_(CVS)
    • assigned_to: nobody --> ohertel