Amit,
While the messages can be switched off in CI, it does not in fact indicate that there is not a problem with GC. That warning means something is wrong in the code somewhere, and it could have issues in the crud, so I believe this post is not yet answered.
Any other ideas on what can cause this? I am getting the same error.
Line 2344 - 2348 are as follows:
protected function get_readonly_input($field_info,$value)
{
return '<div id="field-'.$field_info->name.'" class="readonly_label">'.$value.'</div>';
}
The problem is related to relation-n-n tables in the content. I have, for example, blocks, and you can have many blocks on a page, but a specific block can be used on many pages, so it is an m:n relationship.
Changing the code to this:
protected function get_readonly_input($field_info,$value)
{
if (isset($value) && !is_array($value))
{
return '<div id="field-'.$field_info->name.'" class="readonly_label">'.$value.'</div>';
}
reset($value);
$key = key($value);
if (isset($value[$key]))
{
return '<div id="field-'.$field_info->name.'" class="readonly_label">'.$value[$key].'</div>';
}
return;
}
Solves the problem effectively, although most likely not optimally. I will submit the patch via Github shortly.
Regards,
Kobus