[rt-users] 3.8.8->4.0.2 upgrade: /lib/RT/Template.pm line 627, <> line 1

Ruslan Zakirov ruz at bestpractical.com
Wed Oct 12 13:41:58 EDT 2011


On Wed, Oct 12, 2011 at 8:53 PM, Jason Doran <Jason.Doran at nuim.ie> wrote:
> Hi,
> I am testing an upgrade from 3.8.8 to latest 4.0.2 (mysql-5.0.x/httpd-2.2.x)
>
> I found it easier to set up a new rt4 folder and database and to manually
> migrate my few updates/config changes across.
>
> To do this I first dropped all newly created rt4 tables and then imported my
> rt3 database into rt4. I then ran /opt/rt4/sbin/rt-setup-database
> --prompt-for-dba-password --action upgrade
>
> The code from Template.pm line 627 is:
>
>    if ($self->Type eq 'Perl' && !$self->CurrentUser->HasRight(Right =>
> 'ExecuteCode', Object => $RT::System)) {
>        return ( undef, $self->loc('Permission Denied') );
>    }
>
> Any ideas on what might causing the warnings? All seems well with the system
> (including latest RT-Authen-ExternalAuth) and the upgrade is worth it just
> for the Show/Hide quoted text, but I am concerned about the three warnings
> below.

Nothing to worry about. Old database has no Type value, but it filled
in later upgrade script, but during upgrade code hits code path where
value is checked. Check is correct for such situation, so DB should be
intact.





>
> Processing 3.8.9
> Now inserting data.
> [Wed Oct 12 15:47:14 2011] [warning]: Use of uninitialized value in string
> eq at /opt/rt4/sbin/../lib/RT/Template.pm line 627, <> line 1.
> (/opt/rt4/sbin/../lib/RT/Template.pm:627)
> [Wed Oct 12 15:47:14 2011] [warning]: Use of uninitialized value in string
> eq at /opt/rt4/sbin/../lib/RT/Template.pm line 627, <> line 1.
> (/opt/rt4/sbin/../lib/RT/Template.pm:627)
> [Wed Oct 12 15:47:14 2011] [warning]: Use of uninitialized value in string
> eq at /opt/rt4/sbin/../lib/RT/Template.pm line 627, <> line 1.
> (/opt/rt4/sbin/../lib/RT/Template.pm:627)
> Processing 3.9.1
> Now inserting data.
> Processing 3.9.2
> Now inserting data.
> Processing 3.9.3
> Now populating database schema.
> Processing 3.9.5
> Now populating database schema.
> Processing 3.9.6
> Now populating database schema.
> Processing 3.9.7
> Now populating database schema.
> Now inserting data.
> Processing 3.9.8
> Now populating database schema.
> Now inserting data.
> Processing 4.0.0rc2
> Now populating database schema.
> Processing 4.0.0rc4
> Now populating database schema.
> Processing 4.0.0rc7
> Now inserting data.
> Processing 4.0.1
> Now inserting data.
> Done.
>
>
> I should also mention that I have not installed all extensions yet from
> 3.8.8 as I want to review. RTx::EmailCompletion RT::FM RTx::Tags. Would the
> error be related to these not installed on test system?
>
> I have also played with RTFM on rt3 at some stage, so I (prior to update,
> and after importing rt3 into new rt4 database) just deleted these tables:
> drop table FM_Articles, FM_Classes, FM_ObjectTopics, FM_Topics;
>
>
> Regards,
> Jason
>
>
>
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  San Francisco, CA, USA  October 18 & 19, 2011
> *  Washington DC, USA  October 31 & November 1, 2011
> *  Barcelona, Spain  November 28 & 29, 2011
>



-- 
Best regards, Ruslan.



More information about the rt-users mailing list