I’ve , mistakenly, updated to Mac OS 10.10 Yosemite.
That completely caused my app to fail in Apache 2.4.
Looks like it might be a version problem for TT.pm
I’ve tried to install a new TT.pm from cpan but it tells me that it is up to 
date.
I’ve tried changing the Template->new to HTML::Template-> new with bad results.
I’ve tried changing use Template to use HTML::Template with bad results
I’ve tried changing the use Template 2.0; to use Template. results are still it 
fails;
It looks like MAC 10.10 was released with a bunch of incompatible versions of 
perl modules.
What can I do?
The error I’m getting is :

Can't locate object method "new" via package "Template" at 
/Library/Perl/5.18/CGI/Application/Plugin/TT.pm line 60.

TT.pm snippett :
use Template 2.0;
...
# Get a Template Toolkit object.  The same object
# will be returned everytime this method is called
# during a request cycle.
#
sub tt_obj {
    my $self = shift;

    my ($tt, $options, $frompkg) = _get_object_or_options($self);

    if (!$tt) {
        my $tt_options = $options->{TEMPLATE_OPTIONS};
        if (keys %{$options->{TEMPLATE_OPTIONS}}) {
          $tt = Template->new( $options->{TEMPLATE_OPTIONS} ) || carp "Can't 
load Template";
        } else {
          $tt = Template->new || carp "Can't load Template";
        }
        _set_object($frompkg||$self, $tt);
    }
    return $tt;
}
...

-------------------------------------------------------------------------------------------------------------------------------------------------
HTML/Template.pm

$HTML::Template::VERSION = '2.95’;
sub new {
    my $pkg = shift;
    my $self;
    { my %hash; $self = bless(\%hash, $pkg); }
...

Reply via email to