After testing the application this afternoon (an liking it), I decided to upload it to my web server. Unfortunally, it stopped working.
Seems like the $_SERVER['PATH_INFO'] (in the uri class) is not returning anything, therefore anything further the projectlisting is not accessible any more.
Please review and let me know, thanks.
What web server are you running? Apache/Lighttpd/nginx/IIS ?
Linux, Centos, Apache Another fact is that I had already a main application running in public folder and in order to install traq 0.5 I had to create another folder for it's dedicated use. In other workds, traq 0.5 was not installed directly on the virtualhost directory, but in a sub-folder.
Traq is designed to be accessed directly, not through a sub folder.
I have fixed it in my hosting-server, by I had to modify the URI calls as indicated bellow:
<?php /**
/**
@version $Rev: 21 $ */ class URI { public $seg = array();
public function __construct() { / Modified by Fabian / $installationDir="traq/"; $pathinfo = trim($_SERVER['REQUEST_URI'],'/'); $pathinfo = trim(str_replace($installationDir,"",$pathinfo)); if($installationDir==$pathinfo."/") $pathinfo=""; /////////////////////////////////////////////////////////////////
}
public function geturi() { return $this->anchor().implode('/',$this->seg).'/'; }
public function anchor($segments = array()) {
}
private function array_to_uri($segments = array()) { if(count($segments) < 1 or !is_array($segments)) { return; } foreach($segments as $key => $val) { $segs[] = $val; } return implode('/',$segs).'/'; }
} ?>
Would you please analyze these changes, it might not be the best way to solve it,but it worked for me. Hope that this helps you.