get lost [password going to white screen? NOW SOLVED
« on: March 22, 2015, 10:16:32 PM »
hi all, when i fill out my email adress and request new password it is just going to a white screen, any ideas? thanks,
« Last Edit: March 27, 2015, 05:44:21 PM by mnarkyp77 »

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: get lost [password going to white screen?
« Reply #1 on: March 22, 2015, 10:51:27 PM »
Hi mnarkyp77,

There might be a error in your forgotpass.tpl or a missing {strip} tag
Make sure it has all these in it.
Code: [Select]
{strip}
<div style="vertical-align:top;" >
{assign var="page_hdr01_text" value="{lang mkey='forgotpass_msg1'}"}
{assign var="page_title" value="{lang mkey='forgotpass_msg1'}"}
{include file="page_hdr01.tpl"}
<div class="module_detail_inside">

<div class="line_outer">
<b>{lang mkey='site_links' skey='forgot'}</b><br /><br />
{ if $errmsg != ''}
{assign var="error_message" value=$errmsg}
{include file="display_error.tpl"}
{/if}
{lang mkey='forgotpass_msg2'} <br/> <br />
<form action="getforgotpass.php" method="post">
<input type="text" class="textinput"  name="txtemail" size="30"/>&nbsp;<input type="submit" class="formbutton" value="{lang mkey='retreieve_info'}"/>
</form>
</div>
</div>
</div>
{/strip}
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: get lost [password going to white screen?
« Reply #2 on: March 22, 2015, 10:56:08 PM »
hi Pharg, my problem is after i have input my email address and requested, it then goes to white screen
« Last Edit: March 22, 2015, 11:01:15 PM by mnarkyp77 »

Re: get lost [password going to white screen?
« Reply #3 on: March 22, 2015, 11:02:45 PM »
this is my current file getforgotpass.php
Code: [Select]
<?php
/***********************************************
osDate Open-Source Dating and Matchmaking Script

(c) 2009 TUFaT.com

osDate was created by Darren Gates and Vijay Nair,
and can be downloaded freely from www.TUFaT.com.
It is distributed under the LGPL license.

osDate is free for commercial and non-commercial
uses. You may modify, re-sell, and re-distribute
osDate. Links back to TUFaT.com are appreciated.

This program is distributed in the hope that it
will be useful, but without any warranty, and
without even the implied warranty of merchantability
or fitness for a particular purpose. While strong
efforts have been taken to ensure the reliability,
security, and stability of osDate, all software
carries risk. Your use of osDate means that you
understand and accept the risks of using osDate.

For osDate documentation, change log, community
forum, latest updates, and project details,
please go to www.TUFaT.com  The osDate project is
supported through the sale of skins and add-ons,
which are entirely optional but help with the
development and design effort.
***********************************************/

if ( !defined'SMARTY_DIR' ) ) {
include_once( 'init.php' );
}

$email = isset($_POST['txtemail'])?trim$_POST['txtemail'] ):'';

if ( 
$email == '' ) {

header'location: forgotpass.php?errid=1' );
exit;
}

$row $osDB->getRow'SELECT id, username, firstname, lastname, password FROM ! WHERE email = ?', array( USER_TABLE$email ) );

if ( 
$row && $row['id'] > ) {

$chars 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz';

$pwd '';

for( $i 0$i 8$i++ ) {

$rand = (rand0strlen$chars ) )-1);
$pwd .= $chars{$rand};
}

$osDB->query'UPDATE ! SET password = ? WHERE id=?', array( USER_TABLEmd5$pwd ), $row['id'] ) );

if ($config['forum_installed'] != '' && $config['forum_installed'] != 'None') {

include_once(FORUM_DIR.$config['forum_installed'] . '_forum.php');

forum_modifympass($pwd$row['username']);

$osDB = new osDateDB;

}

$subject get_lang('forgot_password_sub');

$body get_lang('forgot_password'MAIL_FORMAT);

$name $row['firstname'] ;

$body str_replace'#Name#'$name $body );

$body str_replace'#ID#',  $row['username'] , $body );

$body str_replace'#Password#'$pwd$body );

$body str_replace'#LoginLink#',  HTTP_METHOD $_SERVER['SERVER_NAME']  . DOC_ROOT.'login.php' $body );

$body str_replace'#SiteTitle#',  $config['site_name'] , $body );

$From    $config['admin_email'] ;
$To     $name ' <' $email '>';


$success=mailSender($From$To$email$subject$body);
unset($body$subject$row);
if( $success ) {
header'location: forgotpass.php?errid='.PASSWORD_MAIL_SENT );
exit;
}
else {
header'location: forgotpass.php?errid='.MAIL_ERROR );
exit;
}
} else {
header'location: forgotpass.php?errid='.NOT_REGISTERED );
exit;
}
?>

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: get lost [password going to white screen?
« Reply #4 on: March 22, 2015, 11:19:47 PM »
Hi mnarkyp77,

That seems to be correct, I just tested mine and is working fine, here is a copy of all files needed.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: get lost [password going to white screen?
« Reply #5 on: March 22, 2015, 11:23:43 PM »
still no good even overwriting all the files,

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: get lost [password going to white screen?
« Reply #6 on: March 22, 2015, 11:42:47 PM »
still no good even overwriting all the files,
Hi mnarkyp77,

Now that is strange, must be something else associated to them files
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: get lost [password going to white screen?
« Reply #7 on: March 22, 2015, 11:47:39 PM »
well whatever is it has well and truely knackered my site up for opening thats for sure

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: get lost [password going to white screen?
« Reply #8 on: March 23, 2015, 12:01:38 AM »
Hi mnarkyp77,

Yes true to those that forget their passwords.
I will have a further look in what it might be and will have a look at your site.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: get lost [password going to white screen?
« Reply #9 on: March 23, 2015, 12:06:50 AM »
apprecaite your help as always Pharg thanks,  ;)

Re: get lost [password going to white screen?
« Reply #10 on: March 23, 2015, 08:11:46 AM »
The file looks correct, have you tried the sites other mail functions to see if they work?

You could also insert this in your file and see if the white screen gives you a report:
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

Re: get lost [password going to white screen?
« Reply #11 on: March 24, 2015, 12:38:34 PM »
that doesnt work, totally stuffed!!

Re: get lost [password going to white screen?
« Reply #12 on: March 24, 2015, 12:49:05 PM »
hi. ok i have restored the database to an earlier version and when i now input the email it comes back with the following....DB Error: not found

Re: get lost [password going to white screen?
« Reply #13 on: March 24, 2015, 01:01:01 PM »
plus i am no longer getting the registration emails

Re: get lost [password going to white screen?
« Reply #14 on: March 24, 2015, 01:12:20 PM »
also not sending out a copy of the confirmation email....