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
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
Error Invalid JSON 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: Error Invalid JSON Error! (/showthread.php?tid=1669)



Error Invalid JSON Error! - just1ncase - Oct 3rd, 2011

I need some help! My registration form email confirmation email is not working (using Form Tools v 2.1.2). First, it didn't send the email confirmation which it suppose to, but when I went to send a test email, it came up with this message in the Emails Template option:

Error: Invalid JSON

Error - Failed query in ft_get_account_info: SELECT * FROM ft_accounts WHERE account_id =

It should work, so I have no clue what its doing. Please help, my client has been bugging annoyingly to get this email confirmation to get up—and so far, I'm stumped. But that's an other story.

Any help is appreciated.


RE: Error Invalid JSON Error! - just1ncase - Oct 5th, 2011

So, I've updated the Form Tools from 2.1.2 to 2.1.3 and it's not throwing that error message anymore. And, it seems like the email confirmation are working again.

Although, the test email submissions isn't functional anymore (The place where you can input your email address and obtain test email from either random submissions or a selected submission)—which is fine, as long as the real email confirmation are sent out normally.

We'll see how it works over the next few days.


RE: Error Invalid JSON Error! - Ben - Oct 7th, 2011

Hey justincase,

Yeah - I made a totally boneheaded mistake in 2.1.3, which has caused problems with the javascript on the Email Templates page. The email testing functionality won't work. I've finished 2.1.4 locally and I'm just QAing it today. It should be released tomorrow or Sunday (possibly even this evening, if no problems arise). That will contain a fix for that.

Apologies!

- Ben


RE: Error Invalid JSON Error! - just1ncase - Oct 7th, 2011

No worries, Ben. I thought something went wrong.

I'm glad it's going to be fixed on the next update. Just let me know when it becomes available.


RE: Error Invalid JSON Error! - Ben - Oct 10th, 2011

Heya,

In case you didn't know, it's now available! When you upgrade, make sure you upgrade all components that need it. I've done a lot of minor compatibility updates to the modules recently.

All the best -

Ben


RE: Error Invalid JSON Error! - sogreen - Nov 12th, 2011

I am having this same error. I have updated everything to 2.1.8. I am getting the following error:

Error: Invalid JSON:
Fatal error: Uncaught exception 'Swift_ConnectionException' with message 'There was a problem reading line 1 of an SMTP response.

This happens when I try to send a test email, but I am still able to display the test email. Any ideas?



RE: Error Invalid JSON Error! - Ben - Nov 13th, 2011

Hi sogreen,

Did you empty your browser cache? It may well have cached the old JS file. Worth confirming, at least. Or, alternatively, open it up in another browser.

What browser were you using, btw?

Ben


RE: Error Invalid JSON Error! - sogreen - Nov 13th, 2011

(Nov 13th, 2011, 11:29 AM)Ben Wrote: Hi sogreen,

Did you empty your browser cache? It may well have cached the old JS file. Worth confirming, at least. Or, alternatively, open it up in another browser.

What browser were you using, btw?

Ben

Yes, My browser cache was emptied... It automatically empties when my browser closes aswell.

I am using Firefox 7.0.1.

None of my emails that worked last week work now (after the last update I did)
*******************
Here is the full error message:

Error: Invalid JSON:
Fatal error: Uncaught exception 'Swift_ConnectionException' with message 'There was a problem reading line 1 of an SMTP response. The response so far was:<br />[]. It appears the connection has died without saying goodbye to us! Too many emails in one go perhaps? (fsockopen: #0) ' in ~/modules/swift_mailer/php5/Swift/Connection/SMTP.php:250 Stack trace: #0 ~modules/swift_mailer/php5/Swift.php(306): Swift_Connection_SMTP->read() #1 ~/modules/swift_mailer/php5/Swift.php(217): Swift->command('', 220) #2 ~modules/swift_mailer/php5/Swift.php(101): Swift->connect() #3 ~/modules/swift_mailer/library.php(196): Swift->__construct(Object(Swift_Connection_SMTP)) #4 ~/global/code/emails.php(271): swift_send_email(Array) #5 ~/global/code/actions.php(186): ft_send_test_email(Array) #6 {main} thrown in ~/modules/swift_mailer/php5/Swift/Connection/SMTP.php on line 250.


RE: Error Invalid JSON Error! - Ben - Nov 14th, 2011

Hi sogreen,

I'm not totally sure this is a Form Tools issue, or one with the connection to your SMTP site. But if you'd like, feel free to email me at ben.keen@gmail.com with your Form Tools login info and I could try and take a look at it.

- Ben




RE: Error Invalid JSON Error! - sogreen - Nov 16th, 2011

I was able to resolve the issue... Somehow the swift mailer port had been changed. Once I corrected that the problem was resolved...

However, I have noticed something minor. The email From field seems to only include the email address twice and not the name. On my forms I have set up the email with a first name, last name and email address field but when emails go through they are from [email] <[email]>. It is as though the name fields have been overwritten by the email field. Has anyone else experienced this?

(Nov 14th, 2011, 9:47 AM)Ben Wrote: Hi sogreen,

I'm not totally sure this is a Form Tools issue, or one with the connection to your SMTP site. But if you'd like, feel free to email me at ben.keen@gmail.com with your Form Tools login info and I could try and take a look at it.

- Ben