Installation

Moodle-WeBWorK integration: wwassignment and wwlink installation problems

Moodle-WeBWorK integration: wwassignment and wwlink installation problems

by Jacek Polewczak -
Number of replies: 4
Hi All,

I have installed the latest version of WeBWorK using ww_install from
https://github.com/openwebwork on my Centos 7 server and I don't seem to have problems running it.

I have also installed the latest version of Moodle (2.8.5+ Build: 20150414) on the same server and don't seem to have problems running it.

I installed moodle webwork assignment activity module wwassignment6_ver2.8+ and wwlink6_ver2.8+ from

https://github.com/openwebwork

When I try to configure WeBWorK Link block i get

Exception - Internal Server Error

and Apache error_log file shows:

[perl:error] [pid 9778] [client 130.166.38.150:54312] Illegal field name 'APR::Table=HASH(0x7f8153848ea8)' at /usr/share/perl5/vendor_perl/SOAP/Transport/HTTP2.pm line 103.\n

By the way, If I configure WeBWorK Problem Set activities in my Moodle to
http://hosted2.webwork.rochester.edu site everything seems to be fine.

I'd appreciate any suggestions. What am I doing wrong?

I've been running successfully WeBWorK 2.4.9+ integrated with Moodle 1.9.10+ (Build: 20110105) in the Math Dept at CSU, Northridge since 2011 and I wanted to upgrade both Moodle and WeBWorK
.

Thank you,
Jacek Polewczak

In reply to Jacek Polewczak

Re: Moodle-WeBWorK integration: wwassignment and wwlink installation problems

by Michael Gage -
Just a quick question.  Does your entry in webwork.apache2.4-config look like this?

 # WEBWORK SOAP CONFIGURATION
 <Location /webwork2_rpc>
         PerlHandler Apache::SOAP
         SetHandler perl-script
         PerlSetVar dispatch_to "WebworkSOAP"
         PerlSetVar options "compress_threshold => 10000"
         Require all granted
 </Location>

If you have Apache::SOAP2 instead, try replacing it with Apache::SOAP, see what happens and report back.  

I'll look into this in more detail after class.  We've seen the problem before -- you can search these forums for HTTP2 to get some idea.  It's an error that occurs for some versions of SOAP.
--Mike
In reply to Michael Gage

Re: Moodle-WeBWorK integration: wwassignment and wwlink installation problems

by Michael Gage -
Here is more information.

http://www.perlmonks.org/?node_id=1022902

Notice that these comments are from two years ago and it was necessary to hack a fix to the  file HTTP2.pm (see the end of the comments at the link above).

I _believe_ that things have changed since then and the long term fix is to move back to Apache::SOAP -- (at least that is what I have set up on my machine)-- Apache2::SOAP which included the HTTP2.pm file was a temporary fix -- and the error in line 103 has not been corrected because HTTP2 isn't currently being used.  The corresponding line in HTTP.pm is correct.  

Let us know what you find out about the current situation.
In reply to Michael Gage

Re: Moodle-WeBWorK integration: wwassignment and wwlink installation problems

by Jacek Polewczak -
Hi Mike,

Thank you for your quick answer!

yes, webwork.apache2.4-config file had indeed this entry:

PerlHandler Apache2::SOAP

It came from webwork.apache2.4-config.dist file and was created automatically by ww_install script. I've checked that WeBWorK-2.10 and 2.9 releases also have these entries in webwork.apache2.4-config.dist files there.

After changing to

PerlHandler Apache::SOAP

things look good. What a relief. I've just started Moodle-WeBWorK integration on the new server and was looking for a good start here.

Also INSTALL_and_CONFIGURE.md files in wwassignment and wwlink
releases from

https://github.com/openwebwork

provide misleading instructions:

#INSTALL and CONFIGURE

###Installation

Iinstallation of the moodle modules is very quick:

Quick install **wwlink**:

1. cd moodle/blocks
2. git clone https://github.com/openwebwork/wwassignment.git

Quick install **wwassignment**:

1. cd moodle/mod
2. git clone https://github.com/openwebwork/wwlink.git
--------------------------------snip-------------------------------------

Both items 2. up there should be interchanged.

Thanks again,
Jacek

In reply to Jacek Polewczak

Re: Moodle-WeBWorK integration: wwassignment and wwlink installation problems

by Michael Gage -
Thanks, Jacek.  I've changed the items in the INSTALL and CONFIGURE instructions and alerted those who maintain the ww_install script.

Good luck with the WeBWorK-Moodle integration and let us know about any issues we should make others aware of.

-- Mike