Forums / Install & configuration / User Activation Problem

User Activation Problem

Author Message

Nabil Imran

Monday 01 February 2010 8:04:16 am

Hello after upgrad vom eZ 3.8 to eZ 4.2 the register module makes some problems:

I can register new users with no problem, but when I click onto the activation link, it says "permission denied".

I already tried to allow user module all functions for anonymous users via admin frontend, but it still does not work.

Are there any new configuration settings I have to apply? I found the AnonymousAccessList setting in the documentation. Could that be what I need? I never had to use that before. O.o

What is the clean way to get the user activation to work?

Thank you very much.

btw: the log files don't say anything interesting

Nabil Imran

Tuesday 02 February 2010 4:20:13 am

Solved

The problem was that the registrationinfo.tpl template was overridden and did not contain the users node_id in the activation link. In eZ 3.8 this was not necessary while it is now. So the activation link was wrong for eZ 4.2. I could solve it by chainging

{'Click the following URL to confirm your account'|i18n('design/standard/user/register')}
http://{$hostname}{concat("user/activate/", $hash)|ezurl(no)}

to

{'Click the following URL to confirm your account'|i18n('design/standard/user/register')}
http://{$hostname}{concat("user/activate/", $hash, "/", $user.contentobject.main_node_id)|ezurl(no)}

So people upgrading from old eZ version to 4.2 an have their own registration template, might need this as well.

Robin Muilwijk

Tuesday 09 February 2010 2:26:51 am

Hi Nabil,

Glad to see you were able to find the cause of your problem and were able to fix it. These feedback posts are valuable to other community members e.g. eZ users.

Could you please edit the original post, and add [SOLVED] in front of the Subject?

Thanks and regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk