Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I remember correctly, there is a problem recursion in the token module and when there are many fields might the memory limit is exhausted.
We can see this problem in other modules exemple:
https://www.drupal.org/node/1391706#comment-7015126
The solution is change de code:
if (module_exists('token')) {
$form_settings['title_settings']['token_help'] = array(
'#theme' => 'token_tree',
'#token_types' => array('node'),
);
}
For
if (module_exists('token')) {
$form_settings['title_settings']['token_help'] = array(
'#theme' => 'token_tree',
'#token_types' => array('node'),
'#dialog' => TRUE,
);
}
Comment | File | Size | Author |
---|---|---|---|
#6 | imagefield_tokens-token_help_modal-2451253-6.patch | 732 bytes | ciss |
#3 | imagefield_tokens_path_token.patch | 607 bytes | gerson.analista |
Comments
Comment #1
gerson.analista CreditAttribution: gerson.analista commentedComment #2
gerson.analista CreditAttribution: gerson.analista commentedComment #3
gerson.analista CreditAttribution: gerson.analista commentedComment #4
maximpodorov CreditAttribution: maximpodorov commentedA must have!
Comment #5
maximpodorov CreditAttribution: maximpodorov commentedOh, testing is not turned on. RTBC then.
Comment #6
ciss CreditAttribution: ciss at yousign GmbH commentedAdding a git-compatible version of the patch.
Comment #7
ysamoylenko CreditAttribution: ysamoylenko at EPAM Systems commentedComment #9
ysamoylenko CreditAttribution: ysamoylenko at EPAM Systems commentedThe patch was committed. Thank you for your work.
Comment #10
ram4nd CreditAttribution: ram4nd as a volunteer commented