Otrs5 change owner issue (Internal Server error)

Hi guys, Maybe You will be able to help me or atlas throw me some direction I should forward… Last week I’ve upgraded my OTRS installation from version 4.0.4 to 5.0.10. Since then I have really annoying bug with “change owner” future - everytime I want to change owner of the ticket to someone else (except myself - somehow change owner for me works fine) I’m receiving 500 Internal Server error screen. Apache error log says: Can't locate object method "SendAgentNotification" via package "Kernel::System::Ticket" at /opt/otrs/Custom/Kernel/System/Ticket.pm line 4556.\n Which points me basically to untouched block in Ticket.pm config: # send agent notification $Self->SendAgentNotification( Type => 'OwnerUpdate', RecipientID => $Param{NewUserID}, CustomerMessageParams => { %Param, Body => $Param{Comment} || '', }, TicketID => $Param{TicketID}, UserID => $Param{UserID}, Have You had similar issues or do You have any idea what can be the cause of this? Greetings, Lukasz

Hi Lukasz, A new notification system was introduced in OTRS 5, Event based notifications and Agent notifications are now merged in Ticket notifications, the function you are trying to call does not exist any longer in Ticket.pm. As I can see you are using a Custom version of Ticket.pm this means that you have an outdated package in your system. lf the verdor of the package is OTRS AG a new version of the package (for OTRS 5) should be available for you to update (unless the package is already merged into the framework or another package). Otherwise if the package is from a 3rd party source please ask them for an updated version (please keep in mind that there is no support for a system with 3rd party packages installed). Packages from OTRS 4 or older will not work in OTRS 5 (in general), so you need to be sure that all packages you have installed are developed specifically for OTRS 5. ((enjoy)) Carlos Rodríguez
On Jul 4, 2016, at 6:28 AM, Lukasz Borek
wrote: Hi guys,
Maybe You will be able to help me or atlas throw me some direction I should forward… Last week I’ve upgraded my OTRS installation from version 4.0.4 to 5.0.10. Since then I have really annoying bug with “change owner” future - everytime I want to change owner of the ticket to someone else (except myself - somehow change owner for me works fine) I’m receiving 500 Internal Server error screen.
Apache error log says: Can't locate object method "SendAgentNotification" via package "Kernel::System::Ticket" at /opt/otrs/Custom/Kernel/System/Ticket.pm line 4556.\n
Which points me basically to untouched block in Ticket.pm config:
# send agent notification $Self->SendAgentNotification( Type => 'OwnerUpdate', RecipientID => $Param{NewUserID}, CustomerMessageParams => { %Param, Body => $Param{Comment} || '', }, TicketID => $Param{TicketID}, UserID => $Param{UserID},
Have You had similar issues or do You have any idea what can be the cause of this?
Greetings,
Lukasz --------------------------------------------------------------------- OTRS mailing list: itsm - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm

Hi, thank You for help. Actually I’ve received list of changed items from previous creator but Ticket.pm was not there so I though it’s default - it’s not. After removal of the SendAgentNotification and SendAgentNotify block everything works. Well, almost … Now I have totally no notification when someone changes the owner of the ticket to me. Any idea where can I set it up (most likely somewhere in Sysconfig interface, but I cannot locate it)? Anyway, thanks a lot for the help! I’m quite newbie right now in terms of OTRS. LG, Lukasz
On 04 Jul 2016, at 16:47, Carlos Rodríguez
wrote: Hi Lukasz,
A new notification system was introduced in OTRS 5, Event based notifications and Agent notifications are now merged in Ticket notifications, the function you are trying to call does not exist any longer in Ticket.pm. As I can see you are using a Custom version of Ticket.pm this means that you have an outdated package in your system.
lf the verdor of the package is OTRS AG a new version of the package (for OTRS 5) should be available for you to update (unless the package is already merged into the framework or another package).
Otherwise if the package is from a 3rd party source please ask them for an updated version (please keep in mind that there is no support for a system with 3rd party packages installed).
Packages from OTRS 4 or older will not work in OTRS 5 (in general), so you need to be sure that all packages you have installed are developed specifically for OTRS 5.
((enjoy))
Carlos Rodríguez
On Jul 4, 2016, at 6:28 AM, Lukasz Borek
mailto:l.borek86@gmail.com> wrote: Hi guys,
Maybe You will be able to help me or atlas throw me some direction I should forward… Last week I’ve upgraded my OTRS installation from version 4.0.4 to 5.0.10. Since then I have really annoying bug with “change owner” future - everytime I want to change owner of the ticket to someone else (except myself - somehow change owner for me works fine) I’m receiving 500 Internal Server error screen.
Apache error log says: Can't locate object method "SendAgentNotification" via package "Kernel::System::Ticket" at /opt/otrs/Custom/Kernel/System/Ticket.pm line 4556.\n
Which points me basically to untouched block in Ticket.pm config:
# send agent notification $Self->SendAgentNotification( Type => 'OwnerUpdate', RecipientID => $Param{NewUserID}, CustomerMessageParams => { %Param, Body => $Param{Comment} || '', }, TicketID => $Param{TicketID}, UserID => $Param{UserID},
Have You had similar issues or do You have any idea what can be the cause of this?
Greetings,
Lukasz --------------------------------------------------------------------- OTRS mailing list: itsm - Webpage: http://otrs.org/ http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm http://lists.otrs.org/mailman/listinfo/itsm
OTRS mailing list: itsm - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm

