×

Notice

The forum is in read only mode.

Invalid argument supplied for foreach() in

14 years 2 months ago #1124 by Tartuffe
Hello,

I use joomla 1.5.15 and JSJobs 1.5.7 commercial.

When i test my site Online i have this error when i try to create a new company :

Warning: Invalid argument supplied for foreach() in /.../components/com_jsjobs/views/employer/tmpl/formcompany.php on line 320

It refers to this lines :
<?php break;		  
     default:
	//echo \'<br> default uf \'.$filed->field;
	if ( $field->published == 1 ) {
					
	//line 320//
	foreach($this->userfields as $ufield){ 
	if($field->field == $ufield[0]->id) {
	$userfield = $ufield[0];
	$i++;
	echo \"<tr><td valign=\'top\' align=\'right\'>\";
	if($userfield->required == 1){
	echo \"<label id=\".$userfield->name.\"msg for=$userfield->name>$userfield->title</label>&nbsp;<font color=\'red\'>*</font>\";
	$cssclass = \"class =\'inputbox required\' \";
	}else{
	echo $userfield->title; $cssclass = \"class=\'inputbox\' \";
	}
	echo \"</td><td>\"	;
I create a new field (siret N°).

But when i edit formcompany.php to modify, there is no error !!!
I really don\'t understand...
:blink:

Please, could you help me ?
Thanks
MP
www.be-emploi.com/joomla
14 years 1 month ago #1128 by Tartuffe
Hi Ahmad,
Thanks for your help. This problem resolved but as I told you in another post, I can\'t post a photo when i logged as jobseeker !

So I\'m very disturb.
Thanks
MP
Time to create page: 0.058 seconds

Please publish modules in offcanvas position.