Installation error: Warning: preg_match() [function.preg-mat

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
donohara
Posts: 1
Joined: 04 Jul 2009, 02:50

Installation error: Warning: preg_match() [function.preg-mat

Post by donohara »

mantisbt 1.2.0rc1
PHP 5.2.9-2
MySQL 5.1.33

I am getting this error in any page I try to execute (admin/index.php, check.php).
It looked like the installation worked (the db has been created).

Any idea how to correct this error? I displayed the values of the variables
being used in the statement:

Thanks,
Don
--------------------------------------------------------
t_docroot = C:/@_dev/wamp/www
t_file_path = C:/mantisbt/config_defaults_inc.php

Warning: preg_match() [function.preg-match]: Unknown modifier '_' in C:\mantisbt\config_defaults_inc.php on line 136
Possible Whitespace/Error in Configuration File - Aborting. Output so far follows:
string(272) "t_docroot = C:/@_dev/wamp/www
t_file_path = C:/mantisbt/config_defaults_inc.php

Warning: preg_match() [function.preg-match]: Unknown modifier '_' in C:\mantisbt\config_defaults_inc.php on line 136
"
mykbaker
Posts: 16
Joined: 02 Jul 2009, 13:14

Re: Installation error: Warning: preg_match() [function.preg-mat

Post by mykbaker »

I got this error too, you may have empty lines at the end of your config. The parser that handles the configs for 1.2 seems to be more picky.
arebeko
Posts: 1
Joined: 21 Nov 2009, 17:16

Re: Installation error: Warning: preg_match() [function.preg-mat

Post by arebeko »

That's it.
Empty line at the end of config-inc.php makes a trouble.
Post Reply