Hi Lukasz, From your original email:
Apache error log says: Can't locate object method "SendAgentNotification" via package "Kernel::System::Ticket" at /opt/otrs/Custom/Kernel/System/Ticket.pm line 4556.\n
From what the error says... it looks like another module is trying to get access to a function that is not longer in that Ticket.pm file (that is also a customized one, known from the directory), but in OTRS 5 thats is correct and the other module should not require that function in that file any longer. So provably the package that adds that custom Ticket.pm in that directory is right, the problem is with another package or a self customized file that it is not updated to OTRS 5, my recommendation is still to update any package to its OTRS 5 version, if its not possible you should consider to uninstall the offending package (for that you need to investigate a bit longer, from there that call in the error log is originated). Be aware that depending on the package you might loose some data and in all cases its functionality. If you still have problems I will recommend you to get in touch with our sales representatives to get commercial support for your OTRS instance. you can reach them at sales@otrs.com mailto:sales@otrs.com ((enjoy)) Carlos Rodríguez
On Jul 5, 2016, at 11:13 AM, Lukasz Borek
wrote: Hi,
thank You for help. Actually I’ve received list of changed items from previous creator but Ticket.pm was not there so I though it’s default - it’s not. After removal of the SendAgentNotification and SendAgentNotify block everything works. Well, almost … Now I have totally no notification when someone changes the owner of the ticket to me. Any idea where can I set it up (most likely somewhere in Sysconfig interface, but I cannot locate it)? Anyway, thanks a lot for the help! I’m quite newbie right now in terms of OTRS.
LG, Lukasz
On 04 Jul 2016, at 16:47, Carlos Rodríguez
mailto:carlos.rodriguez@otrs.com> wrote: Hi Lukasz,
A new notification system was introduced in OTRS 5, Event based notifications and Agent notifications are now merged in Ticket notifications, the function you are trying to call does not exist any longer in Ticket.pm. As I can see you are using a Custom version of Ticket.pm this means that you have an outdated package in your system.
lf the verdor of the package is OTRS AG a new version of the package (for OTRS 5) should be available for you to update (unless the package is already merged into the framework or another package).
Otherwise if the package is from a 3rd party source please ask them for an updated version (please keep in mind that there is no support for a system with 3rd party packages installed).
Packages from OTRS 4 or older will not work in OTRS 5 (in general), so you need to be sure that all packages you have installed are developed specifically for OTRS 5.
((enjoy))
Carlos Rodríguez
On Jul 4, 2016, at 6:28 AM, Lukasz Borek
mailto:l.borek86@gmail.com> wrote: Hi guys,
Maybe You will be able to help me or atlas throw me some direction I should forward… Last week I’ve upgraded my OTRS installation from version 4.0.4 to 5.0.10. Since then I have really annoying bug with “change owner” future - everytime I want to change owner of the ticket to someone else (except myself - somehow change owner for me works fine) I’m receiving 500 Internal Server error screen.
Apache error log says: Can't locate object method "SendAgentNotification" via package "Kernel::System::Ticket" at /opt/otrs/Custom/Kernel/System/Ticket.pm line 4556.\n
Which points me basically to untouched block in Ticket.pm config:
# send agent notification $Self->SendAgentNotification( Type => 'OwnerUpdate', RecipientID => $Param{NewUserID}, CustomerMessageParams => { %Param, Body => $Param{Comment} || '', }, TicketID => $Param{TicketID}, UserID => $Param{UserID},
Have You had similar issues or do You have any idea what can be the cause of this?
Greetings,
Lukasz --------------------------------------------------------------------- OTRS mailing list: itsm - Webpage: http://otrs.org/ http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm http://lists.otrs.org/mailman/listinfo/itsm
OTRS mailing list: itsm - Webpage: http://otrs.org/ http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm http://lists.otrs.org/mailman/listinfo/itsm
OTRS mailing list: itsm - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm

