Registration Error - Unknown modifier '\'

5 views
Skip to first unread message

Birce-Ozdurmus

unread,
Jan 6, 2008, 2:18:12 PM1/6/08
to NoseRub
Hello,

I have downloaded noserub-0.5.3.tar.gz and installed everything
without any problems.
I am trying to register a new account but I get the following error:

Warning (2): preg_match() [function.preg-match]: Unknown modifier
'\' [CORE/cake/libs/validation.php, line 718] and the error on the
view: "Valid characters: letters, numbers, underscores, dashes and
dots only" even I am typing "pudra"

the value of the object at that step is as follows:
Validation Object ( [check] => localhost:8888/noserub/pudra [regex]
=> /^[\w./\-_]+$/ismD [country] => [deep] => [type] => [errors] =>
Array ( ) [_log] => ) localhost:8888/noserub/pudra

I saw a similar issue (173) on code.google.com on the project page
related with the password field which is fixed now.

Can you help fixing this?

Thanks

Dirk Olbertz

unread,
Jan 6, 2008, 2:37:51 PM1/6/08
to NoseRub
Hi,

go to /noserub/app/config and open bootstrap.php. There, replace the
line for "NOSERUB_VALID_USERNAME' with this line:
define('NOSERUB_VALID_USERNAME', '/^[\w.-_]+$/ism');

I will fix the trunk and release as soon as I know, what went wrong
here.

Cheers,
Dirk

Birce-Ozdurmus

unread,
Jan 6, 2008, 2:54:57 PM1/6/08
to NoseRub
Hello,

It worked. Thank a lot.

Cheers

tkoeppen

unread,
Jan 12, 2008, 8:09:28 AM1/12/08
to NoseRub
got the same issue with registration.
thanks for this tip.

Thomas
Reply all
Reply to author
Forward
0 new messages