Forums / Developer / New users with 'approval' not work with 4.5. Solutions with 4.4?

New users with 'approval' not work with 4.5. Solutions with 4.4?

Author Message

alessio asistar

Tuesday 10 May 2011 1:08:29 am

I need to show all "members" users for all user (also Anonymus).
I want to allow new registrations, but I don't want the registration to be published until an admin approves the new user.
For the first I used users role, but for the second I don't know.
I need to send the confirm via email to a new user and when he active the account, I dont have to display it for all users (also anonymus).
I read that ezpublish 4.5 can do this but i tried it, and not work or I don't understand why they write in the documentation that is sent 2 E-mail to the user. The first for activation, the second to inform the user that the registration was confirmed.
In reality send only one e-mail and new users are still in the "my things to do, " and I can't publish or delete them.
Sorry for my English.
Thanks

Alessio

Bertrand Dunogier

Tuesday 10 May 2011 2:43:40 am

Hi and welcome !

I can see that your problem is marked as solved. If it is, would you mind sharing what you did to solve it ? Thanks !

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

alessio asistar

Tuesday 10 May 2011 2:56:17 am

I do not know how to do it unresolved

Alessio

Bertrand Dunogier

Tuesday 10 May 2011 3:21:05 am

I take it you have followed this documentation page: http://doc.ez.no/eZ-Publish/User-manual/4.5/The-administration-interface/The-login-page/User-registration-with-approval-workflow.

If you haven't, well, you know what to do.

If you have, remember that to "advance" workflows to the next step, you need to execute the workflow cronjob, as described in http://doc.ez.no/eZ-Publish/Technical-manual/4.5/Features/Cronjobs/The-cronjob-scripts.

Hope this helps.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

alessio asistar

Tuesday 10 May 2011 3:35:23 am

The first page that you posted not work, i've tryed 3 hour ago.
Thank for the response, I'm reading the cronjob scripts.

Alessio

Bertrand Dunogier

Tuesday 10 May 2011 3:41:14 am

I swear it works, I'm reading it right now...

Try the google cached version maybe: http://webcache.googleusercontent.com/search?q=cache:http%3A%2F%2Fdoc.ez.no%2FeZ-Publish%2FUser-manual%2F4.5%2FThe-administration-interface%2FThe-login-page%2FUser-registration-with-approval-workflow

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

alessio asistar

Tuesday 10 May 2011 5:09:59 am

I also think that works, but I did what it says and does not work.
After registration and administrative approval, I see in the process workflow just a line in the table shows:

the workflow name,
user workflow,
status of process,
and current events
The first one is "UserRegistration1"
the second is "Anonymous"
the third is "Event sended to workflow cronjob"
the fourth is "status: (4) Event returned to the Cron Job, the event will be restarted
Event Type: ezapprove
description: Approve "

What I don't understand is why there is this line in the workflow process, it should not disappear?

If I understand correctly ezpubl should send a second e-mail for the confirmation of an administrator, But I see only one mail.

Alessio

Chen Xiongjie

Tuesday 10 May 2011 7:30:27 am

Hi, Alessio,

After the admin approves and running the cronjob it should disappear. And the administrator should get an email after the cronjob runs, yes. Hopefully this clue can help.

ps: the setting in site.ini should be RegistrationFeedback=email (by default it is).

And it's a new feature for 4.5 normally it's not backported to 4.4.

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

alessio asistar

Tuesday 10 May 2011 7:42:58 am

thanks for response.

The setting in site.ini is RegistrationFeedback=email (as default)

Alessio

alessio asistar

Tuesday 10 May 2011 8:25:16 am

there is another way to do this, maybe using ezpubl 4.4 and some extension?

Alessio

alessio asistar

Wednesday 11 May 2011 1:38:30 am

Solved!

Insert this line in the crontab:

* * * * * cd /path/to/ezpublish/ && php runcronjobs.php -q -s siteaccess frequent

"Workflow processes" is empty and the users are enabled

Another Problem is that I can't delete the users with ezpublish 4.5, I must open a new topic?

error:

Fatal error: A database transaction in eZ Publish failed.
The current execution was stopped to prevent further problems.
You should contact the System Administrator of this site with the information on this page.
The current transaction ID is TRANSID-268562e2eb16**************584685 and has been logged.
Please include the transaction ID and the current URL when contacting the system administrator.

Alessio

Chen Xiongjie

Wednesday 11 May 2011 1:59:12 am

Good to hear.

Just create a new one and describe the steps. :)

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

alessio asistar

Wednesday 11 May 2011 2:32:32 am

the problem is one of the extensions: ezsurvey or ezfind or both
I disabled these and now it works

Alessio

Gaetano Giunta

Wednesday 11 May 2011 4:50:57 am

Transaction errors when deleting content are a hint: you might have enabled ezfind without creating the required db tables.

. enable extension

. go to admin | setup | upgrade check | db check

. look if there is any sql ptoposed to you to create ezfind_elevate_stuff tables

. create those tables

. test again both deleting users & creation workflows

Hopefully the tables-creation process will be automated when activating extensions in the next version of eZP...

Principal Consultant International Business
Member of the Community Project Board