cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Answered

SendEmailPlugin "Topic does not exist" error

Same sort of problem as for Question422 and Question446

Installed SendEmailPlugin 1.5.1 on Foswiki 1.0.8 (on Ubuntu Hardy).

InstalledPlugins shows no errors.

Apache error log:
[error] [client 127.0.0.1] File does not exist: /home/web/foswiki/bin/sendemail/Sandbox/SendEmailTest, referer: https://localhost/foswiki/Sandbox/SendEmailTest

Here's what's in the config:
# grep SendEmailPlugin ../lib/LocalSite.cfg 
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Allow}{MailTo} = '.*';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Deny}{MailTo} = '';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Allow}{MailFrom} = '.*';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Deny}{MailFrom} = '';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Allow}{MailCc} = '.*';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Deny}{MailCc}  = '';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Module} = 'Foswiki::Plugins::SendEmailPlugin';


Argh. It started working when I turned on debug mode and it's still working now that I've turned that off. worried, confused

Actually, this might turn out to be useful information. I upgraded the plugin from an earlier version - 1.4.1 (29 Mar 2009). It seems that this may be the problem. After toggling debug, LocalSite.cfg now has:
# grep SendEmailPlugin ../lib/LocalSite.cfg 
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Allow}{MailTo} = '.*';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Deny}{MailTo} = '';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Allow}{MailFrom} = '.*';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Deny}{MailFrom} = '';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Allow}{MailCc} = '.*';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Permissions}{Deny}{MailCc} = '';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Module} = 'Foswiki::Plugins::SendEmailPlugin';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Debug} = 0;
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Messages}{SentSuccess}{en} = 'Email sent!';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Messages}{SentError}{en} = 'Could not send email.';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Messages}{InvalidAddress}{en} = '\'$EMAIL\' is not a valid e-mail address or account.';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Messages}{EmptyTo}{en} = 'You must pass a \'to\' e-mail address.';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Messages}{EmptyFrom}{en} = 'You must pass a \'from\' e-mail address.';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Messages}{NoPermissionFrom}{en} = 'No permission to send an e-mail from \'$EMAIL\'.';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Messages}{NoPermissionTo}{en} = 'No permission to send an e-mail to \'$EMAIL\'.';
$Foswiki::cfg{Plugins}{SendEmailPlugin}{Messages}{NoPermissionCc}{en} = 'No permission to cc an e-mail to \'$EMAIL\'.';
          'Foswiki::Plugins::SendEmailPlugin::Core',

Should this be logged as a problem, or is it a more general issue with upgrading plugins?

Also, can I ask about the error status? debug.txt has the line:
| 2010-03-03T08:16:31Z debug | SendEmailPlugin -- _finishSendEmail errorStatus=1; |
I'd assume that errorStatus=1 means there's a problem of some kind. Is this correct?

Cheers,

- Marcus

It looks like the installer did not copy the configure values to LocalSite.cfg automatically, and that the new values got inserted after you saved the settings in configure.

You are right about the error message, it is too crypic. By the way, errorstatus=1 means no error.

-- ArthurClemens - 13 Mar 2010

QuestionForm edit

Subject Using an extension
Extension SendEmailPlugin
Version Foswiki 1.0.8
Status Answered
Topic revision: r2 - 13 Mar 2010, ArthurClemens - This page was cached on 19 Aug 2018 - 07:19.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy