Jump to content
Sign in to follow this  
broombag

Password Recovery Error

Recommended Posts

broombag

When attempting to recover passwords, users get this error: Parse error: syntax error, unexpected ',' in /home/content/99/6619399/html/forums/bb-templates/BaseStationForum/password-reset.php on line 12 This is the password-reset.php: <?php bb_get_header(); ?> <h2 role="main"><?php _e('Password Reset', FTDOMAIN); ?></h2> <?php if ( $error ) : ?> <p class="notice error"><?php echo $error; ?></p> <?php else : ?> <?php switch ( $action ) : ?> <?php case ( 'send_key' ) : ?> <p class="notice"><?php _e('An email has been sent to the address we have on file for you. If you don’t get anything within a few minutes, or your email has changed, you may want to get in touch with the webmaster or forum administrator here.', FTDOMAIN); ?></p> <?php break; ?> <?php case ( 'reset_password', FTDOMAIN ) : ?> <p class="notice"><?php _e('Your password has been reset and a new one has been mailed to you.', FTDOMAIN); ?></p> <?php break; ?> <?php endswitch; ?> <?php endif; ?> <?php bb_get_footer(); ?> Any help would be awesome!

Share this post


Link to post
Share on other sites
cmunns

Is that the line that has "FTDOMAIN"? Try changing FTDOMAIN to TDOMAIN in all instances

Share this post


Link to post
Share on other sites
broombag

Line12: <?php case ( 'reset_password', FTDOMAIN ) : ?> Changing it to TDOMAIN didn't solve the problem

Share this post


Link to post
Share on other sites
cmunns

Oh I see the problem! See this line `

<?php _e('Password Reset', FTDOMAIN); ?>

` ? Line 12 needs to be similar (it's missing the _e ) ...so make line 12 look like this `<?php case _e( 'reset_password', FTDOMAIN ) : ?>`

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×