01017: CGI Error - skin

Summary: CGI Error - skin
Created: 2008-04-06 07:05
Status: Closed - replied
Category: Bug
Assigned:
Priority: 3
Version: 2.1.27
OS: Win32 / Apache2.2.6 / CGI Php 4.4.7

Description: PmWiki's skin does not work!

The error code is in pmwiki.php file, line 74: change from old definition ...

  $ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];

to new definition ...

  $ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];

For a huge number of installations, like on CleanUrls or Apache MultiViews, PmWiki needs 'SCRIPT_NAME' and not 'PHP_SELF' for the script url. In case it doesn't work for you, please add the line of code you suggest in local/config.php and don't modify pmwiki.php -- this way it should keep working even if you upgrade to a new version. --Petko October 03, 2009, at 06:55 AM