Post Upgrade Issues: Subroutine Load redefined

Moderator: crythias

Locked
Russell2566
Znuny newbie
Posts: 5
Joined: 19 Dec 2012, 04:08
Znuny Version: 2.1.12
Real Name: Russ
Company: Russ Brown Development

Post Upgrade Issues: Subroutine Load redefined

Post by Russell2566 »

I haven't done a whole lot with Perl in about 14 years, so I'm feeling a little out of my element. However I recently updated a customers OTRS system as part of a larger project. Now after the update, I'm getting a ton of these errors in my log files.

[Tue Dec 18 21:03:07 2012] index.pl: Subroutine Load redefined at (eval 126) line 23.
[Tue Dec 18 21:05:11 2012] index.pl: Subroutine Load redefined at (eval 126) line 23.
[Tue Dec 18 21:07:17 2012] index.pl: Subroutine Load redefined at (eval 126) line 23.
[Tue Dec 18 21:09:19 2012] index.pl: Subroutine Load redefined at (eval 126) line 23.

Post upgrade comparisons of the ZZZAuto.pm and ZZZAAuto.pm are tremendous. However both files before and after have a Load subroutine, their content just changed upon upgrade. I'm honestly not sure what to do as a next step. I believe I'm stuck with the Load subroutines, so I'm wondering if I have something else done-up wrong or if I should just supresss these warnings. My attempt at suppression in the mid-term also failed.

I'm hoping someone can give me a couple quick hints. I'm coming up so short I even tried searching with Bing :) I didn't post any of my config files/settings, because I wasn't sure what was relevant.

Edit:
Upgraded path 2.4.2 --> 3.0.17 --> 3.1.12
Last edited by Russell2566 on 19 Dec 2012, 04:54, edited 1 time in total.
Russell2566
Znuny newbie
Posts: 5
Joined: 19 Dec 2012, 04:08
Znuny Version: 2.1.12
Real Name: Russ
Company: Russ Brown Development

Re: Post Upgrade Issues: Subroutine Load redefined

Post by Russell2566 »

So i got the suppression to work correctly. I was doing it wrong.

Code: Select all

{no warnings 'redefine';
      sub Load {...}
}
this now works, but I still want to know if there is something else I should be doing. Just suppressing these notices, doesn't make me warm and fuzzy.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Post Upgrade Issues: Subroutine Load redefined

Post by crythias »

Load redefined is because it is... it's Config.pm or Defaults.pm ... grep for sub Load.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Russell2566
Znuny newbie
Posts: 5
Joined: 19 Dec 2012, 04:08
Znuny Version: 2.1.12
Real Name: Russ
Company: Russ Brown Development

Re: Post Upgrade Issues: Subroutine Load redefined

Post by Russell2566 »

I get that it is being redefined and I know where it is occurring.

However being mostly a Java stack developer and not having a past with OTRS, some of this stuff is a little foreign. Is this normal post upgrade? It's not like they did any custom development.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Post Upgrade Issues: Subroutine Load redefined

Post by crythias »

Russell2566 wrote:I get that it is being redefined and I know where it is occurring.
This isn't normal. It needs to be fixed. the config might need to be rebuilt, but this is not a normal state.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Russell2566
Znuny newbie
Posts: 5
Joined: 19 Dec 2012, 04:08
Znuny Version: 2.1.12
Real Name: Russ
Company: Russ Brown Development

Re: Post Upgrade Issues: Subroutine Load redefined

Post by Russell2566 »

Thank you. I will start there...
Russell2566
Znuny newbie
Posts: 5
Joined: 19 Dec 2012, 04:08
Znuny Version: 2.1.12
Real Name: Russ
Company: Russ Brown Development

Re: Post Upgrade Issues: Subroutine Load redefined

Post by Russell2566 »

* I re-copied my original config files from 2.4.2 over the existing configuration files.
* Ran /opt/otrs/bin/otrs.RebuildConfig.pl

Everything seems to be working as expected now. Old attachments are showing up and no more errors.

Thanks!
Locked