System error

error:  Can't locate object method "new" via package "Apache::Cookie" at /home/jaw/projects/photolib/htdocs/set-photosize-pref-1 line 25.
context: 
... 
21:  </%args>
22:  %################################################################
23:  <%init>
24: 
25:  my $c = Apache::Cookie->new($r,
26:  -name => 'photosize',
27:  -value => $S,
28:  -path => '/',
29:  -expires => '+10y' );
... 
code stack:  /home/jaw/projects/photolib/htdocs/set-photosize-pref-1:25
/home/jaw/projects/photolib/htdocs/autohandler:8
raw error






























Can't locate object method "new" via package "Apache::Cookie" at /home/jaw/projects/photolib/htdocs/set-photosize-pref-1 line 25.


Trace begun at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method "new" via package "Apache::Cookie" at /home/jaw/projects/photolib/htdocs/set-photosize-pref-1 line 25.^J') called at /home/jaw/projects/photolib/htdocs/set-photosize-pref-1 line 25
HTML::Mason::Commands::__ANON__('S', 6) called at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x6fb655111f90)', 'S', 6) called at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Request.pm line 1302
eval {...} at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'S', 6) called at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x6fb655112df8)') called at /home/jaw/projects/photolib/htdocs/autohandler line 8
HTML::Mason::Commands::__ANON__('S', 6) called at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x6fb655dad7e0)', 'S', 6) called at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Request.pm line 1300
eval {...} at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'S', 6) called at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Request.pm line 481
eval {...} at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Request.pm line 481
eval {...} at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x6fb655112df8)') called at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x6fb655112df8)') called at /usr/pkg/lib/perl5/vendor_perl/5.34.0/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x6fb6565559c0)', 'Apache2::RequestRec=SCALAR(0x6fb655131048)') called at /home/jaw/projects/photolib/lib/mason-handler.pl line 76
eval {...} at /home/jaw/projects/photolib/lib/mason-handler.pl line 75
Photo::Web2::handler('Apache2::RequestRec=SCALAR(0x6fb655131048)') called at -e line 0
eval {...} at -e line 0