From: #408088: Tokens not replaced in node output

Edited Title and ALT text doesn't parse the Node Tokens.

Comments

deciphered’s picture

Status: Active » Fixed

Issue was with a hook in FileField Paths.

Fixed in latest dev builds, requires both ImageField Tokens and FileField Paths to be updated.

k74’s picture

ok, works, but I have to edit and save the old node to get it right, appear two warning:

warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in /includes/module.inc on line 473.

but I always come out so it's another thing...

thanks

elly’s picture

Hi, this is happening to me too. Maybe I'm confused, but, if I have a node type that has imagefield fields in it, then I use [title] for the alt text default token, when I save the node, it should add the node title as the alt text, right? I've got the latest dev version of both filefield paths and this module, but it's not saving the node title as the alt, just doing alt="[title]".

witness: http://elly.org/foto/2009/on-bart

deciphered’s picture

Hi Elly,

Please make sure you have the very latest dev build of FileField Paths and the latest dev build of ImageField Tokens.

If you are sure you do, copy the latest versions over just in case.

You will have to edit and re-save the any nodes you've already created using Node tokens, and if all goes well everything should work for you :)

Let me know how you go.

Cheers,
Deciphered.

elly’s picture

Okay, just to be totally clear, by very most recent you mean, 6.x-1.x-dev of filefield_paths, and 6.x-1.x-dev of imagefield_tokens that's available right on the project page, or is there a more recent build to get from HEAD?

deciphered’s picture

Correct, the currently available dev builds should work correctly, but you need to make sure both modules are running their latest dev builds.

elly’s picture

Okay, I just disabled then uninstalled both modules, removed the old module directories just to be safe, redownloaded the currently available dev builds for imagefield_tokens and filefield_paths, installed them again, doublechecked the settings on my imagefield alt/title text defaults, and re-edited and saved the node in question. still no workie. What am I missing??

deciphered’s picture

Running some tests on my developmental server, will keep you updated.

elly’s picture

k. let me know if there is any more info i can give you! i am wondering if it's related to the fact that i am using this module: http://drupal.org/project/flickrsync to auto create the images in these nodes. But it just uses regular filefield/imagefield fields, so I'm not sure why it would matter.

deciphered’s picture

Elly,

I installed Flickr Sync, and while setting it up discovered it doesn't seem to be compatible with the latest version of ImageField, which would lead me to believe you are running an older version of ImageField?

I'm currently using ImageField 6.x-3.x-rc1 with FileField 6.x-3.x-rc1.
Can you tell me what versions you are using?

Cheers,
Deciphered.

elly’s picture

Let's see. I am running Filefield 6.x-3.0-alpha6 and Imagefield 6.x-3.0-alpha4, which actually seems weird, I don't remember if I needed to install these alpha versions to get Flickrsync working, but that may have been so. I haven't tried to upgrade either - but perhaps the incompatibility issue is one I should open over at the Flickrsync page, eh?

deciphered’s picture

It couldn't hurt to notify them that they don't work with the latest versions. Let me know URL of the issue and I'll leave a message as well.
In the mean time I will try to confirm that that is the only issue.

Edit: Found an issue - #409774: Error: The node type selected doesn't have any image fields...

elly’s picture

okay, I upgraded imagefield, and applied the patch to flickrsync that you posted in the other issue thread, and now my tokens work! THANKS SO MUCH! <3

elly’s picture

ps. this is mostly unrelated, but let me know if you have any tips on the best way to re-save the photo nodes in bulk. i basically need to go through all of the existing photos and edit/save them again to get the tokens to 'take.' if you know of any module that does this... maybe i can use devel's macro stuff? suggestions welcome. thanks again!

deciphered’s picture

Status: Fixed » Closed (fixed)

Elly,

The problem wasn't with ImageField Tokens, but with flickersync.
I have written another patch at #432214: ImageField defaults., it won't apply cleanly after the previous patch has been applied, but should still apply.

If there's any issues with it, please note them in that particular issue.

Cheers,
Deciphered.