FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: Object Error - when clicking Display email
#1
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
Reply
#2
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
Reply
#3
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
Reply
#4
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">
{literal}
.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;
}
{/literal}
</style>

All the best -

Ben
Reply
#5
Thanks Ben,
That worked and now everything is working wonderfully!
Reply
#6
Hello, I have such question: how browser issues PHP Form the better?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)