I did look for solutions here but none of them seemed to work. Well there was a file uploaded by Max but it doesn't seem to be there anymore.
Joomla 1.0.15
ChronoForms 2.3.9
I am getting this error when trying to submit my form.
Line 366 in my chronocontact.php is
365 if ( trim($titlesvalues->$name) ) {
366 $name = $titlesvalues->$name;
I have checked and all input fields seem to have a type, value and name. I hope it's just something really easy and stupid but my head is going to explode if I have to keep looking at it. So can someone please give me an idea of where to look?
I think I have narrowed it down to this part of the form that is causing the error. Thank you to anyone who has time to look.
Cheryl
Joomla 1.0.15
ChronoForms 2.3.9
I am getting this error when trying to submit my form.
Fatal error: Cannot access empty property in /home/crptou/public_html/components/com_chronocontact/chronocontact.php on line 366
Line 366 in my chronocontact.php is
365 if ( trim($titlesvalues->$name) ) {
366 $name = $titlesvalues->$name;
I have checked and all input fields seem to have a type, value and name. I hope it's just something really easy and stupid but my head is going to explode if I have to keep looking at it. So can someone please give me an idea of where to look?
I think I have narrowed it down to this part of the form that is causing the error. Thank you to anyone who has time to look.
Cheryl
<?php
global $database;
$query_classes = "SELECT * FROM basa";
$database->setQuery($query_classes);
$results= $database->query();
if (!$results) {
echo "Could not successfully run query ($query_classes) from DB: " . mysql_error();
exit;
}
echo '<table width="100%" bgcolor="#CCCCFF" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">';
echo '<tr>';
echo '<td align="center" valign="top" colspan="4">';
echo '<h3>Class Selection(s) for Child 1</h3>';
echo '</td>';
echo '</tr>';
echo '<tr><td align="center" valign="top">Class Name</td>
<td align="center" valign="top">Grade</td>
<td align="center" valign="top">Day & Time</td>
<td align="left" valign="top"> Tuition</td>
<td align="left" valign="top">
Select</td></tr>';
$classcount = mysql_num_rows($results);
while ($row = mysql_fetch_assoc($results)) {
$buttonid = "button1_".$row["index"];
$hiddenid = "cost1_".$row["index"];
echo '<tr>';
echo '<td align="left" valign="top">'.$row["Name"]. '</td>';
echo '<td align="left" valign="top">'.$row["Grade"]. '</td>';
echo '<td align="left" valign="top">'.$row["Day_time"]. '</td>';
echo '<td width="25" align="left" valign="top">$'.$row["Fee"]. '</td>';
echo '<td align="left" valign="top"> <input type="checkbox" ';
echo 'name="'.$row["Name"].'"';
echo ' id="'.$buttonid.'" value="ON" onclick="CalcTotal1('.$classcount.', Child1Total, TChild1, TotalFees)"';
echo '</td>';
echo '<input type="hidden" id="'.$hiddenid.'" name="'.$hiddenid.'" value=""'. $row["Fee"].'"/>';
echo '</tr>';
}
?>
<tr>
<td align="right" valign="top"> </td>
<td align="left" valign="top">
Total Class Fees</td>
<td align="left" valign="top">
$<input type="text" name="Child1Total" value="" id="Child1Total" size="20"><br>
<input type="submit" name="submit" value="submit"> </td>
</tr>
</table>
Hi Cheryl,
This code is trying to apply the values in the 'Fields Titles' tab (no longer exists in CFv3.0). What code do you have in there?
If should be field_name=description string
Bob
This code is trying to apply the values in the 'Fields Titles' tab (no longer exists in CFv3.0). What code do you have in there?
If should be field_name=description string
Bob
Thanks Bob, I had seen a post about that, and there was nothing in that tab. I did add a couple fields as one post suggested it might need to be not empty, but that didn't seem to help either. I have other forms that have nothing in this tab and they work fine on the same site.
I tried it again and it still doesn't help. Is there any way to just remove that check?
Could it be the hidden fields' names that are causing this problem? Such as
Is there something wrong with that code? I'm not sure how to add the field_name=title for this type of field.
Cheryl
I tried it again and it still doesn't help. Is there any way to just remove that check?
Could it be the hidden fields' names that are causing this problem? Such as
echo '<input type="hidden" id="'.$hiddenid.'" name="'.$hiddenid.'" value=""'. $row["Fee"].'"/>';
Is there something wrong with that code? I'm not sure how to add the field_name=title for this type of field.
Cheryl
Hi cheryl,
Hmmm . . . that hidden input looks OK - does it show up OK in the form HTML, just wonderign if it might have an empty name??
Bob
Hmmm . . . that hidden input looks OK - does it show up OK in the form HTML, just wonderign if it might have an empty name??
Bob
Good morning Bob. Do you ever sleep? 😀
I'm not sure what you mean, but here is the rendered code (view source on the form)
I did find this value=""105" using a double quote, but I did take that out and still get the same message.
Cheryl
I'm not sure what you mean, but here is the rendered code (view source on the form)
<form name="ChronoContact_cheryl" id="ChronoContact_cheryl" method="post" action="index.php?option=com_chronocontact&task=send&chronoformname=cheryl" >
<table width="100%" bgcolor="#CCCCFF" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top" colspan="4"><h3>Class Selection(s) for Child 1</h3></td></tr><tr><td align="center" valign="top">Class Name</td>
<td align="center" valign="top">Grade</td>
<td align="center" valign="top">Day & Time</td>
<td align="left" valign="top"> Tuition</td>
<td align="left" valign="top">
Select</td></tr><tr><td align="left" valign="top">Ultra Sports</td><td align="left" valign="top">K-3</td><td align="left" valign="top">MON: 1:30-2:30p</td><td width="25" align="left" valign="top">$105</td><td align="left" valign="top"> <input type="checkbox" name="Ultra Sports" id="button1_5" value="ON" onclick="CalcTotal1(14, Child1Total, TChild1, TotalFees)"</td><input type="hidden" id="cost1_5" name="cost1_5" value=""105"/></tr>
<tr>
<td align="right" valign="top"> </td>
<td align="left" valign="top">
Total Class Fees</td>
<td align="left" valign="top">
$<input type="text" name="Child1Total" value="" id="Child1Total" size="20"><br>
<input type="submit" name="submit" value="submit"> </td>
</tr>
</table>
</form>
I did find this value=""105" using a double quote, but I did take that out and still get the same message.
Cheryl
Hi Cheryl,
Yes, but not in your time-zone :-)
There's no closing > on the Ultra Sports input - could that be the problem??
Bob
Yes, but not in your time-zone :-)
There's no closing > on the Ultra Sports input - could that be the problem??
Bob
I changed it to use email template in the general tab and that actually seemed to fix it. Even when there is no email template in the form code. Luckily the client wants to use an email template anyway 8)
Not sure why this is happening because I know other forms on this same site do not use email template and they seem to send the field titles with no email template.
Anyway I fixed the missing closing tag too but that was not the issue with the fatal error.
Thanks for all your time Bob... I really appreciate it. Hopefully I can migrate this client to new joomla this year and new chronoforms too.
Cheryl
Not sure why this is happening because I know other forms on this same site do not use email template and they seem to send the field titles with no email template.
Anyway I fixed the missing closing tag too but that was not the issue with the fatal error.
Thanks for all your time Bob... I really appreciate it. Hopefully I can migrate this client to new joomla this year and new chronoforms too.
Cheryl
Hi Cheryl,
This code is trying to apply the values in the 'Fields Titles' tab (no longer exists in CFv3.0). What code do you have in there?
If should be field_name=description string
Bob
How do we access the field titles now that the tab is gone?
Thx !
Hi deborahSusan,
Weird, I could have sworn that I'd just replied to this.
You can't. Max has removed this from CF v3.0, you have to create an email tempalte (or use the default one) instead.
Bob
Weird, I could have sworn that I'd just replied to this.
You can't. Max has removed this from CF v3.0, you have to create an email tempalte (or use the default one) instead.
Bob
:wink: Already went both of those routes . . .
Just fixed it . . . I'm not good with WYSIWYG's!😀
Just fixed it . . . I'm not good with WYSIWYG's!😀
This topic is locked and no more replies can be posted.