#42 - $_SERVER['PATH_INFO'] issue, traq not working

Description

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.

Activity

16 years and 9 months ago by fabianCastle

  • Priority Normal Highest

16 years and 9 months ago by fabianCastle

  • Component Tickets Core
  • Status New Reopened

I have fixed it in my hosting-server, by I had to modify the URI calls as indicated bellow:

seg = $segments; } public function geturi() { return $this->anchor().implode('/',$this->seg).'/'; } public function anchor($segments = array()) { if(!is_array($segments)) { $segments = func_get_args(); } /* Modified by Fabian */ $installationDir= "http://". $_SERVER["HTTP_HOST"]. "/traq/"; $path = str_replace('index.php','',$_SERVER['SCRIPT_NAME']); return $installationDir . $this->array_to_uri($segments); //////////////////////////////////////////////////////////////////// } 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.

16 years and 9 months ago by Jack

What web server are you running? Apache/Lighttpd/nginx/IIS ?

16 years and 9 months ago by Jack

  • Status Reopened New

16 years and 9 months ago by fabianCastle

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.

Jack closed as Invalid 16 years and 9 months ago

Traq is designed to be accessed directly, not through a sub folder.

1 year and 5 months ago by Jack

  • Status Invalid Closed

Status

Closed
-
Highest

Details

Defect
0.6
Core
-
Blocker

Tracking

fabianCastle
16 years and 9 months ago
1 year and 5 months ago
0
-
-