Question
When deleting an attachment from a topic (Show attachments -> manage -> click "Delete" link -> click "Delete" button), or moving an attachment in a similar manner, nothing happens. I see
JavaScript errors in the browser:
twiki.js, line 387: inKeyValues has no properties: var i = inKeyValues.length;
[Topic Name], line 1: document.rename has no properties: onchange(change)
In a fit of desperation, I upgraded
TwistyContrib,
TwistyPlugin, and
BehaviourContrib all to the latest versions, but now I get this:
twist.compressed.js, line 1: twiki.CSS has no properties
Environment
--
JohnDeStefano - 29 Jun 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Plugin update management is not so straightforward at times. Could you attach the contents of the head of the generated html here? I need to see what scripts you are missing.
--
ArthurClemens - 29 Jun 2007
Sure thing: please see attached HTML
--
JohnDeStefano - 02 Jul 2007
It looks like you don't have
TWiki/TWikiJavascripts/twikiCSS.js in your pub folder. I have attached the current js files here. This would fix the current problem, but not the orginal one in the 'delete attachment' template.
It might be wiser to revert TwistyContrib and TwistyPlugin and to tackle the original bug. The js error says "document.rename has no properties". But there should be a form on the page with the name
rename. Could you confirm this?
--
ArthurClemens - 02 Jul 2007
I don't think I can revert: I overwrote the existing plugins when I installed the latest versions. If you happen to have an archive, and if you think it worthwhile to troubleshoot the original errors instead, I'd be glad to install an older version and work with that.
--
JohnDeStefano - 03 Jul 2007
Ok. In that case copy the attached javascripts to your pub folder. Could you have another look at the move attachment screen then?
--
ArthurClemens - 03 Jul 2007
Copied them to the pub folder, and now on the Delete page I get:
pageElem has no properties [url]/twiki/pub/TWiki/TWikiJavascripts/twiki_renamebase.js Line 7
--
JohnDeStefano - 05 Jul 2007
John, two things to check:
Could you see if both are true?
--
ArthurClemens - 06 Jul 2007
Interesting: the only
form tag seems to be a closing one... I've added an attachment with everything from the
body tag to that tag (including it directly seems to screw things up on this page pretty badly).
The script does appear in the
head as
CDATA; also included that in the attachment (it disappears when I include it here).
--
JohnDeStefano - 09 Jul 2007
Sorry, closing this after more than 30 days of inactivity...
--
PeterThoeny - 02 Sep 2007
Still need help with this. In addition, the same errors occur when renaming a topic.
--
JohnDeStefano - 25 Sep 2007
Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.
--
PeterThoeny - 01 Nov 2007
Again, still need help here.
--
JohnDeStefano - 02 Nov 2007
After upgrading everything to the latest versions (TWiki, plugins, contribs), this error seems to have disappeared. But it would be nice to know what was causing this.
--
JohnDeStefano - 13 Nov 2007