Jump to content
Sign in to follow this  
ramycaspi

Password Recovery Failure - Parse error: syntax error, unexpected

Recommended Posts

ramycaspi

Parse error: syntax error, unexpected ',' in /home/ramycaspi/prepaidmvno.net/forum/bb-templates/PlatformForum/password-reset.php on line 12... Any suggestions on fixing this - as its an important feature... ?

Share this post


Link to post
Share on other sites
chrisreidable

Hey, I am getting the same error. I tried to use the Fog Buzz but it didn't seem to like my user name and password combo I got when I purchased Platform Pro. I may have missed the login-register part of the site though, as I was only following your link. My error reads the same, just with a different path of course. I read the bug report and the response was you would need to see the whole code. So, I am posting the whole code for you now.

	<?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(); ?>
You mentioned that line 12 should read:
$send_key_result = bb_reset_email( $user_login );
And my line 12 reads:
<?php case ( 'reset_password', FTDOMAIN ) : ?>

I was wondering if you could help me out with correcting whatever the issue may be. Thanks, Chris

Share this post


Link to post
Share on other sites
Simon

try `<?php case ( 'reset_password' ) : ?>`

Share this post


Link to post
Share on other sites
chrisreidable

Awesome, worked! Thanks for taking a look at my problem and fixing it for me.

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  

×