I'm trying to get Mnet working, in ordre to allow users from MoodleB to connect and enroll courses on MoodleA, and vice versa. I followed the doc : http://docs.moodle.org/26/en/MNet
But it doesn't work. I get the following error, and am not able to seamlessly connect to MoodleB from MoodleA :
Mnet communication failed. XML Parse error in payload: Mismatched tag At line number: 109 Which reads:ERROR 3:
Error code: rpcerror
- line 463 of /lib/setuplib.php: moodle_exception thrown
- line 247 of /auth/mnet/auth.php: call to print_error()
- line 50 of /auth/mnet/land.php: call to auth_plugin_mnet->confirm_mnet_session()
I read this thread here, but the situation differs : https://moodle.org/mod/forum/discuss.php?d=257125
I run Moodle 2.6, on Ubuntu 14.04 with PHP 5.5.9, Apache 2.4.7 and MySQL 5.6.17. I use OpCache and MemCached. I operate many Moodle on a single server, all URLs are in the form http://$name.domain/moodle/ I configured MemCached to use differents keys. In config.php I have :
$CFG->session_memcached_prefix = $name.'.memc.sess.key.';
I tried to inactivate OpCache then MemCached : same error.
If someone here had ideas, I would be very grateful to him/her.
Thanks in advance, best regards,
I forgot to say that my Moodles are reverse-proxyfied. But the Apache acting as reverse proxy is configured with ProxyPreserveHost On, so HTTP request are passed to real Moodle (which lay in a private zone) with the Http-Host header kept unchanged. On backend Apache, I had to add ServeAlias to my VirtualHosts :
It works like a charm, with
$CFG->reverseproxy = false;
I also checked that each Mnet certificate have the right informations in it. It's OK, the issuer and subject fields contains entries like CN=http://$name.domain/moodle.
I'm really stuck...
I'm facing the same problem. It seems our configurations are close... I'm sorry to be unable to give an answer. Any help would be very much appreciated.