Is this path issue? or a problem defining REQUEST_URI?

Here's my site and the errors that I get after re-installing zenphoto: http://dspkable.com

I did change the default directory (IIS) for the site from /zenphoto to -> /zenphoto/zen because I noticed a index.php file file in each folder.

Notice: Undefined index: REQUEST_URI in C:\webs\zenphoto\zen\template-functions.php on line 40

Notice: Undefined index: REQUEST_URI in C:\webs\zenphoto\zen\Sajax.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at C:\webs\zenphoto\zen\template-functions.php:40) in C:\webs\zenphoto\index.php on line 9

Any assistance in hammering out my problem setting this up is much appreciated. Thank you.

Comments

  • Well, I've hoped for 2 weeks that I'd get some kind of response or advice but no luck so far. Does anyone have a suggestions on a solution to this kind of issue, or do I need to include some more information. Thanks for any replies.

    -Dspkable
  • trisweb Administrator
    Well it seems to be a problem with IIS's server variables, that's for sure. We know it works great on Apache...

    IIS *should* have REQUEST_URI though...

    Take a look at this post from Mambo and see if it helps to set the REQUEST_URI variable.

    I'd put this code in your zp_config.php, under the line:

    `// define('SERVERPATH', 'D:My Projectszenphoto');`

    `$_SERVER['REQUEST_URI'] = (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']);

    // Append the query string if it exists and isn't null

    if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {

    $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];

    }`

    But it's funny, I've never heard of this problem with IIS, all versions I've tested/others have tested haven't needed this. So maybe there's a setting or something, I don't know. But give this a shot, it might work.

Sign In or Register to comment.