View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011269 | mantisbt | integration | public | 2009-12-07 12:29 | 2015-11-09 14:37 |
| Reporter | sebdelyon | Assigned To | dregad | ||
| Priority | high | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 1.2.0rc2 | ||||
| Summary | 0011269: Problems with apache virtualhost configuration | ||||
| Description | I have an unique webserver on which I configured virtualhost for each application which are : here the conf file of my apache webserver: <VirtualHost *:80> <VirtualHost *:80> <VirtualHost *:80> With this configuration, I can access version 1.8 of mantis by typing http://mantis118.mydomain in the web navigator When I try to access the new version by typing http://mantis12.mydomain, the url is transformed into "http://mantis12.mydomain\/login_page.php" When I access directly the login page (by deleting the backslash from the previous url), I read the following error : SYSTEM WARNING: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 84 SYSTEM WARNING: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 110 SYSTEM WARNING: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 84 And the access log file contains the value "%5C" instead of "mantis" inside each path : 127.0.0.1 - - [07/Dec/2009:15:37:20 +0100] "GET / HTTP/1.1" 500 26 | ||||
| Tags | No tags attached. | ||||
|
Mantis 1.2.x requires a minimum PHP version of 5.1 or newer. The error you are seeing is most likely a result of using an older PHP version. |
|
|
I forgot to mention that my work environment is based on WampServer2.0i I noticed that the error is raised by the function "string_sanitize_url( $p_url, $p_return_absolute = false )" in script string_api.php |
|
|
Finally, I managed to hide this problem by making the following changes in file config_default_inc.php I add the test: with my server configuration, calculated value of $t_path is "\" whereas the variable must be empty to work. |
|
|
I do have the same problem with release version 1.2.0 of mantisbt. My environment is a non virtual Apache installation. PHP-Version is 5.2.1. Mantis 1.1.8 worked without any problems. I also installed 1.2.0 on a *nix based system without any problem. The little hack from sebdelyon also worked for me. |
|
|
Same here. Sebdelyon patch did the trick. I have had this problem since the first releases of 1.2, forcing me to stay with 1.1.18. Never managed to find why. So a HUGE THANK YOU Mr. Sebdelyon. |
|
|
The logic to set $g_path has been modified in 1.2.12. Feel free to reopen this issue if the problem persists in the latest version. |
|