View Issue Details

IDProjectCategoryView StatusLast Update
0009266mantisbtupgradepublic2012-10-22 15:54
Reporterkaystrobach Assigned Tograngeway  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0a1 
Fixed in Version1.2.0a2 
Summary0009266: webpath to the mantis installation is calculated wrong, if mantis is installed in the root directory of a webserver
Description

in config_defaults.inc.php the following is set from line 135 to 136

# Short web path without the domain name
$g_short_path           = $t_path . '/';

this causes mantis get get // as "root-folder", if installed in the docroot - that doesn't work

regards kay

PS: the mindmap is pretty cool

Steps To Reproduce

install mantis 1.2.0a in the docroot of a apache webserver

Additional Information

i solved the issue for me, by adding
#BugFix
$g_short_path = '';

to my config_inc.php

so config_defaults.inc.php has to be changed to fix it for all:

Short web path without the domain name

if($t_path==='/') {
    #mantis in docroot
    $g_short_path = $t_path;
} else {
    #mantis not in docroot
    $g_short_path           = $t_path . '/';
}
TagsNo tags attached.

Relationships

related to 0009043 closedjreese Invalid link to login page after installation (bug + patch) 

Activities

kaystrobach

kaystrobach

2008-06-15 10:13

reporter   ~0018094

some time an testing later:
the following let work the projectselector and the styles:
config_inc.php:

if(basename($_SERVER['SCRIPT_NAME'])!=='set_project.php') {
    $g_short_path = '';
}

i've no time to see, why this problem appears, but this is a relativly simple solution for installing in a root directory

giallu

giallu

2008-06-16 03:55

reporter   ~0018099

please also see 0009043

jreese

jreese

2008-06-16 11:26

reporter   ~0018103

kaystrobach: the 'official' method to handle Mantis incorrectly detecting the relative path is to actually set $g_short_path in your config_inc.php as appropriate. I will attempt to enhance the current detection at some point, as it can be broekn by *nix symlinking or Apache URL rewriting, but in the mean time, manually setting $g_short_path is the preferred solution.

cas

cas

2008-06-16 13:00

reporter   ~0018106

Eeven if it is not installed in the root, make this setting:
$g_short_path = "";

grangeway

grangeway

2008-07-31 13:48

reporter   ~0018964

Hello

Thank you for taking the time to report a problem with mantis.

A Possible Fix for this issue has been commited to SVN, for inclusion in the 1.2.0a2 release due within the next few weeks.

If you are able to reproduce this bug in the 1.2.0a2 release, or SVN trunk code, Please change the status back to "Open", or open a new issue report with more information.

Again, thank you for your continued support and report.

kaystrobach

kaystrobach

2008-08-11 11:06

reporter   ~0019110

i had the following problem after updating to 1.2.0a2
i have no anonymous access enabled, so mantis should redirect me directly to the login_page.php

but it redirected me to http://doman/path/http://domain/path/login_page.php

$g_path=''; resolved the problem ... i don't know wether this is a bug or a feature ;)

regards kay

atrol

atrol

2010-09-12 16:25

developer   ~0026691

kaystrobach, could you please check if this is fixed with lastest version without setting $g_path ?

dregad

dregad

2012-10-10 13:15

developer   ~0033138

kaystrobach,

You did not provide any feedback; I am therefore assuming that the problem is fixed with grangeway's fix mentioned in 0009266:0018964

Feel free to reopen the issue at a later time and provide the requested information.