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

code.sixapart.com

137 479

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

238 797

Last Topic: Manifest Schema Compatibility Issue When Restoring Blog by Matt on Oct 17, 2012

1858 6594

Last Topic: Categories and Basename Publishing Issues by e21media on Oct 25, 2012

88 307

Last Topic: absolute publish date in Manage Entries screen by .mau. on Apr 18, 2012

1488 5347

Last Topic: Anti-cloning by .mau. on Oct 29, 2012

732 3093

Last Topic: Blog moved server - now users cannot access blog? by mowgs on Oct 30, 2012

89 317

Last Topic: How to "pretify" a url in htaccess with a few wildcards by Caio on May 30, 2012

183 771

Last Topic: Commenting with TypePad by Rob Ferrara on Oct 17, 2012

212 680

Last Topic: Does MT-Approval work in MT5? by DLpres on Sep 25, 2012

27 100

Last Topic: Upgrading MT by Caio on Oct 15, 2012

49 224

Last Topic: Movable Type 6 Ideas by Caio on May 28, 2012

65 248

Last Topic: Expanding new rich text editor and implementing table function by Takeshi Nick Osanai on Jul 30, 2012