Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 11:30 am EST

Geeklog Forums

people cannot register


geeklog-fan

Anonymous
Hello,

I updated my site to 1.3.9rc1

But now people can't register anymore.

I bypassed the problem (because the error was also there with the CVS version) by replacing the code that checks if the user email address is valid by this:


/**
* Checks to see if email address is valid.
*
* This function checks to see if an email address is in the correct from.
*
* @param string $email Email address to verify
* @return boolean True if valid otherwise false
*
*/
function COM_isemail( $email )
{
if( eregi( "^([-_0-9a-z])+([-._0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*.[a-z]{2,3}$", $email, $check ))
{
return TRUE;
}
else
{
return FALSE;
}
}


but that doesn't work anymore.. what's wrong?

thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
What does "But now people can't register anymore" mean exactly? What happens?

Are you using the PEAR classes or not ($_CONF['have_pear'])? And which version of PHP is your site running on?

bye, Dirk
 Quote

geeklog-fan

Anonymous
When people have entered their email address and their username they get a blank page

I am running PHP Version 4.3.0 and pear is disabled in config.php

how do i know if pear is installed? which section, which directive/variable?

do I have to enable pear in config.php or should it work without it?

this is in my server error log:

[Wed Feb 18 12:46:25 2004] [error] PHP Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /home/*******/system/pear/Mail/mail.php on line 112

[Wed Feb 18 12:46:25 2004] [error] PHP Fatal error: Call to a member function on a non-object in /home/*******/www/lib-common.php on line 3211


the errors says something about pear, but it's disabled in config.php, how's that possible? Neutral
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can't really disable PEAR. You can either chose to use the PEAR classes included with Geeklog (that's $_CONF['have_pear'] = false) or use the PEAR classes already installed on your server ($_CONF['have_pear'] = true).

Unfortunately, there doesn't seem to be a simple way to find out whether PEAR is already installed or not (other than trying to use it). So if in doubt, leave it at $_CONF['have_pear'] = false.

bye, Dirk
 Quote

geeklog-fan

Anonymous
ok, i understand, but people still can't register Dirk
 Quote

geeklog-fan

Anonymous
also the daily digest isn't sent anymore Frown
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
From the error message you quoted above, it appears that PEAR::Mail is using the fifth parameter in the call to PHP's mail() function and that your hosting service has configured PHP so that that is not allowed.

In earlier versions, when Geeklog was calling mail() by itself, it wasn't using that fifth parameter, so you didn't have that problem before.

So it appears you can't use the 'backend' => 'mail' option on your site. Try switching to 'sendmail' or 'smtp' instead.

bye, Dirk
 Quote

All times are EST. The time is now 11:30 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content