Jump to content

Password Recovery Broken Link


Recommended Posts

Hi,

 

I just go live a new eshop migrated from Virtuemart and I am facing the following problem with some customers who are trying to recover their password. They are getting and email with a Url to click in order to recover the password like the following one

 

https://eshop.atmomixani.gr/en/password-recovery?token=3c5a455adbd33470ed68424760144fe9&id_customer=2007 but for some of them as soon as they click on the url they redirect on a page which informs them that "Oops something went wrong. Try to refresh this page or feel free to contact us if the problem persists." like the attached picture.

 

post-528381-0-11000900-1400491200_thumb.png

 

Can anyone help me on that because I cannot understand where is the problem?

 

Regards

 

Thomas

Link to comment
Share on other sites

  • 5 months later...

I'm having the identical problem, leading to a 500 internal server error. There is something about the link that is just not working.

 

I had to import more than 700 customers without their passwords, so all of them will need to reset it when they return to us (the previous cart system was hosted with no server-side access and passwords could not be exported).

 

I have tried changing the URL settings in back office, checking the email link each time, and everything returns a 500 error. I can't seem to find any information out there about this. Every time I check something it's about customers not receiveing the email in the first place, or about resetting admin passwords.

 

Did you get your problem fixed? Do you recall what you had to do to achieve it? Thanks

Link to comment
Share on other sites

  • 11 months later...

I'm having the identical problem, leading to a 500 internal server error. There is something about the link that is just not working.

 

I had to import more than 700 customers without their passwords, so all of them will need to reset it when they return to us (the previous cart system was hosted with no server-side access and passwords could not be exported).

 

I have tried changing the URL settings in back office, checking the email link each time, and everything returns a 500 error. I can't seem to find any information out there about this. Every time I check something it's about customers not receiveing the email in the first place, or about resetting admin passwords.

 

Did you get your problem fixed? Do you recall what you had to do to achieve it? Thanks

 

Any fix for this?

 

Second thread I've found with no response.

 

I am having the exact same issue with a 1.6.1.1 site.

Link to comment
Share on other sites

It might be an issue with your theme. 

 

If you have SEO URL's active, try deactivating them and see what you get.

Or in case, you might not have SEO URL's active, the theme might have them hardcoded and as such might not be properly accessing the recovery site. In that case, try activating them. 

 

In other words, the URL is the first thing I would look into, if it's properly resolved. Also check, if it's set to the one in the email under SEO URL's in the backend. 

 

In case of a 500 Internal server error, check your server logs first for further infos of what's going wrong. 

  • Like 1
Link to comment
Share on other sites

Hi Innovacy,

 

Thank you for this - It's an odd problem, quite hard to replicate. We are getting seemingly random 500 errors - If i sign up and recover password it seemed to work fine for me. SEO URLs are on. Will test with SEO urls off and come back with the results. 

 

Theme is built off of Default Bootstrap.

Link to comment
Share on other sites

  • 2 years later...
  • hello. i have the same problem but here is what i did.

    i edited the file themes/default-bootstrap/mails/en/password_query.html not in my prestashop backoffice but directly in my cpanel file manager because if i try to edit it in my prestashop backoffice, it doesn't save somehow. 

    i removed everything and changed the code to the one below. I hope this works for you. I have been searching the forums too but nothing answered this. or none of the answers posted worked for me. So i tried restoring it to its default and this worked.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<title>Message from {shop_name}</title>
		
		
		<style>	@media only screen and (max-width: 300px){ 
				body {
					width:218px !important;
					margin:auto !important;
				}
				.table {width:195px !important;margin:auto !important;}
				.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}		
				span.title{font-size:20px !important;line-height: 23px !important}
				span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}		
				td.box p{font-size: 12px !important;font-weight: bold !important;}
				.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr { 
					display: block !important; 
				}
				.table-recap{width: 200px!important;}
				.table-recap tr td, .conf_body td{text-align:center !important;}	
				.address{display: block !important;margin-bottom: 10px !important;}
				.space_address{display: none !important;}	
			}
	@media only screen and (min-width: 301px) and (max-width: 500px) { 
				body {width:308px!important;margin:auto!important;}
				.table {width:285px!important;margin:auto!important;}	
				.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}	
				.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr { 
					display: block !important; 
				}
				.table-recap{width: 295px !important;}
				.table-recap tr td, .conf_body td{text-align:center !important;}
				
			}
	@media only screen and (min-width: 501px) and (max-width: 768px) {
				body {width:478px!important;margin:auto!important;}
				.table {width:450px!important;margin:auto!important;}	
				.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}			
			}
	@media only screen and (max-device-width: 480px) { 
				body {width:308px!important;margin:auto!important;}
				.table {width:285px;margin:auto!important;}	
				.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
				
				.table-recap{width: 295px!important;}
				.table-recap tr td, .conf_body td{text-align:center!important;}	
				.address{display: block !important;margin-bottom: 10px !important;}
				.space_address{display: none !important;}	
			}
</style>

	</head>
	<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
		<table class="table table-mail" style="width:100%;margin-top:10px;-moz-box-shadow:0 0 5px #afafaf;-webkit-box-shadow:0 0 5px #afafaf;-o-box-shadow:0 0 5px #afafaf;box-shadow:0 0 5px #afafaf;filter:progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5)">
			<tr>
				<td class="space" style="width:20px;padding:7px 0">&nbsp;</td>
				<td align="center" style="padding:7px 0">
					<table class="table" bgcolor="#ffffff" style="width:100%">
						<tr>
							<td align="center" class="logo" style="border-bottom:4px solid #333333;padding:7px 0">
								<a title="{shop_name}" href="{shop_url}" style="color:#337ff1">
									<img src="{shop_logo}" alt="{shop_name}" />
								</a>
							</td>
						</tr>

<tr>
	<td align="center" class="titleblock" style="padding:7px 0">
		<font size="2" face="Open-sans, sans-serif" color="#555454">
			<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span>
		</font>
	</td>
</tr>
<tr>
	<td class="space_footer" style="padding:0!important">&nbsp;</td>
</tr>
<tr>
	<td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0">
		<table class="table" style="width:100%">
			<tr>
				<td width="10" style="padding:7px 0">&nbsp;</td>
				<td style="padding:7px 0">
					<font size="2" face="Open-sans, sans-serif" color="#555454">
						<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
							Password reset request for {shop_name}						</p>
						<span style="color:#777">
							You have requested to reset your <span style="color:#333"><strong>{shop_name}</strong></span> login details.<br/><br/>
							Please note that this will change your current password.<br/><br/>
							To confirm this action, please use the following link: <br /> <a href="{url}">{url}</a>
						</span>
					</font>
				</td>
				<td width="10" style="padding:7px 0">&nbsp;</td>
			</tr>
		</table>
	</td>
</tr>

						<tr>
							<td class="space_footer" style="padding:0!important">&nbsp;</td>
						</tr>
						<tr>
							<td class="footer" style="border-top:4px solid #333333;padding:7px 0">
								<span><a href="{shop_url}" style="color:#337ff1">{shop_name}</a> powered by <a href="http://www.prestashop.com/" style="color:#337ff1">PrestaShop&trade;</a></span>
							</td>
						</tr>
					</table>
				</td>
				<td class="space" style="width:20px;padding:7px 0">&nbsp;</td>
			</tr>
		</table>
	</body>
</html>

 

Link to comment
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
×
×
  • Create New...