The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Using form submission data in email subject line leads to error? - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Using form submission data in email subject line leads to error? (/showthread.php?tid=1526)



Using form submission data in email subject line leads to error? - dethompsOWU - Aug 11th, 2011

So, I have a form that, when submitted, sends an email summarizing all the fields and whatnot...the usual sort of thing.

For the subject line of the email it sends out, however, I used this:

{$ANSWER_firstPublicationDate}, {$ANSWER_secondPublicationDate}, {$ANSWER_category}

(So, it should look something like this: "20110811, 20110816, Campus News".)

And, when it sends out the message upon an actual form submission, it works/looks the way I would expect it to.

However, when I'm in the back-end and I tell it to send a Test Email using a random submission, I get the following error in a popup:

Couldn't load page: http://forms.owu.edu/formtools/global/code/actions.php?action=send_test_email&test_email_format=both&test_email_recipient=dethomps@owu.edu&test_email_data_source=random_submission&test_email_submission_id=

This functionality works fine for messages associated with this (and other) forms that don't inject submission data into the subject line. Curiously, even if I change this particular message's subject line to plain text (even a single character, such as "a"), I get the same error message.

Any idea what might be happening and/or how it might have happened?

Thanks,

Doug Thompson
Manager of Web and Electronic Communcations
Ohio Wesleyan University




RE: Using form submission data in email subject line leads to error? - Ben - Aug 12th, 2011

Hi Doug,

Quote:Curiously, even if I change this particular message's subject line to plain text (even a single character, such as "a"), I get the same error message.

This is telling. My hunch is that the placeholders are probably a red herring - at least, I can't see any reason why they'd cause problems. Even if the placeholders were invalid (e.g. had a typo in them), they'd simply be ignored. It's possible that if they had some unusual chars in them (newlines, maybe...?) it could mess with the outgoing email, but I doubt it...

Are you using the Swift Mailer module to send the emails or the default PHP mail()?

Also, any chance I would be permitted access to debug the thing on your system? (I've probably asked you this half a dozen times, so I apologize if I forget).

- Ben



RE: Using form submission data in email subject line leads to error? - dethompsOWU - Aug 12th, 2011

I am using the Swift Mailer module.

As far as I can tell, there are no special characters in the subject lines or placeholder names or anything. Like I said, even if I change the subject line to "a", the error happens.

When you say "permitted access to debug the thing on your system", what exactly are you thinking of?

At any rate, since this only appears to affect the "test send" functionality (which I rarely use once everything's up-and-running), this may be a "safe to forget about it" issue at the moment...


RE: Using form submission data in email subject line leads to error? - Ben - Aug 12th, 2011

Quote:At any rate, since this only appears to affect the "test send" functionality (which I rarely use once everything's up-and-running), this may be a "safe to forget about it" issue at the moment...

Ah, you may be right! There's actually a lot more work involved with the test submission than the actual submission, ironic though that may be. With the test submission it has to convert all the email data into JSON and pass it back to the client to display, so it's probably going wrong in that step.

For debugging, I was wondering it I could get temporary FTP access and Form Tools access so I could log in, reproduce the problem and get to the bottom of it. But I totally understand if that's not acceptable on security grounds (or any other reason).

All the best -

Ben




RE: Using form submission data in email subject line leads to error? - dethompsOWU - Aug 12th, 2011

We'll plan to leave it alone for the time being.

Unfortunately, I can't really grant the level of access you would want/need to do the debugging.

If the problem crops up again and/or becomes a larger issue than just an annoyance solely for me, I'll definitely let you know.

Thanks!