[rt-users] error: Can't call method "Content" on an undefined value at /usr/share/request-tracker3.6/html/Elements/MyRT line 75

Chris Bruning cbruning at publicinteractive.com
Tue Dec 18 14:51:26 EST 2007


Currently running RT Version 3.4.1 and the MySQL 5.0 database (rt3) has 
been imported into the new 3.6.1 install.
Install of 3.6.1 on a new debian-etch box using:  apt-get install 
request-tracker3.6   and    apt-get install rt3.6-apache2

Apache is up and running and can login with credentials that work with 
3.4.1.
I am aware that the upgrade scripts should solve this error but they are 
not and my patience is shot.
Using a new MySQL database called "rtdb" works fine so I know the 
problem is with the upgrade.

I am running the following upgrade scripts.
#/usr/sbin/rt-setup-database-3.6 --action schema --datadir 
/etc/request-tracker3.6/upgrade/3.5.1/ --dba rt3 --dba-password "password";
/*Creating database schema.
Couldn't find schema file for mysql
*/
/#usr/sbin/rt-setup-database-3.6 --action acl --datadir 
/etc/request-tracker3.6/upgrade/3.5.1/ --dba rt3 --dba-password "password";
/*Couldn't find ACLS for mysql in /etc/request-tracker3.6/upgrade/3.5.1/*/

/#usr/sbin/rt-setup-database-3.6 --action insert --datadir 
/etc/request-tracker3.6/upgrade/3.5.1/ --dba rt3 --dba-password "password";
/*Creating predefined searches...(Error: Internal Error: Couldn't 
execute the query 'INSERT INTO Attributes (ContentType, Creator, 
ObjectId, LastUpdatedBy, Created, Content, Description, LastUpdated, 
Name, ObjectType) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'Duplicate entry 
'0' for key 1)
(Error: Internal Error: Couldn't execute the query 'INSERT INTO 
Attributes (ContentType, Creator, ObjectId, LastUpdatedBy, Created, 
Content, Name, Description, LastUpdated, ObjectType) VALUES (?, ?, ?, ?, 
?, ?, ?, ?, ?, ?)'Duplicate entry '0' for key 1)
(Error: Internal Error: Couldn't execute the query 'INSERT INTO 
Attributes (ContentType, Creator, ObjectId, LastUpdatedBy, Created, 
Content, Name, Description, LastUpdated, ObjectType) VALUES (?, ?, ?, ?, 
?, ?, ?, ?, ?, ?)'Duplicate entry '0' for key 1)
done.
Done setting up database content.*/


/*error:  Can't call method "Content" on an undefined value at 
/usr/share/request-tracker3.6/html/Elements/MyRT line 75.
 
context:  ...  
71:  
72:  unless (exists $session{'my_rt_portlets'}) {
73:  my ($d_portlets) = 
RT::System->new($session{'CurrentUser'})->Attributes->Named('HomepageSettings'); 

74:  my $user = $session{'CurrentUser'}->UserObj;
75:  $session{'my_rt_portlets'} = $user->Preferences('HomepageSettings', 
$d_portlets->Content);
76:  }
77:  
78:  my $portlets = $session{'my_rt_portlets'};
79:  
...  
 
code stack:  /usr/share/request-tracker3.6/html/Elements/MyRT:75
/usr/share/request-tracker3.6/html/index.html:79
/usr/share/request-tracker3.6/html/autohandler:279*/


What am I missing?  I would appreciate any assistance in troubleshooting 
this issue.

Thanks.
CBrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20071218/6fe798ea/attachment.htm>


More information about the rt-users mailing list