Not sure if anyone else is having this issue but sometimes when uploading an image, the tokens don't get added to the alt text field. It's not even on a per node basis. Some will have it, some won't. Not sure if it matters but I'm also using filefield paths to save the images into the path /files/[nid]

The actual tokens for the alt text: [field_knifemaker_noderef-title] [field_knife_model-formatted]

My setup:
ImageField Tokens: 6.x-1.0
CCK 6.x-2.6
FileField 6.x-3.2
ImageField 6.x-3.2
FileField Paths 6.x-1.3
Token 6.x-1.12
Drupal 6.14

Comments

Deciphered’s picture

Status: Active » Postponed (maintainer needs more info)

Hi kthull,

Unfortunately I haven't been able to replicate the issue, while I didn't use the exact same versions as you I did set it up in a very similar way, using a node reference for the source of the token.

When you say it doesn't always happen, I'm assuming that you are inputting different data each time? If possible, can you take note of the exact process and data inputted when the issue occurs, and possibly reproduce a failed input exactly to see if the issue is reproducible?

I know that might be a lot to ask, especially if this is occurring on a live site, but without further information I am unlikely to be able to determine where the issue lies and come up with a solution.

Cheers,
Deciphered.

kthull’s picture

Not sure if this is what you are looking for, but on a recent example, six images were uploaded during creation of a new node. Images 1-5 have a blank alt field, but the sixth and final image was tokenized prior to the node save. So after the node save, only the sixth image had the alt field filled out. But this is by no means the regular pattern. It seems random whether the tokens will be added to the alt field.

The site owner's browser is IE8. I know I've had issues with Safari (Mac) so won't use that anymore for adding nodes. Not sure if it's browser related or php memory related. I've jacked up to 512MB in testing with no change. In all cases, these nodes are of the same custom content type.

I've added help text for the site owner to manually copy and paste in the tokens if he sees that the alt field is empty, but it's probably not an ideal workaround.

Worst case, I've figured out how to do a mysql update for that data so I can periodically run updates. But figured I'd see if anyone else had issues.

Deciphered’s picture

Status: Postponed (maintainer needs more info) » Active

I just ran two quick tests, with the following settings (generalized to speed things up):
Content type with unlimited ImageField with ALT and TITLE with default values of '[title]' and custom text option checked.

In the first test I did the following:

  • Hit 'Add another item' a few times to bring up a few empty upload widgets
  • Attached (not uploaded) a file to each widget
  • Hit 'Add another item' again to force the files to upload at the same time
  • None of the files had values/tokens in the ALT or Title fields.
  • Hit 'Save'

While none of the files had values/tokens, they where all processed!

In the second test I did the following:

  • Uploaded a file.
  • File had '[title]' in ALT/Title fields
  • Uploaded another file
  • File had '[title]' in ALT/Title fields
  • Hit 'Save'

Files are processed!

Can you confirm the process you are following when adding the files and definitely confirm that while the fields are blank the default tokens aren't being processed?

Cheers,
Deciphered.

Deciphered’s picture

Status: Active » Postponed (maintainer needs more info)

Can't continue without further information.

13rac1’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)