RyanHTC

Object plugin help

Vote 0 Votes

I've been making a plugin which can interact with the database, currently the names just follow those given in the creating objects tutorial. I followed the tutorial, not chaning much but when I look at the plugin list it is greyed out and in the activity log I get this message:

Plugin error: /var/www/cgi-bin/mt/plugins/Foo/Foo.pl Can't locate MT/Foo.pm in @INC (@INC contains: /var/www/cgi-bin/mt/plugins/Foo/lib /var/www/cgi-bin/mt/plugins/zemanta/lib /var/www/cgi-bin/mt/plugins/spamlookup/lib /var/www/cgi-bin/mt/plugins/StyleCatcher/lib /var/www/cgi-bin/mt/plugins/mixiComment/lib /var/www/cgi-bin/mt/plugins/WidgetManager/lib /var/www/cgi-bin/mt/plugins/EventEmailer/lib /var/www/cgi-bin/mt/plugins/FacebookCommenters/extlib /var/www/cgi-bin/mt/plugins/FacebookCommenters/lib /var/www/cgi-bin/mt/plugins/Textile/lib /var/www/cgi-bin/mt/plugins/WXRImporter/lib /var/www/cgi-bin/mt/addons/Commercial.pack/lib /var/www/cgi-bin/mt/addons/Community.pack/lib /var/www/cgi-bin/mt/extlib /var/www/cgi-bin/mt/extlib lib /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /var/www/cgi-bin/mt/plugins/Foo/Foo.pl line 18.
BEGIN failed--compilation aborted at /var/www/cgi-bin/mt/plugins/Foo/Foo.pl line 18.
Compilation failed in require at lib/MT.pm line 1360.

I tried putting Foo.pm in /var/www/cgi-bin/mt/plugins/Foo/lib and /var/www/cgi-bin/mt/plugins/Foo/lib/Foo and get the same message each time.

What can I do to fix this?

Reported on Movable Type 5

1 Reply

| Add a Reply

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012