r5 - 01 May 2008 - 07:36:52 - PeterThoenyYou are here: TWiki >  Support Web > SendEmailPluginNoFeedback
Tags:
, create new tag

Question

Me again. smile

I got the plugin to work, but the page isn't getting the "successful!" feedback. In looking at the code, the $query parameter gets set fine (for everything) in the _finishSendEmail function.

However, in the _handleSendEmailTag function, when this line is called: my $query = TWiki::Func::getCgiQuery();

$query only looks like this if I dump the data:

( { '.charset' => 'ISO-8859-1', '.parameters' => [], '.path_info' => '/TWiki/SendEmailPlugin', '.fieldnames' => {} }, 'CGI' );

so it's missing pretty much everything that should be set.

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Plugins
-- MichelleHedstrom - 08 Feb 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Strange. I don't see anything wrong on my test machine. I did have to setup WebMasterEmail in configure first though. What happens if you don't enter anything in the form and press send?

-- ArthurClemens - 08 Feb 2008

The same thing happens. We have the webmaster email stuff set already.

-- MichelleHedstrom - 09 Feb 2008

Specifically we're losing the errorStatus value somewhere between _finishSendEmail() and _handleSendEmailTag. It goes in... it gets lost. So handleSendEmailTag terminates early, not knowing what status to present. From looking at the debugging messages, it looks like we have different IDs for the CGI hash:

| 06 Mar 2008 - 13:03 | sendEmail start
| 06 Mar 2008 - 13:03 | sendEmail query=CGI=HASH(0x1263180)
...
| 06 Mar 2008 - 13:03 | _finishSendEmail query=CGI=HASH(0x1263180)
...
| 06 Mar 2008 - 13:03 | _handleSendEmailTag query CGI=HASH(0x126327c)
The hash the errorStatus goes into is not the one we're trying to read from?

-- VickiBrown - 06 Mar 2008

Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed.

-- PeterThoeny - 01 May 2008

 
Change status to:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo