User activation fails

  • Posts: 26
  • Thank you received: 1
  • Hikashop Business
7 months 3 weeks ago #361886

-- HikaShop version -- : 5.1
-- Joomla version -- : 4.4.5
-- PHP version -- : 8.0

Hi

I have the Business version of HikaShop installed. In Joomla I have set activation for new users. When they get the activation mail, it contains a link to HikaShop, that does not work.

I have tried to figure out what happens here, but I could use a littel advice. I expected the activation process to be controlled by Joomla, but it looks like it is redirecting to HikaShop on this link - index.php?option=com_hikashop&Itemid=117&ctrl=checkout&task=activate_page

Any ideas ?

Please Log in or Create an account to join the conversation.

  • Posts: 83347
  • Thank you received: 13482
  • MODERATOR
7 months 3 weeks ago #361888

Hi,

This URL is the URL of the page the customer sees after clicking on the "register" button. It displays a message explaining to the customer that they need to click on the URL sent to them by email.

The activation URL in the email is also a HikaShop URL. When you click on that link, the browser of the user will open a page with the URL index.php?option=com_hikashop&ctrl=user&task=activate&activation=1...
On this page, HikaShop will first make sure that the registration and activation are possible based on the settings of the Joomla user manager. Then, it will call the Joomla user model to activate the user, with code like this:

		$model = $this->getModel('Registration', 'UsersModel',array(),true);
		$language = JFactory::getLanguage();
		$language->load('com_users', JPATH_SITE, $language->getTag(), true);
		if($model)
			$result = $model->activate($activation);
If the activation is successful, it will display a success message and potentially redirect somewhere else (for example, if you registered from the checkout of HikaShop, it will redirect you back to the checkout so that you can proceed to your purchase).
If the activation fails for some reason, it will display an error message, which should explain what the problem is.
You're saying that the activation fails. What error message did you get then ?

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
  • Hikashop Business
7 months 3 weeks ago #361895

The URL does not work - in the sense that it does not show, nor does it show a 404 - it just redirects to the frontpage and nothing else happens - so the user is not activated and hence cannot login. I have a feeling that it is a redirection issue, but I am not sure, where to look anymore.

Update: I disabled Search Engine Friendly URLs and Use URL Rewriting - Then the link works. When I enable them again - it fails. Very strange, I cannot see anything in my .htaccess that should do this.

Last edit: 7 months 3 weeks ago by WebmasterRD.

Please Log in or Create an account to join the conversation.

  • Posts: 83347
  • Thank you received: 13482
  • MODERATOR
7 months 3 weeks ago #361897

Hi,

It's not necessarily a problem with the htaccess. It could be with a SEF extension or a system plugin interfering for some reason, like if it is looking for a specific text in the URL, and by chance, the activation URL has that parameter, but when SEF is turned off, it doesn't find the text it's looking for in the URL as the URL is different.

I guess we would need more precise information. Could you provide an example of an activation URL with SEF on, and one with SEF off.
And could you please not use the one with SEF off so that we can use it in order to look at the redirects with the developer tools of our browser ? We might be able to figure out something out of this.
Otherwise it would require a backend and a FTP access in order to dig into the issue.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 2
  • Hikashop Business
3 weeks 3 days ago #365575

When a new user registers at our Hikashop he gets a email message asking him to activate the account, but the activiation link is missing:



In contrast, when we do a test registration to check for the presence of the activation link, the link is displayed and works correctly:

Does anyone understand this and may be can help??

Best regards,
Helmut

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83347
  • Thank you received: 13482
  • MODERATOR
3 weeks 3 days ago #365576

Hi,

Can you confirm that the button is missing if you open the email via the menu Customers>Emails history ?
Could you provide a backend access and a FTP access via our contact form so that we could look deeper into it ?
www.hikashop.com/support/contact-us.html

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 2
  • Hikashop Business
3 weeks 7 hours ago #365605

Thank you for the advice!
I checked the email in the customer's email history on our server and there it appears with the link.
Do you know why the link was gone when the email appeared in the customers email client?

With this information, if you still need access to our backend, I can provide it to you.

Please Log in or Create an account to join the conversation.

  • Posts: 83347
  • Thank you received: 13482
  • MODERATOR
3 weeks 4 hours ago #365606

Hi,

So, to recapitulate, the link is in the email when you register with your own email address and check the email via your email client, and when you check in the email history, the link is also in the email sent to the user who provided you with the screenshot of the email with the link missing when opened with his own email client. Is that correct ?
In that case, that can only mean that the email client or the receiver email server of your user changed the content of the email (for example, to remove links, for security reasons). And in that case, you can't do anything to avoid this since the problem is not on your website. That also means that other users shouldn't have the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 2
  • Hikashop Business
3 weeks 1 hour ago #365607

yes, the recapitulation is correct.
Thank you for the information.

If we cannot exclude that recipients' servers or clients inactivate the activation link we will have to abandon this registration approach, because customers are unhappy if the self-registration fails.

Please Log in or Create an account to join the conversation.

  • Posts: 83347
  • Thank you received: 13482
  • MODERATOR
2 weeks 6 days ago #365608

Hi,

Why not turn off the self validation setting of the Joomla user manager ? That way, users will be able to register without having to click on a link.
It is usually better to not have that system for ecommerce websites where you want the checkout process to be as smooth as possible for the user.
docs-next.joomla.org/help/users/users-options/#user-options

Please Log in or Create an account to join the conversation.

Time to create page: 0.097 seconds
Powered by Kunena Forum