Hi, Sorry, now I see how stupid my last question was. All the notifications are in notification menu over the admin interface. I will have to investigate it further, especially that it should not be affected as the old rule is outcommented and it uses new set of notifications. Again, thank You for all Your help, that helped me move from dead end. Greetings, Lukasz
On 05 Jul 2016, at 19:24, Carlos Rodríguez
wrote: Hi Lukasz,
From your original email:
Apache error log says: Can't locate object method "SendAgentNotification" via package "Kernel::System::Ticket" at /opt/otrs/Custom/Kernel/System/Ticket.pm line 4556.\n
From what the error says... it looks like another module is trying to get access to a function that is not longer in that Ticket.pm file (that is also a customized one, known from the directory), but in OTRS 5 thats is correct and the other module should not require that function in that file any longer.
So provably the package that adds that custom Ticket.pm in that directory is right, the problem is with another package or a self customized file that it is not updated to OTRS 5, my recommendation is still to update any package to its OTRS 5 version, if its not possible you should consider to uninstall the offending package (for that you need to investigate a bit longer, from there that call in the error log is originated). Be aware that depending on the package you might loose some data and in all cases its functionality.
If you still have problems I will recommend you to get in touch with our sales representatives to get commercial support for your OTRS instance. you can reach them at sales@otrs.com mailto:sales@otrs.com
((enjoy))
Carlos Rodríguez
On Jul 5, 2016, at 11:13 AM, Lukasz Borek
mailto:l.borek86@gmail.com> wrote: Hi,
thank You for help. Actually I’ve received list of changed items from previous creator but Ticket.pm was not there so I though it’s default - it’s not. After removal of the SendAgentNotification and SendAgentNotify block everything works. Well, almost … Now I have totally no notification when someone changes the owner of the ticket to me. Any idea where can I set it up (most likely somewhere in Sysconfig interface, but I cannot locate it)? Anyway, thanks a lot for the help! I’m quite newbie right now in terms of OTRS.
LG, Lukasz
On 04 Jul 2016, at 16:47, Carlos Rodríguez
mailto:carlos.rodriguez@otrs.com> wrote: Hi Lukasz,
A new notification system was introduced in OTRS 5, Event based notifications and Agent notifications are now merged in Ticket notifications, the function you are trying to call does not exist any longer in Ticket.pm. As I can see you are using a Custom version of Ticket.pm this means that you have an outdated package in your system.
lf the verdor of the package is OTRS AG a new version of the package (for OTRS 5) should be available for you to update (unless the package is already merged into the framework or another package).
Otherwise if the package is from a 3rd party source please ask them for an updated version (please keep in mind that there is no support for a system with 3rd party packages installed).
Packages from OTRS 4 or older will not work in OTRS 5 (in general), so you need to be sure that all packages you have installed are developed specifically for OTRS 5.
((enjoy))
Carlos Rodríguez
On Jul 4, 2016, at 6:28 AM, Lukasz Borek
mailto:l.borek86@gmail.com> wrote: Hi guys,
Maybe You will be able to help me or atlas throw me some direction I should forward… Last week I’ve upgraded my OTRS installation from version 4.0.4 to 5.0.10. Since then I have really annoying bug with “change owner” future - everytime I want to change owner of the ticket to someone else (except myself - somehow change owner for me works fine) I’m receiving 500 Internal Server error screen.
Apache error log says: Can't locate object method "SendAgentNotification" via package "Kernel::System::Ticket" at /opt/otrs/Custom/Kernel/System/Ticket.pm line 4556.\n
Which points me basically to untouched block in Ticket.pm config:
# send agent notification $Self->SendAgentNotification( Type => 'OwnerUpdate', RecipientID => $Param{NewUserID}, CustomerMessageParams => { %Param, Body => $Param{Comment} || '', }, TicketID => $Param{TicketID}, UserID => $Param{UserID},
Have You had similar issues or do You have any idea what can be the cause of this?
Greetings,
Lukasz --------------------------------------------------------------------- OTRS mailing list: itsm - Webpage: http://otrs.org/ http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm http://lists.otrs.org/mailman/listinfo/itsm
OTRS mailing list: itsm - Webpage: http://otrs.org/ http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm http://lists.otrs.org/mailman/listinfo/itsm
OTRS mailing list: itsm - Webpage: http://otrs.org/ http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm http://lists.otrs.org/mailman/listinfo/itsm
OTRS mailing list: itsm - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/itsm To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm
participants (2)
-
Carlos Rodríguez
-
Lukasz Borek