This question about Installation of Foswiki: Answered

requires= missing ids: JQUERYPLUGIN


I installed Foswki 1.1.2 and everything looks good so far, except some problems with JavaScript.

I get the following errors in the HTML pages sent from the server:
<!--JQUERYPLUGIN::TWISTY: requires= missing ids: JQUERYPLUGIN::FOSWIKI, JQUERYPLUGIN::LIVEQUERY, JavascriptFiles/foswikiPref-->

Firefox shows "foswiki is not defined" in the Javascript error console, so the TinyMCE editor and Twisties are not working for me.

The JQueryPlugin is enabled in LocalSite.cfg of course and the plugin diagnostics show no error for it.

Unfortunately I can't figure out how to set these missing ids, so I'd appreciate any help or hints where to look at.

Thank you

-- AxelHaar - 20 Nov 2010

The missing ids as well as the js error say that some of the core modules aren't loaded into the html head, i.e. jquery.foswiki, jquery.livequery and foswikiPref.

So how did you set up this foswiki? Did you upgrade or did you install from scratch? Did you run configure at least once?

-- MichaelDaum - 21 Nov 2010

Thank you for looking into this.

I installed 1.1.1 from scratch, then upgraded manually to 1.1.2 by copying the upgraded files to the server (since I only have chrooted access and can't run the upgrade script). But the problem was there at 1.1.1 too, so I don't think it has something to do with the upgrade.
Configure works fine ... it gives me some errors that the directories in /data have to be rwxr-xr-x (755) instead of 700 (as I set it up), but I'm on a shared hosting environment and I don't want other server accounts to be able ro read /data. I don't think this matters though, the perl user of the server can read and write /data and the "missing" core modules are in /lib anyway.

I think it has something to do with my directory structure, because I didn't set up all subdirectories in the same location. This is my setup:
/bin --> /var/www/vhosts/path/on/server/cgi-bin
/pub --> /var/www/vhosts/path/on/server/httpdocs/pub/
everything else (data, lib, templates, working...) --> /var/www/vhosts/path/on/server/subdir_not_accessible_from_web/

The configure script shows this for @INC library path:


This looks all fine to me.

-- AxelHaar - 21 Nov 2010

(1) Try to upgrade to the latest TwistyPlugin as well as JQueryPlugin even though you have 1.1.2 installed (via configure).

(2) Have a look at the file LocalSite.cfg and see if the following settings are included:

$Foswiki::cfg{JQueryPlugin}{Plugins}{Foswiki}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{LiveQuery}{Enabled} = 1;

(3) Check the HTML sources that Foswiki gives you: does it list both jquery-1.3.2.js and jquery.livequery.js before loading jquery.twisty.js?

If this is all the case, then check if the link to the mentioned js libraries actually returns them, ie. does not produce a 404 file not found.

-- MichaelDaum - 22 Nov 2010

@ (1): I couldn't today, but I will try tomorrow. I just did a quick file compare and the files on my server are completely identical with the ones that can be downloaded from

@ (2): Yes, both settings are enabled in LocalSite.cfg

@(3): It lists jquery-1.3.2.js and jquery.twisty.js, but it doesn't list query.livequery.js. I guess that's what the error message: "requires missing ids: JQUERYPLUGIN::LIVEQUERY" means :-)
Here's my relevant HTML source on the TwistyPlugin page (after the style definitions in the <head>-Tag:
<script type="text/javascript" src="/pub/System/JavascriptFiles/foswikiPref.js"></script><!--JavascriptFiles/foswikiPref: requires= missing ids: JQUERYPLUGIN::FOSWIKI-->
<script type="text/javascript" src="/pub/System/JavascriptFiles/foswikiString.js"></script><!--JavascriptFiles/foswikiString: requires= missing ids: JQUERYPLUGIN::FOSWIKI-->
<script type="text/javascript" src="/pub/System/JavascriptFiles/foswikiForm.js"></script><!--JavascriptFiles/foswikiForm: requires= missing ids: JQUERYPLUGIN::FOSWIKI-->
<script type='text/javascript' src='/pub/System/JQueryPlugin/jquery-1.3.2.js'></script><!--JQUERYPLUGIN-->
<script type="text/javascript" src="/pub/System/PatternSkin/pattern.js"></script><!--PatternSkin/pattern: requires= missing ids: JQUERYPLUGIN::FOSWIKI-->
<script type='text/javascript' src='/pub/System/TwistyPlugin/jquery.twisty.js?version=1.6.0'></script><!--JQUERYPLUGIN::TWISTY: requires= missing ids: JQUERYPLUGIN::FOSWIKI, JQUERYPLUGIN::LIVEQUERY-->
The script files are loaded (no 404 message).

-- AxelHaar - 23 Nov 2010

I finally found the error (and a pretty stupid one too ... strange that I didn't discover it earlier):

When I installed the site, I copied /lib/Foswiki.spec to create /lib/LocalSite.cfg

(I know it says to NOT copy it, but configure somehow did not run until I created localsite.cfg manually)

At the end of foswiki.spec are the following lines:

# Copyright (C) 2008-2009 Foswiki Contributors. Foswiki Contributors
# are listed in the AUTHORS file in the root of this distribution.
# NOTE: Please extend that file, not this notice.
# Additional copyrights apply to some or all of the code in this module
# as follows:
# Copyright (C) 1999-2007 Peter Thoeny, and
# TWiki Contributors.# All Rights Reserved.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. For
# more details read LICENSE in the root of this distribution.
# As per the GPL, removal of this notice is prohibited.

When saving configure then for the first time, the new lines created by the configure-script (mainly JQueryPlugin-settings) were added at the end of my localsite.cfg, i.e. AFTER the above lines.

Somehow the configure script has no problems accessing the lines in the config file after 1; _END_ , but it looks like the view and edit scripts stop there ... so the JQueryPlugin settings were shown correct by the configure script but were not enabled when browsing the wiki. After removing the above lines, JQueryPlugin works fine now and I have no more "missing ids".

-- AxelHaar - 27 Nov 2010

QuestionForm edit

Subject Installation of Foswiki
Extension JQueryPlugin
Version Foswiki 1.1.2
Status Answered
Topic revision: r6 - 27 Nov 2010, AxelHaar - This page was cached on 22 Jun 2019 - 04:04.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy