
Hi all, We want to make a script that would change a ticket owner depending on some conditions. We have some requirements for the execution that force us to run directly from cron instead of as a Generic Agent task. The assignment is correctly done but it seems there are several problems after the execution: (in cleanup) Can't call method "FETCH" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/Net/LDAP.pm line 247 during global destruction. (in cleanup) Got no ConfigObject! at /opt/otrs/Kernel/GenericInterface/Event/Handler.pm line 37 during global destruction. I'm no perl expert, so I don't really know what to do to solve this errors. Can anybody point me in the right direction to catch and solve these errors? Kind regards, Juan Clavero OTRS 3.1 on CentOSLinux [Apache and MySQL ] connected to an Active Directory for Agents and Customers.

Hi Juan,
On Tue, Feb 19, 2013 at 12:11 PM, Juan Manuel Clavero Almirón
We want to make a script that would change a ticket owner depending on some conditions. We have some requirements for the execution that force us to run directly from cron instead of as a Generic Agent task. The assignment is correctly done but it seems there are several problems after the execution:
(in cleanup) Can't call method "FETCH" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/Net/LDAP.pm line 247 during global destruction. (in cleanup) Got no ConfigObject! at /opt/otrs/Kernel/GenericInterface/Event/Handler.pm line 37 during global destruction.
It is a scoping issue, This looks similar to bug 4089 - http://bugs.otrs.org/show_bug.cgi?id=4089 which was against bin/GenericAgent.pl and for which this was the fix: http://source.otrs.org/viewvc.cgi/otrs/bin/GenericAgent.pl?hideattic=0&r1=1.... I hope this helps you fix the problem! -- Mike
participants (2)
-
Juan Manuel Clavero Almirón
-
Michiel Beijen