In my installation, on some internal links that are represented in an absolute way, there is a backslash between the domain name and the first slash.
Eg when I try to login on http://mydomain.com/index.php, I get redirected to http://mydomain.com\/tiki-login.php, which the server cannot render.
Clean install of:
MS Windows Server 2003 SE SP2 on x86
Apache 2.2.10
MySQL 5.1.30
PHP 5.2.8
TikiWiki 2.2
Tiki resides directly in the DocumentRoot C:\tiki (as it is a dedicated server).
In tiki-setup.php, there is a line
$tikiroot = dirname($_SERVER['PHP_SELF']);
In the documentation of dirname, they state that since PHP 4.3.0, dirname returns unexpected values. The example implies that on Windows dirname('/x') returns '\'.
Therefore, if you install Tiki in the DocumentRoot, _SERVER'PHP_SELF' will be '/filename.php' and $tikiroot will be '\'.
Since this seems to be the only special case, adding
if ($tikiroot == '\\\\') $tikiroot = '/';
somewhere appropriate, eg before
if ( substr($tikiroot,-1,1) != '/' ) $tikiroot .= '/';
works for me. Otherwise, a regex should help. However, I'm not too familiar with Tiki's source; maybe there are other places.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |