The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
|
Error: Object Error - when clicking Display email - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4) +--- Thread: Error: Object Error - when clicking Display email (/showthread.php?tid=731) |
Error: Object Error - when clicking Display email - jwalter - Jun 3rd, 2010 Hi Ben, Well got a bit further today. I was able to copy the forms over from v.1.51 into v. 2. I made necessary changes to the form and then ran a test by filling it out and submitting it. The good news, it did enter my submission in the database. The bad news, it did not send an email confirmation or proceed on to the thank you page. Also no error message, just a blank page. I have seen another post with a similar problem, but did not read any solution to the problem. I did successfully send an email through the email module. To keep things simple I stayed with the "process.php" not using the api. Further down the road I will start creating new forms using the api. The reason I upgraded to this version was for the smtp email, will the process.php form use smtp or do I need to create a form using the api method? I am getting an error when I click Display Email. The windows error is "Error: Object Error". Please let me know if you need more info. Thank you RE: Error: Object Error - when clicking Display email - Ben - Jun 6th, 2010 Hi jwalter, Hmm... I haven't seen that error myself. What browser & OS are you using? Try this: remove the entire email template content (back it up somewhere first!) and just put in some text only (like saying "test!"). Click save, then try displaying the the email again. If that works, you'll know it's something to do with the email template content. Try adding in bits from the original email template piece by piece and see where it breaks. That'll give you a good idea of where the error lies. Quote:will the process.php form use smtp or do I need to create a form using the api method? Nope! The Swift Mailer (SMTP) module works with both types of forms, so don't worry about that. - Ben RE: Error: Object Error - when clicking Display email - jwalter - Jun 7th, 2010 Thanks Ben, I have found the problem code, it doesn't like my internal css. If I remove the following, it works: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <style media="all" type="text/css"> .answer { font-size:80%; font-weight:bold; font:Arial, Helvetica, sans-serif; color:#000066; line-height:100%; } .question { font-size:80%; font:Arial, Helvetica, sans-serif; color:#000066; } </style> </head> <body> ..... </tr> {if $ANSWER_FName} <tr> <td class="question">First Name</td> <td class="answer">{$ANSWER_FName}</td> </tr> ....... </body> </html> Now the email works! Is there a way to include internal CSS for my email responses? Thank you RE: Error: Object Error - when clicking Display email - Ben - Jun 8th, 2010 Ah yes, the curly braces will confuse the Smarty parser. Try wrapping them in {literal} tags - that should allow them to get added. Code: <style media="all" type="text/css"> All the best - Ben RE: Error: Object Error - when clicking Display email - jwalter - Jun 9th, 2010 Thanks Ben, That worked and now everything is working wonderfully! RE: Error: Object Error - when clicking Display email - Fire - Jun 9th, 2010 Hello, I have such question: how browser issues PHP Form the better? |