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

thePanz’s picture

Further 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

Deciphered’s picture

Priority: Critical » Minor
Status: Active » Fixed

Sounds 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.

thePanz’s picture

I'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

Deciphered’s picture

Priority: Minor » Normal
Status: Fixed » Active

Hi 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.

Deciphered’s picture

Status: Active » Fixed

Fixed 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.