The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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 "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Swift Mailer Fatal Error on Submit - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16)
+--- Thread: Swift Mailer Fatal Error on Submit (/showthread.php?tid=1657)



Swift Mailer Fatal Error on Submit - kipshaw - Sep 25th, 2011

Hi -

Problem with swift_mailer

Here's the deal:

before swift mailer setup
no errors - correctly went to thank you page

then configured swift mailer
swift mailer test email successfully sent
then email test successfully sent

then filled in form and hit submit
database entry successfully created

but instead of going to thankyou page, error appears saying this

Fatal error: Call to a member function setCharset() on a non-object in /home/askme0/public_html/urbanvillageedenton/formtools/modules/swift_mailer/library.php on line 237

Here is line 237
$email->setCharset($settings["charset"]);

Here it is with the if line preceding it:

if (isset($settings["charset"]) && !empty($settings["charset"]))
$email->setCharset($settings["charset"]);

What am I doing wrong?


RE: Swift Mailer Fatal Error on Submit - kipshaw - Sep 25th, 2011

My goof - I had an empty email template that was causing the hiccup. All is well now.

Except I can't get the time offset to work - put it both my main account settings and also in the field settings. The email comes with the correct time in the header. But the submission and mod date in the body of the email has the server date, which is Pacific Time, and all our clients will most likely be eastern time. I set the offset for 3 hours, but it isn't working.