Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RHEL4 Linux
Web server: Apache 2.0.52
Perl version: 5.8.5
Client OS: RHEL4 Linux
Web Browser: Firefox 2
Categories: Javascript

-- JohnDeStefano - 29 Jun 2007

Answer

ALERT! 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:

  • your page should have a form named rename
  • on the page should be a piece of script:
            var pageElem = null;
       addLoadEvent(setPageElem);
       function setPageElem() {
          pageElem = document.rename;
       }
    

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

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivezip TWikiJavascripts.zip r1 manage 19.1 K 2007-07-02 - 14:50 ArthurClemens Current javascripts for imminent TWiki 4.2
HTMLhtml html_head.html r1 manage 5.3 K 2007-07-02 - 13:44 JohnDeStefano contents of HTML header of generated "Delete attachment " page
HTMLhtml html_missing_opening_form_tag.html r1 manage 2.1 K 2007-07-09 - 14:15 JohnDeStefano  
Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2007-11-13 - JohnDeStefano
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.