Tags:
create new tag
view all tags

Question

I've installed TWiki 4.0.2 on a web-hosted FreeBSD system. Scripts are run as "nobody" and I do not have root access, but I can login.

There is one configuration warning that I have not resolved: Warning: 'patch' program was found on the PATH but is not GNU patch - this may cause problems. Patch version 2.1

The output from configuration is (will be) attached.

Some plugins, such as the ones that came in the distribution by default appear to work fine, while others, such as ImageGalleryPlugin, appear to install with no problems, but do not work properly. http://deroo.us/twiki/bin/view/TWiki/InstalledPlugins shows no Errors for the installation, but http://deroo.us/twiki/bin/view/TWiki/ImageGalleryPlugin shows an error in the Example section: Can't locate TWiki/Plugins/ImageGalleryPlugin/Core.pm in @INC (@INC contains: /usr/www/users/jderoo/deroo.us/twiki/lib/CPAN/lib//arch/ /usr/www/users/jderoo/deroo.us/twiki/lib/CPAN/lib//5.8.3/i386-freebsd/ /usr/www/users/jderoo/deroo.us/twiki/lib/CPAN/lib//5.8.3/ /usr/www/users/jderoo/deroo.us/twiki/lib/CPAN/lib// /usr/www/users/jderoo/deroo.us/twiki/lib . /usr/local/lib/perl5/5.8.3/i386-freebsd /usr/local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/i386-freebsd /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl/5.8.0/i386-freebsd /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl) at (eval 74) line 1. TWiki::Plugins::ImageGalleryPlugin::BEGIN() called at TWiki/Plugins/ImageGalleryPlugin/Core.pm line 1 eval {...} called at TWiki/Plugins/ImageGalleryPlugin/Core.pm line 1 eval 'use TWiki::Plugins::ImageGalleryPlugin::Core();' called at /usr/www/users/jderoo/deroo.us/twiki/lib/TWiki/Plugins/ImageGalleryPlugin.pm line 61 TWiki::Plugins::ImageGalleryPlugin::doInit() called at /usr/www/users/jderoo/deroo.us/twiki/lib/TWiki/Plugins/ImageGalleryPlugin.pm line 74 TWiki::Plugins::ImageGalleryPlugin::renderImageGallery(1,'"TWiki.TWikiDocGraphics" columns="3" limit="12" exclude="arro...') called at /usr/www/users/jderoo/deroo.us/twiki/lib/TWiki/Plugins/ImageGalleryPlugin.pm line 46 TWiki::Plugins::ImageGalleryPlugin::commonTagsHandler(' images at TWikiDocGraphics.

I have this problem with other plugins as well, but I have disabled all other plugins as suggested in the SupportGuidelines.

I am not very adept at Perl. It appears to me that the module that is being serched for should be found on the INC path. What am I missing?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: ImageGalleryPlugin
Server OS: FreeBSD
Web server: Apache/1.3.29
Perl version: 5.8.3
Client OS: Windoze XP
Web Browser: Firefox 1.5.0.3
Categories: Plugins

-- JohnDeRoo - 09 May 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I am not sure why it does not find the lib, /usr/www/users/jderoo/deroo.us/twiki/lib is in the INC path. The Plugin you mentioned probably does a lazy loading, e.g. loads with delay only if needed. In case you are running TWiki under mod_perl it is worth a try to turn that off, just for debug reasons.

-- PeterThoeny - 11 May 2006

Near as I can tell from the configure.html that is attached, I've got striaght apache. Is there some way to verify I (or my hosting provider) are not using mod_perl?

-- JohnDeRoo - 12 May 2006

I just had a similar issue when installing another Plugin. The problem was a 600 file permission of the .pm file, e.g. the cgi-user was not able to see the file even though it was in the path. Changing the file permission to 664 fixed it.

-- PeterThoeny - 12 May 2006

That was the right starting point. I had to open the protections on the directory and the file below it. Then I got a "can't create file ... permission denied" error so I had to open the protections on the .../pub/TWiki/ImageGalleryPlugin directory, too. Now it seems to work, so I have to figure out what I can tighten back up. Thank you!

-- JohnDeRoo - 13 May 2006

I have got the same problems with John. how can i change the file permission to 664? thanks!

-- GeTan - 12 Feb 2007

Change to the directory of the .pm file and type: chmod 644 *.pm

-- PeterThoeny - 12 Feb 2007

Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtml configure.html r1 manage 141.9 K 2006-05-09 - 00:25 UnknownUser result of running configure
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2007-02-12 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.