View Issue Details

IDProjectCategoryView StatusLast Update
0008716mantisbtbugtrackerpublic2008-01-19 04:25
Reporterpva Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
OSGentoo LinuxOS Version2.6.22 
Product Version1.1.0 
Summary0008716: File does not exist: /var/www/localhost/htdocs/{images,css}
Description

But after installation of mantisdb-1.1.0 I see the following messages in apach2 log:

[Tue Jan 08 02:02:32 2008] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/images, referer: http://localhost/mantisbt/view_all_bug_page.php
[Tue Jan 08 02:03:05 2008] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/css, referer: http://localhost/mantisbt/manage_user_page.php

mantisbt is installed into /var/www/localhost/htdocs/mantisbt directory. Downgrade to previous 1.0.8 version fixes the problem. Is this regression. Where does %path% in
$g_icon_path = '%path%images/';
comes from? Thank you for your help.

TagsNo tags attached.

Relationships

duplicate of 0008721 closedvboctor css and icon paths incorrect 

Activities

ave

ave

2008-01-09 02:52

reporter   ~0016598

This seems to occur when the length of the path to your mantis installation is 9 (e.g. /mantisbt).
The solution I have found is to modify line 105 of config_defaults_inc.php as follows.

Original:
if ( $t_soap_api_path_pos == ( strlen( $t_path ) - strlen( $t_soap_api_path ) ) ) {

Modified:
if ( $t_soap_api_path_pos === ( strlen( $t_path ) - strlen( $t_soap_api_path ) ) ) {