Prob in installing RTx-Calendar-0.04

Hello everybody,

I want to install RTx-Calendar-0.04.

So to add MyCalendar to $HomepageComponents in etc/RT_SiteConfig.pm, I must
add :

Set($HomepageComponents, [qw(QuickCreate Quicksearch MyCalendar
MyAdminQueues MySupportQueues MyReminders RefreshHomepage)]);

But when I want to add it, I find :

Set($HomepageComponents, [qw(MyResolvedTickets.OLD Quicksearch
OurOpenTickets MyResolvedTickets MyTickets MyClosedTickets MyModifiedTickets
MyAdminQueues MySupportQueues)]);

So, what I’m I have to do ?

Thanks in advance

Essam

Hello everybody,

Finaly I replace in etc/RT_SiteConfig.pm the following line:

Set($HomepageComponents, [qw(MyResolvedTickets.OLD Quicksearch
OurOpenTickets MyResolvedTickets MyTickets MyClosedTickets MyModifiedTickets
MyAdminQueues MySupportQueues)]);

by the line

Set($HomepageComponents, [qw(MyResolvedTickets.OLD Quicksearch MyCalendar
OurOpenTickets MyResolvedTickets MyTickets MyClosedTickets MyModifiedTickets
MyAdminQueues MySupportQueues)]);

but when I Choose the “Calendar” in the menu “Tickets” it post me the
following error :

System error
error: Can’t locate object method “today” via package “DateTime”
(perhaps you forgot to load “DateTime”?) at
/opt/rt3/share/html/Search/Calendar.html line 136.
context:
132: my @DateTypes = qw/Created Starts Started Due LastUpdated
Resolved/; 133:
134: my $rtdate = RT::Date->new($session{‘CurrentUser’}); 135:
136: my $today = DateTime->today; 137: my $date =
RTx::calendar::FirstMonday($Year, $Month + 1); 138: my $end =
RTx::calendar::LastSunday($Year, $Month + 1); 139:
140: # use this to loop over days until $end
code stack: /opt/rt3/share/html/Search/Calendar.html:136
/opt/rt3/share/html/autohandler:279
raw error <#raw>

please, if someone have any idea how to resolve this problem, I will be very
grateful.

Essam2007/8/3, Essam EL MESSOUSSI elmessoussi.stage@gmail.com:

Hello everybody,

I want to install RTx-Calendar-0.04.

So to add MyCalendar to $HomepageComponents in etc/RT_SiteConfig.pm, I
must add :

Set($HomepageComponents, [qw(QuickCreate Quicksearch MyCalendar
MyAdminQueues MySupportQueues MyReminders RefreshHomepage)]);

But when I want to add it, I find :

Set($HomepageComponents, [qw(MyResolvedTickets.OLD Quicksearch
OurOpenTickets MyResolvedTickets MyTickets MyClosedTickets MyModifiedTickets
MyAdminQueues MySupportQueues)]);

So, what I’m I have to do ?

Thanks in advance

Essam

Hello,

Finaly I replace in etc/RT_SiteConfig.pm the following line:

Good move.

error: Can’t locate object method “today” via package “DateTime”
(perhaps you forgot to load “DateTime”?) at
/opt/rt3/share/html/Search/Calendar.html line 136.

You have DateTime module ? To verify this :
% perl -MDateTime -le 'print $DateTime::VERSION’
0.35

Hi Essam,

be sure you install all the appropriate modules – you are missing
"DateTime".

Also, from my testing of RTx-Calendar-0.04 I had issues with DevelopMode
on + FastCGI – it would break the calendar view. Turning it off works
nicely.

Lidio.