Jump to content

Customer registration error


Guest LesR

Recommended Posts

Guest LesR

Hi

Every time someone registers they get the following error:-

"Warning: preg_match() [function.preg-match]: Unknown modifier '/' in ...."

The registration works and they get the welcome email but they are left on a blank page with the above error message.

Does anyone know how to overcome this problem?

Any help would be much appreciated

Thanks

Les

Link to comment
Share on other sites

"Warning: preg_match() [function.preg-match]: Unknown modifier '/' in ...."

I think it is an error in includes/content/reg.inc.php around line 185. Find this code

if (preg_match('/^http(s?):\/\//i', $redir) && !preg_match('/^'.$glob['storeURL'].'|^'.$config['storeURL_SSL'].'/i', $redir)) {

				die("Redirect URL not allowed!");




Remove one of the / here.... http(s?):\/\//i', $redir). It should now look like this


if (preg_match('/^http(s?):\/\/i', $redir) && !preg_match('/^'.$glob['storeURL'].'|^'.$config['storeURL_SSL'].'/i', $redir)) {

				die("Redirect URL not allowed!");

Hope that does it

Lee

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...