Problem.Please, help me///

JhonRu 11 Dec, 2012
Hello, downloaded the latest version Chronoforms_V4_RC3.5.2_J1.6.zip, installed it, I first began to use the "easy form wizard" and immediately there was an error: if the created forms display an error:
Notice: Undefined offset: 2 in /, , /,, /,, /,, / administrator / components / com_chronoforms / views / form_wizard.php on line 911.
 And, if you create multiple forms, respectively, and the same error: Notice: Undefined offset: 3 in /,, /,, /,, /,, / administrator / components / com_chronoforms / views / form_wizard.php on line 911;Notice: Undefined offset: 4 in /,, /,, /,, /,, / administrator / components / com_chronoforms / views / form_wizard.php on line 911;Notice: Undefined offset: 5 in /,, /,, /,, /,, / administrator / components / com_chronoforms / views / form_wizard.php on line 911;and etc.

Descriptions of the error is not found. Moreover, on the version of the error Chronoforms_V4_RC3.5.1_J1.6.zip no. Why? Help resolve the issue.
I apologize for the mistakes in English.
GreyHead 11 Dec, 2012
Hi JhonRu,

The simplest way to deal with PHP Notices (which give advice, they aren't errors that cause problems) is to go to Site | Global Configuration and set Error Reporting to 'System Default' or to 'None'.

Bob
JhonRu 11 Dec, 2012
Thank you very much. The error is really gone. I stood "in the settings as the default for the system" I changed the error message "No." But I understand that the error still is, just off showing error. And how do fix it?
In this file form_wizard.php:
904 function buildContaintersOutput(&$containers_outputs, &$childs, $id=0) {
905 if (isset($childs[$id])) {
906 foreach ($childs[$id] as $child) {
907 $containers_outputs[$child] = buildContaintersOutput($containers_outputs, $childs, $child);
908 $containers_outputs[$id] = str_replace('<!--CONTAINER_ELEMENTS-'.$child.'-->', $containers_outputs[$child], $containers_outputs[$id]);
909 }
910 }
911 return $containers_outputs[$id];
912 }
GreyHead 12 Dec, 2012
Hi JhonRu,

There is no Error, this is a PHP 'Notice' which gives you advice about code that isn't 100% in agreement with the PHP standard.

I would not recommend that you edit the code here. I am not clear what the result might be. I think that the cause is that the return line is not dependent on the if(). An improved version might be
function buildContaintersOutput(&$containers_outputs, &$childs, $id=0) {
  if (isset($childs[$id])) {
    foreach ($childs[$id] as $child) {
      $containers_outputs[$child] = buildContaintersOutput($containers_outputs, $childs, $child);
      $containers_outputs[$id] = str_replace('<!--CONTAINER_ELEMENTS-'.$child.'-->', $containers_outputs[$child], $containers_outputs[$id]);
    }        
    return $containers_outputs[$id];
  } else {
    return false;
  }  
}
JhonRu 12 Dec, 2012
Hi GreyHead,
The problem is solved. Setup has returned to its initial state (default), put your improved version.
One problem is solved, there was a second and third
=(
These errors appear when I send a message from the site to the post office. First writes an error and below-"message sent" messages come to the post office, but the truth is no name. = (

Notice: Undefined index: name in/,,/,,/,,/,,/administrator/components/com_chronoforms/form_actions/email/email.php on line 155



// ReplyTo Names
		$replytonames = array();
		if(trim($email_params->get('replytoname', ''))){
			$replytonames = explode(",", trim($email_params->get('replytoname', '')));
		}
		if(trim($email_params->get('dreplytoname', ''))){
			$dynamic_replytonames = explode(",", trim($email_params->get('dreplytoname', '')));
			foreach($dynamic_replytonames as $dynamic_replytoname){
155				if($form->data[trim($dynamic_replytoname)]){
					$replytonames[] = $form->data[trim($dynamic_replytoname)];
				}
			}
		}


Notice: Undefined offset: 0 in/,,/,,/,,/,,/libraries/joomla/mail/mail.php on line 442



if (is_array($replyTo))
		{
			$numReplyTo = count($replyTo);

			for ($i = 0; $i < $numReplyTo; $i++)
			{
/* 442 */				$this->addReplyTo(array($replyTo[$i], $replyToName[$i]));
			}
		}
		elseif (isset($replyTo))
		{
			$this->addReplyTo(array($replyTo, $replyToName));
		}

		return $this->Send();
	}
GreyHead 14 Dec, 2012
Hi JhonRu,

To repeat myself, the simple way to fix these is to change the site Error Reporting so that it doesn't show PHP notices. Quite what is causing this one I don't know, maybe a space in one of the Dynamic Email boxes?

Bob
JhonRu 14 Dec, 2012
If I disable the global site settings "error messages", then it would affect any other applications and dynamic engine joomla itself?
And that you mean a space in one of the Dynamic Email boxes?
GreyHead 14 Dec, 2012
Hi JhonRu ,

It would stop the display of PHP Warnings and Notices. These are not errors - just warnings and notices.

In general you should have them turned off on any production site - on a development site you might want them turned on.

Bob
JhonRu 18 Dec, 2012
Thanks for the great tips. I'll try all the same ID dig. As a last dance with a tambourine-remain in the most difficult moments but they helped me =)))
By the way, in the next version of chronoforms will fix this error? As in the previous version of this error havent ...
GreyHead 18 Dec, 2012
Hi JhonRu,

It will probably be fixed in a future version. This piece of code was changed to fix another problem with nested containers so the fix needed fixing a bit more.

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