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.
I got a warning
warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in [...]\drupal6\includes\module.inc on line 473.
If I edit a node with an Imagefield and ImageField_tokens enabled: in my node the ImageField is empty and no edit is done in that field.
I try to exclude the function "imagefield_tokens_filefield_paths_process_file" (putting a return in the first line) and the warning disappears.
Any idea?
Comments
Comment #1
thePanz CreditAttribution: thePanz commentedFurther more: I edited the function's code and comment out the token_replace() for 'field' argument, and it's working without errors (yes, I know... 'field' tokens won't be used)
Regards
Comment #2
Deciphered CreditAttribution: Deciphered commentedSounds like this issue: #311526: Recursion error in filefield_paths.
Get the latest FileField Paths dev build and you should be fine.
Issue is minor as it only shows a warning, doesn't break any functionality.
Cheers,
Deciphered.
Comment #3
thePanz CreditAttribution: thePanz commentedI'm using latest -dev release of both modules (HEAD for the first, and DRUPAL-6--1 for the second one).
I'll do further investigations..
Regards
Comment #4
Deciphered CreditAttribution: Deciphered commentedHi thePanz,
While I haven't reproduced this issue, I recant my previous comment, that particular fix would not have fixed this issue directly, something still needs to be changed in ImageField Tokens for that previous fix to fix this issue.
A fix will be committed shortly.
Cheers,
Deciphered.
Comment #5
Deciphered CreditAttribution: Deciphered commentedFixed and committed to HEAD and DRUPAL-5.
You will need to update FileField Paths to the latest dev build as well.
Both FileField Paths and ImageField Tokens development builds should be available in the next few hours.
Cheers,
Deciphered.