Forums

got error

EPS 21 Nov, 2007
I have created a Form for ChronoForms.
After "Subit" i get following error:

Warning: reset() [function.reset]: Passed variable is not an array or object in /mnt/web4/32/64/5577064/htdocs/members/includes/joomla.php on line 4000

Warning: Variable passed to each() is not an array or object in /mnt/web4/32/64/5577064/htdocs/members/includes/joomla.php on line 4002




Heres the Form Code:

<form method="POST" action="../_derived/nortbots.htm" onSubmit="location.href='../_derived/nortbots.htm';return false;" webbot-onSubmit webbot-action="--WEBBOT-SELF--">
	<!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
	<p>Emetteur Societe <input type="text" name="Firma" size="32"> Nom
	<input type="text" name="Bestellname" size="28"></p>
	<p>Chariot N°
	<input type="text" name="fznr" size="20">  Chariot Modele 
	<input type="text" name="typ" size="32"> </p>
	<p><input type="radio" value="Demande De Prix" checked name="R1">Demande De 
	Prix<br>
	<input type="radio" name="R1" value="Commande">Commande<br>
	<input type="radio" name="R1" value="Demande En Garantie">Demande En 
	Garantie</p>
	<p><b>Adresse d'expedition<br>
	</b>rue                
	<input type="text" name="lief_str" size="20"><br>
	ville               
	<input type="text" name="lief_ort" size="20"><br>
	code postal    <input type="text" name="lief_plz" size="20"></p>
	<p><b>Adresse de facturation<br>
	</b>rue                
	<input type="text" name="rech_str" size="20"><br>
	ville               
	<input type="text" name="rech_ort" size="20"><br>
	code postal    <input type="text" name="rech_plz" size="20"></p>
	<table border="1" width="580" height="29">
		<!-- MSTableType="nolayout" -->
		<tr>
			<td height="29" width="24">Q</td>
			<td height="29" width="75">References</td>
			<td height="29" width="459">Pieces</td>
		</tr>
		<tr>
			<td height="29" width="24"> </td>
			<td height="29" width="75"> </td>
			<td height="29" width="459"> </td>
		</tr>
		<tr>
			<td height="29" width="24"> </td>
			<td height="29" width="75"> </td>
			<td height="29" width="459"> </td>
		</tr>
		<tr>
			<td height="29" width="24"> </td>
			<td height="29" width="75"> </td>
			<td height="29" width="459"> </td>
		</tr>
		<tr>
			<td height="29" width="24"> </td>
			<td height="29" width="75"> </td>
			<td height="29" width="459"> </td>
		</tr>
		<tr>
			<td height="29" width="24"> </td>
			<td height="29" width="75"> </td>
			<td height="29" width="459"> </td>
		</tr>
		<tr>
			<td height="29" width="24"> </td>
			<td height="29" width="75"> </td>
			<td height="29" width="459"> </td>
		</tr>
		<tr>
			<td height="29" width="24"> </td>
			<td height="29" width="75"> </td>
			<td height="29" width="459"> </td>
		</tr>
	</table>
	<p> </p>
	<p><b>Mode d'expedition: </b>
	<input type="radio" name="R2" value="normal" checked>normal   
	<input type="radio" name="R2" value="express">express</p>
	<p><input type="submit" value="Envoyer" name="Send" style="float: left"></p>
	<p align="center"> </p>
</form>
GreyHead 21 Nov, 2007
Hi EPS,

I think you are on Joomla 1.5. This is a Joomla warning most likely because there the replyto name is empty. Have you got it set in your Form General Tab?

You often see these warning messages if you have a high setting for 'Error Reporting' in the Joomla Global Configuration | Server tab. Try 'System Default' or 'Simple' unless you are debugging.

Bob
EPS 21 Nov, 2007
I am on

Joomla! 1.0.13 Stable [ Sunglow ] 21 July 2007 16:00 UTC



But you're right.

I have filled the "ReplyTo email:" but not the "ReplyTo name:"

Perhaps you can include a check for the requested fields.


Thanks a lot.
GreyHead 21 Nov, 2007
Hi EPS,

Ah, my mistake with the version. NO problem.

And, yes, I think we should do some more validation on the email entries.

Bob

Max: the mosMailer inserts the site from addresses if $from & $fromname are empty. I wonder if we shouldn't run that check on both From & Reply to? We could flag the error in debug but let it run silently in production mode.
Max_admin 22 Nov, 2007
Hi Bob, Thats OK!

EPS, you have <form tags in your code!! please remove them or this may make problems too!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.