View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010652 | mantisbt | installation | public | 2009-06-30 01:02 | 2010-09-19 03:12 |
Reporter | andy_mbt | Assigned To | jreese | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 1.2.0rc1 | ||||
Summary | 0010652: Clean install returns errors if Mantis installed in root | ||||
Description | If the URL to mantis is simply a domain or a domain with subdomains (like https://mantis.int.domain.com/), the installation will complete successfully however Mantis will lose formatting/images and will return the following errors when you visit it: SYSTEM WARNING: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 111 If you then move your Mantis install to a subfolder (making the above URL to Mantis now look like https://mantis.int.domain.com/mantis/), everything will return to normal. Note: I'm running Mantis over SSL, hence the https. I haven't tried it over http. | ||||
Additional Information | I've had to do the following to solve it (in config_inc.php): With that, I can access Mantis error-free even when installed in my root folder by going to https://mantis.int.domain.com/ I'm thinking the errors are caused by the default values the above variables take (in config_defaults_inc.php): If this is done on purpose, I would suggest adding the above variables to the installer and asking users to fill them out before initiating the install to prevent post-install errors. | ||||
Tags | No tags attached. | ||||
0010535 might be related to this as well. |
|
Correction: I removed [$g_absolute_path = 'C:/servers/XDEV/zdata/htdocs/example/mantis/';] from config_inc.php and my Mantis install still works, so I guess only the other 2 variables need to be configured manually to solve the above issue. |
|
This is repeatable on 1.2.0 Final on a WAMP stack. The error is in the in config_defaults_inc.php The calculation of $t_path should move the lines from out of its current if-statement if ( '/' == $t_path || '\' == $t_path ) { to just before $t_path = rtrim($t_path, '/'); |
|
Is the URL https://mantis.int.domain.com/ defined by vhost? |
|