This question about Configuration: Task filed

JsonRpcContrib

Hi,

I'm having trouble with JsonRpcContrib and EditChapterPlugin and JHotDrawPlugin so I think it's reasonable to assume that there's

something wrong with my JsonRpcContrib setup. I have the perl module JSON installed ( 2.53 ) and I am using a clean installation

of foswiki 1.1.3. I get javascript errors when using EditChapterPlugin or JHotDrawPlugin which refer back to JsonRpcContrib.

Could someone tell me what I could check and change in my setup?

Thanks.

Neil


I can see errors about a missing JSONRPC.pm module which is called via an eval in the apache error.log . Should I see JSONRPC.pm somewhere in my

lib files ( eg Foswiki/Plugins/JQueryPlugin/JSONRPC.pm or is this caused by errors in my configuration?

Hi Neil,

Looks like you are missing a dependency, JSON from CPAN (but is a very popular module, which should be available as a normal package from your distribution, Eg. on Debian apt-get install libjson-perl).

This looks like a bug with JsonRpcContrib; it doesn't mention the JSON module in its DEPENDENCIES file.

Already a known bug, hopefully Michael will fix it & make a new release soon smile

Tasks.Item11250

You can always see a list of existing bugs against any plugin/contrib by visiting that extension's page in the Tasks web, Eg. Tasks.JsonRpcContrib

-- PaulHarvey - 26 Nov 2011

Neil, If you have the JSON module as you say, and you are seeing errors about JSONRPC.pm, then it is probably not related Tasks.Item11250, as that bug did not print any errors. These are the jsonrpc files I have on my setup:
  • bin/jsonrpc
  • data/System/JsonRpcContrib.txt
  • lib/Foswiki/Contrib/JsonRpcContrib
  • lib/Foswiki/Contrib/JsonRpcContrib.pm
  • pub/System/JsonRpcContrib
  • pub/System/JsonRpcContrib/jquery.jsonrpc.js
  • pub/System/JsonRpcContrib/jquery.jsonrpc.js.gz
  • pub/System/JsonRpcContrib/jquery.jsonrpc.uncompressed.js
  • working/configure/pkgdata/JsonRpcContrib_installer

-- JayenAshar - 27 Nov 2011

I installed JSON using

perl -MCPAN -e shell
> install JSON
> install JSON::Rpc

Is there any further config change that I need to make to Apache and/or to my Foswiki setup. I have all the js/js.gz files for JsonRpcContrib since they came with the extensions tgz.

I also notice that this problem arises with the 1.1.2 full install for windows: can't get EditChapterPlugin to work there either.

If someone could send a full list of their installed perl modules it would help me a lot in debugging this. Any related Apache config stuff would also be useful.

Thanks.

-- NeilMcKett - 01 Dec 2011
 

QuestionForm edit

Subject Configuration
Extension JsonRpcContrib
Version Foswiki 1.1.3
Status Task filed
Related Topics
Topic revision: r4 - 01 Dec 2011, NeilMcKett
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