I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-02-15 09:17:03.966641-08 by dpreston
Can't locate object method "new" via package
I installed via cpan and installed all dependencies. When trying to use this module I get the following errors over and over in my error log and no thumbnails show up. If I click on a box where the thumbnail should be being displayed I get an error page Can't locate object method "new" via package "CGI::Application::PhotoGallery::GD" at /usr/lib/perl5/site_perl/5.8.8/CGI/Application/PhotoGallery.pm line 300. Powered by CGI::Application::PhotoGallery My script is below ---
#!/usr/bin/perl use CGI::Application::PhotoGallery; my $webapp = CGI::Application::PhotoGallery->new( PARAMS => { photos_dir => '/var/www/html/photos' } ); $webapp->run();
---- I call it via browser using http://myurl/cgi-bin/friends.cgi Any help would be appreciated.
Direct Responses: Write a response