System error

error:  Can't locate object method "new" via package "ArtsyFartsy::Gallery" (perhaps you forgot to load "ArtsyFartsy::Gallery"?) at /opt/undef.com/web/wedding/photos.html line 15.
context: 
... 
11:  %# --- Display list of all Photo Galleries
12:  Galleries:
13:  <%perl>
14:  my @galleryIDs = (1005,788, 853, 852, 854);
15:  for my $galleryID (@galleryIDs) {
16:  my $gallery = new ArtsyFartsy::Gallery({type => 'read', id => $galleryID});
17:  my $currGalleryImages = $gallery->images();
18:  my $galleryName = $gallery->gallery_name;
19:  $galleryName =~ s/^.*--\s+//g; # filter out long name
... 
code stack:  /opt/undef.com/web/wedding/photos.html:15
/opt/undef.com/web/wedding/autohandler:105
raw error






























Can't locate object method "new" via package "ArtsyFartsy::Gallery" (perhaps you forgot to load "ArtsyFartsy::Gallery"?) at /opt/undef.com/web/wedding/photos.html line 15.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method "new" via package "ArtsyFartsy::Gallery" (perhaps you forgot to load "ArtsyFartsy::Gallery"?) at /opt/undef.com/web/wedding/photos.html line 15.^J') called at /opt/undef.com/web/wedding/photos.html line 15
HTML::Mason::Commands::__ANON__('gallery', 1005) called at /usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8a36cb0)', 'gallery', 1005) called at /usr/share/perl5/HTML/Mason/Request.pm line 1074
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, 'gallery', 1005) called at /usr/share/perl5/HTML/Mason/Request.pm line 760
HTML::Mason::Request::call_next('HTML::Mason::Request::CGI=HASH(0x8630ae0)') called at /opt/undef.com/web/wedding/autohandler line 105
HTML::Mason::Commands::__ANON__('gallery', 1005) called at /usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8601764)', 'gallery', 1005) called at /usr/share/perl5/HTML/Mason/Request.pm line 1069
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, 'gallery', 1005) called at /usr/share/perl5/HTML/Mason/Request.pm line 338
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 338
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::CGI=HASH(0x8630ae0)') called at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 197
eval {...} at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 197
HTML::Mason::Request::CGI::exec('HTML::Mason::Request::CGI=HASH(0x8630ae0)') called at /usr/share/perl5/HTML/Mason/Interp.pm line 207
HTML::Mason::Interp::exec(undef, undef, 'gallery', 1005) called at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 127
eval {...} at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 127
HTML::Mason::CGIHandler::_handler('HTML::Mason::CGIHandler=HASH(0x85b814c)', 'HASH(0x8d68188)') called at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 76
HTML::Mason::CGIHandler::handle_cgi_object('HTML::Mason::CGIHandler=HASH(0x85b814c)', 'CGI::Fast=HASH(0x8dab1a4)') called at /opt/Lib/cgi-bin/mason.fcgi line 42