Tuesday 29 August 2006 7:04:20 am
I've this code under in n/node/view/full.tpl overrides {section show=count($node.object.can_create_class_list)}
<center><form method="post" action={"/content/action"|ezurl}>
<input type="hidden" name="NodeID" value="{$node.node_id}" />
<select name="ClassID">
{section var=class loop=$node.object.can_create_class_list}
<option value="{$class.id}">{$class.name|wash}</option>
{/section}
</select>
<input type="submit" name="NewButton" value="{'Create here'|i18n('design/standard/node/view')}" />
</form></center>
<br />
{/section}
and i obtain this warnings in my debug : <i>Undefined index: classes in /var/www/html/projet7/kernel/classes/ezcontentobject.php on line 3638
Undefined index: language_codes in /var/www/html/projet7/kernel/classes/ezcontentobject.php on line 3639
Invalid argument supplied for foreach() in /var/www/html/projet7/kernel/classes/ezcontentobject.php on line 3647 array_diff(): Argument #1 is not an array in /var/www/html/projet7/kernel/classes/ezcontentobject.php on line 3658</i>
Does someone knows where these warnings come from?
I've predefined a role that will be limited to sections. i'me testing it. and i receive this warning.
the code comes from here: http://ez.no/products/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page thanks .
|