Loading...
 
Skip to main content

Incorrect button URLs on Windows

Status
Closed
Subject
Incorrect button URLs on Windows
Version
3.x
Category
  • Error
Feature
Wiki (page view, edit, history, rename, etc)
Resolution status
Fixed or Solved
Submitted by
VladV
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

I have a problem similar to this oneQuestion: "Edit" button in Wiki points to "/\/tiki-editpage.php?page=HomePage".
Other buttons also have invalid URLs, links have correct URLs.

Configuration: TikiWiki 3.2, Windows XP, Apache2.2, TikiWiki is in the server root directory.

Solution

It seems, the bug is in block.self_link.php and function.query.php in lib\smarty_tiki.
The following code likely fixes it:

block.self_link.php, line 56
Copy to clipboard
$self_dir = dirname($_SERVER['PHP_SELF']); $params['_script'] = ( $self_dir == '\\' || $self_dir == '/' ? '' : $self_dir ).'/'.$params['_script'];

function.query.php, line 138
Copy to clipboard
$self_dir = dirname($_SERVER['PHP_SELF']); $php_self = ( $self_dir == '\\' || $self_dir == '/' ? '' : $self_dir ).'/'.$php_self;
Workaround
Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2811
Created
Thursday 15 October, 2009 11:45:05 UTC
by Unknown
LastModif
Monday 01 June, 2026 16:56:23 UTC


Show PHP error messages