[Vtigercrm-developers] Problem with conditions in vtiger_eventhandlers since vtiger 5.3.0
Stefan Warnat
ich at stefanwarnat.de
Sat May 12 09:54:37 PDT 2012
Hy!
Vtiger 5.4 also produce this error and I do a search in sourcecode.
I think there is a bug in the eventhandling of vtiger, because the
system throws this error, if any extensions couldn't run, because of
conditions. The algorithm repeats the eventhandler since all are
executed and didn't notice of the conditions.
I have solved the problem with the second parameter of the "handleEvent"
function. [handleEvent($handlerType, $entityData)]
The function
get_class($entityData->focus)
returns the Classname ("Emails", "Leads", ...) and you can manage it
manually.
Stefan
http://vtiger.stefanwarnat.de
Am 11.05.2012 23:36, schrieb Andreas Göbel:
> Hi,
>
> since vTiger 5.3.0 conditions in the event handling seem to work no longer
> as they did before.
>
> For instance, I have following row in vtiger_eventhandlers:
> e..id event_name handler_path
> handler_class cond
> is_active dependent_on
> 14 vtiger.entity.aftersave
> modules/AccountingBooking/AccountingBookingHandler.php
> AccountingBookingHandler moduleName == 'AccountingBooking' 1
> []
>
> This leads to following error in EVERY module during e.g. Save:
>
> Fatal error: Uncaught exception 'Exception' with message 'Deadlock occured
> for events: AccountingProjectHandler , AccountingTaskHandler ,
> AccountingBookingHandler' in
> /var/customers/webs/andgoe/domains/vtigercrm.digital-infinity.de/vtigercrm53
> 0/include/events/VTEventTrigger.inc:149 Stack trace: #0
> /var/customers/webs/andgoe/domains/vtigercrm.digital-infinity.de/vtigercrm53
> 0/include/events/VTEventsManager.inc(118):
> VTEventTrigger->trigger(Object(VTEntityData)) #1
> /var/customers/webs/andgoe/domains/vtigercrm.digital-infinity.de/vtigercrm53
> 0/data/CRMEntity.php(865):
> VTEventsManager->triggerEvent('vtiger.entity.a...', Object(VTEntityData)) #2
> /var/customers/webs/andgoe/domains/vtigercrm.digital-infinity.de/vtigercrm53
> 0/modules/Contacts/Save.php(116): CRMEntity->save('Contacts') #3
> /var/customers/webs/andgoe/domains/vtigercrm.digital-infinity.de/vtigercrm53
> 0/index.php(749): include('/var/customers/...') #4 {main} thrown in
> /var/customers/webs/andgoe/domains/vtigercrm.digital-infinity.de/vtigercrm53
> 0/include/events/VTEventTrigger.inc on line 149
>
> In addition, could please somebody explain what the new field dependent_on
> in vtiger_eventhandlers does and what is VTEntityDelta??
>
> Kind Regards
> Andreas
>
>
> -----Ursprüngliche Nachricht-----
> Von: vtigercrm-developers-bounces at lists.vtigercrm.com
> [mailto:vtigercrm-developers-bounces at lists.vtigercrm.com] Im Auftrag von
> vtigercrm-developers-request at lists.vtigercrm.com
> Gesendet: Freitag, 11. Mai 2012 21:00
> An: vtigercrm-developers at lists.vtigercrm.com
> Betreff: vtigercrm-developers Digest, Vol 76, Issue 14
>
> Send vtigercrm-developers mailing list submissions to
> vtigercrm-developers at lists.vtigercrm.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.vtigercrm.com/mailman/listinfo/vtigercrm-developers
> or, via email, send a message with subject or body 'help' to
> vtigercrm-developers-request at lists.vtigercrm.com
>
> You can reach the person managing the list at
> vtigercrm-developers-owner at lists.vtigercrm.com
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of vtigercrm-developers digest..."
>
>
> Today's Topics:
>
> 1. Re: Calendar css in 5.3 and 5.4 (Prasad)
> 2. Webservices vtiger 5.4.0 (Revathy Sankaranarayanan)
> 3. Scheduled import error: exceeding memory limit (Alan Lord (News))
> 4. Re: Scheduled import error: exceeding memory limit (Adam Heinz)
> 5. Re: Scheduled import error: exceeding memory limit (Prasad)
> 6. Re: Scheduled import error: exceeding memory limit (Adam Heinz)
>
>
>
More information about the vtigercrm-developers
mailing list