By dihonore on
Hello,
with the following piece of code:
$vocabulary=taxonomy_vocabulary_machine_name_load('type_d_organisation');
$typeOrg = array();
if($vocabulary) $typeOrg = entity_load('taxonomy_term', FALSE, array('vid' => $vocabulary->vid));I have the following error:
Fatal error: Maximum function nesting level of '300' reached, aborting! in C:\wamp\www\includes\database\database.inc on line 2147
there are 3 terms in the vocabulary
I have increase the parameter:
xdebug.max_nesting_level
up to 1000
in the php.ini file as specified in many forums
But I have the same issue!!!
Any ideas???
Thanks
Didier
Comments
How about if you use
How about if you use
$vocabulary=taxonomy
message:
Warning : strlen() expects parameter 1 to be string, object given dans drupal_validate_utf8() (ligne 1594 dans C:\wamp\www\includes\bootstrap.inc).
Recoverable fatal error : Object of class stdClass could not be converted to string dans filter_xss() (ligne 1440 dans C:\wamp\www\includes\common.inc).
another idea???
What is the context of your
What is the context of your code, where does it exist? How is it called?
my hook menu: $items['ajout
my hook menu:
My function:
'#options' needs to be a key
'#options' needs to be a key value pair, taxonomy_get_tree returns a list of taxonomy terms, you need to use that list to make an array suitable for #options.
the right code:
the right code: