How to reproduce this issue:
1. enable uploading multiple file attachments to a node
2. create your node and upload a single document
3. save your node
4. edit the same node
5. check your browser's Error console

Comments

NiklasBr’s picture

I can reproduce this. However this seems to be an issue in FireFox only. Safari, Opera, Chrome and IE8 all accepts str = str.replace(key, args[key]);

However, this error also clears the author field resulting in an unpublished node by the Anonymous user (user 0) if it is edited and saved.

Are you using jQuery update?

heine’s picture

Do you use translations? If so, it is likely a duplicate of #306715: _locale_rebuild_js doesn't store plural forms correctly.

dave reid’s picture

Status: Active » Closed (duplicate)

Yes it is.

NiklasBr’s picture

@Heine
The patch in your linked issue solves the issue.

candelas’s picture

it is not the fault of vertical tabs (thanks for the module)
i just found the problem:

the string :

@count attachments
; sites/all/modules/vertical_tabs/core/upload.js

has ";" and it shouldnt have it.
if you translate that string, everything goes nuts.
if you leave it blank, everything works.

where i should submit this?

candelas’s picture

Status: Closed (duplicate) » Active

sorry that i change for active from duplicate but i have to run to work (classes) and i need your advice on where to report (i have been one day searching and crazy because this bug).

heine’s picture

Status: Active » Closed (duplicate)

1. Please have the courtesy to read an issue before commenting on it.
2. You do not need to report this error, it is known.
3. There's a patch posted at #504506: Drupal.formatPlural incorrectly handle complex plural rules that may, or may not get into a future version of Drupal 6.

candelas’s picture

@Heine sorry :)
i close the issue and report in the link that you say.
yesterday i read the issue that you say and that helped to me to debug.
but until now i had not time to see how to fix the bug, just to stop it :)

and thanks for vertical tabs, it makes the site great and degrade gracefully without javascript.