Tags:
create new tag
view all tags

Question

I'm trying to use the SendEmailPlugin, but as far as I can tell, the sendemail cgi in the bin directory isn't getting called properly, and I'm not sure why.

Our bin directory is at /home/share/twiki/bin yet when I try to use the SendEmailPlugin, and submit the form I get a "page not found" error. Looking in the apache logs shows me that it's trying to find the sendemail file at /home/share/htdocs . I'm not sure where that came from or why it's happening. All our other files in the bin directory (including ones we've added) work fine.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: FreeBSD
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Plugins

-- MichelleHedstrom - 07 Feb 2008

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.

Did you check the file permissions of the sendemail file? It should be set to executable.

-- ArthurClemens - 07 Feb 2008

Yup, tried that already.

-- MichelleHedstrom - 07 Feb 2008

You can try to rename the bin file, and change the form action. The form is the only place where sendemail is called.

-- ArthurClemens - 07 Feb 2008

Let me give you the exact sequence of events since maybe that will help, since I'm not sure if it's the plugin or the binary file or maybe something with how our server is set up?

Go to the TWiki/SendEmailPlugin docs page, and fill in the sample data. (BTW, this still happens even if I set a hardcoded full absolute URL to the sendemail cgi.) The CGI is installed in /home/share/twiki/bin. When the sample data is filled in, press "submit", and immediately get redirected to a "Sorry, the page you requested was not found." page. Looking in the apache logs shows me this: "File does not exist: /home/share/htdocs/sendemail/TWiki/SendEmailPlugin", so for some reason it's going to the wrong place.

Also if I just try going directly to "http://(our twiki server)/sendemail" (we don't need the /bin/ in our setup and it makes no difference anyways), I still get the same error.

I also tried the rename and it made no difference.

-- MichelleHedstrom - 08 Feb 2008

Actually, after I typed that last statement, it made me start thinking about the apache config, and I was right - there was something I needed to tweak in it, so I got it working.

-- MichelleHedstrom - 08 Feb 2008

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-02-08 - MichelleHedstrom
 
  • 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.