Forums

Code disappears and an error message

kkurtz 02 Jan, 2013
A couple of odd things are happening..
First: My form is set up to give a reply when the user clicks submit. I get the reply, but I also get the following error message "Warning: trim() expects parameter 1 to be string, array given in /home/cssdar/public_html/members/libraries/joomla/mail/helper.php on line 35" I can't tell what it is referring to.
Second: I have some custom html within the form that uses a table to line up some radio buttons under images. I put in the code and test and everything is fine. Then in a few minutes that code goes away. I've put it in a number times and I'm sure I've saved the form.

Thanks for your help.
K Kurtz
GreyHead 02 Jan, 2013
Hi kkurtz,

You should be able to hide PHP Warnings by setting Error Reporting to System Default or none in your Site Global Configuration.

The warning is probably caused because one of the email parameters is empty instead of having a value set.

How have you entered your Custom HTML. If you have used Formatted Text then you need to make sure that it doesn't contain any double quoted or anything but basic text and HTML. Instead use the Custom Element element from the Advanced element group.

Bob
This topic is locked and no more replies can be posted.