Problem with registering new users [message #4840] |
Fri, 09 August 2002 08:49 |
Kerhold
Messages: 18 Registered: April 2002 Location: Warsaw, Poland
Karma: 0
|
Junior Member |
|
|
Hello!
I have strange problem which I couln't solve right now.
After upgrading to FUDforum 2.2.3 new users by registering are
getting a message like this:
Aby aktywowac Twoje konto, przejdz do adresu ponizej:
http://www.linux.com.pl/forum/index.phpt=emailconf&conf_key=ef8a892842f fa9920861ee0ff0f9e158
The problem is that that link doesn't exist and maybe it should have '?' sign afer index.php.
The strange thing is that in tmpl in polish language apropriate text is:
Aby aktywowac Twoje konto, przejdz do adresu ponizej:\n\n{GVAR: WWW_ROOT}emailconf.php?conf_key={VAR: usr->conf_key}\n\n
which is of course not the same an user is getting.
I searched in admin panel for template rebuilding but in this version I couldn't find (maybe it is somehow automatic now).
What could I do to correct those emails for new users?
Best regards,
Common sense is not so common.
[Updated on: Fri, 09 August 2002 08:53] Report message to a moderator
|
|
|
Re: Problem with registering new users [message #4841 is a reply to message #4840] |
Fri, 09 August 2002 11:30 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You can correct this problem by upgrading to latest CVS or release 2.2.5
Or if you want simply grab i18n/polish/msg from the CVS and rebuild the theme.
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: Problem with registering new users [message #26604 is a reply to message #26602] |
Thu, 28 July 2005 20:17 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It is a really old version of the forum you are running, to debug it not only pointless but also fruitless.
The error you've reported originally I suspect relates to sending of e-mail, it appears that PHP cannot connect to the SMTP server and is generating the error you are seeing.
FUDforum Core Developer
|
|
|
Re: Problem with registering new users [message #26606 is a reply to message #26588] |
Thu, 28 July 2005 21:02 |
Zaxon Spox
Messages: 9 Registered: July 2005
Karma: 0
|
Junior Member |
|
|
Zaxon Spox wrote on Thu, 28 July 2005 06:10 |
Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\forum\theme\default\register.php:1635) in c:\apache\htdocs\forum\theme\default\register.php on line 1408
|
It is said that cannot add header information:
at line 1635:
function send_email($from, $to, $subj, $body, $header='')
{
if( empty($to) || !count($to) ) return;
if( $GLOBALS['USE_SMTP'] == 'Y' ) {
$smtp = new fud_smtp;
$smtp->msg = $body;
$smtp->subject = $subj;
$smtp->to = $to;
$smtp->from = $from;
$smtp->headers = $header;
$smtp->send_smtp_email();
}
else {
$bcc='';
if( is_array($to) ) {
if( ($a = count($to)) > 1 ) {
$bcc = "Bcc: ";
for( $i=1; $i<$a; $i++ ) $bcc .= $to[$i].', ';
$bcc = substr($bcc,0,-2);
}
$to = $to[0];
}
if( $header )
$header = "\n".str_replace("\r", "", $header);
else if( $bcc )
$bcc = "\n".$bcc;
THIS LINE mail($to, $subj, str_replace("\r", "", $body), "From: $from\nErrors-To: $from\nReturn-Path: $from\nX-Mailer: FUDforum v".$GLOBALS['FORUM_VERSION'].$header.$bcc);
}
}
& at 1408 line:
function check_return()
{
if ( empty($GLOBALS['returnto']) )
$GLOBALS['returnto']='http://localhost/forum/index.php?'._rsidl;
else {
$url_bits = parse_url($GLOBALS['returnto']);
$GLOBALS['returnto']='http://localhost/forum/index.php?'._rsidl;
if( $url_bits['query'] ) {
parse_str(str_replace('&amp;', '&', $url_bits['query']), $url_args);
if( is_array($url_args) ) {
foreach( $url_args as $k => $v ) {
if( $k == 'S' || $k == 'rid' ) continue;
$GLOBALS['returnto'] .= '&'.$k.'='.urlencode($v);
}
}
}
}
THIS LINE header("Location: ".$GLOBALS['returnto']);
exit();
}class fud_smtp
{
What to do? Is there any solution? Mayby I just del somthing like barbarians do...
[Updated on: Thu, 28 July 2005 21:03] Report message to a moderator
|
|
|
Re: Problem with registering new users [message #26607 is a reply to message #26606] |
Thu, 28 July 2005 21:11 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It cannot send a header because the function failed and generated an error message that got printed to screen. Once that has happened headers could not be sent. Try disabling FUDforum's built-in SMTP making it use PHP's native mail() function.
FUDforum Core Developer
|
|
|
|
|
|
Re: Problem with registering new users [message #26624 is a reply to message #26611] |
Fri, 29 July 2005 13:18 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
That sounds logical, I suspect on "test" server network code may have been disabled all together preventing you from connecting to SMTP.
FUDforum Core Developer
|
|
|
|