bug in user_activation trigger?

Author Message

tim tailor

Wednesday 29 September 2010 2:12:39 pm

I am working on an extension for V.4.3 that creates a user content folder after the email activation. It works so far but there is some behaviour I cannot understand: The workflow is linked to the after_user_activation trigger. But this workflow is always executed two times. First when a new users registers, second when he activates his account by mail. As I am quite new to ez Publish I don't have a clue where exactly in the source I can find the code that fires the trigger. I was searching the files in kernel/user/ but I didn't have any success.

Håvard Bergersen

Monday 18 October 2010 2:22:16 pm

Did you ever get a answer to this question? :)

Håvard Bergersen

Tuesday 19 October 2010 2:47:47 am

I don't know if this is a bug or not, but I worked around it by checking if the user is activated or not.

By doing this it doesn't do any action before the user has activated the account. :)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 14:42:13
Script start
Timing: Jan 29 2025 14:42:13
Module start 'layout'
Timing: Jan 29 2025 14:42:13
Module start 'content'
Timing: Jan 29 2025 14:42:13
Module end 'content'
Timing: Jan 29 2025 14:42:13
Script end

Main resources:

Total runtime0.0191 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.1328151.2109
Module start 'layout' 0.00850.0033 739.343836.6563
Module start 'content' 0.01170.0060 776.000090.0625
Module end 'content' 0.01770.0014 866.062529.9766
Script end 0.0191  896.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.5432140.0002
Check MTime0.00115.8258140.0001
Mysql Total
Database connection0.00136.689910.0013
Mysqli_queries0.005729.932030.0019
Looping result0.00000.057410.0000
Template Total0.00105.210.0010
Template load0.00084.168610.0008
Template processing0.00020.998810.0002
Override
Cache load0.00052.704710.0005
General
dbfile0.002010.267580.0002
String conversion0.00000.042440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs