Forums | Mahara Community
Support
/
Moodle 2.3 and Mahara 1.7 SSO Problem
25 May 2013, 17:09
Hi,
I have been trying now for hours to get the SSO to work between our moodle site and mahara. Both are hosted on the same server within the same domain all at united hosting.
For the first few hours I got the error about the site being unavailable but since reading posts here and on moodle.org and making some changes I now get the error.
Unable to sign in via SSO.
We were unable to authenticate you at this time. Possible reasons might be:
* Your SSO session might have expired. Go back to the other application and click the link to sign into Mahara again.
* You may not be allowed to SSO to Mahara. Please check with your administrator if you think you should be allowed to.
I have followed all the guides to link the sites and I have reset the keys several times but nothing seems to work... HELP!
Many thanks
Matt
26 May 2013, 21:54
Hello Matthew,
Sorry you can't SSO easily from your Moodle to Mahara. Reading the forums on Mahara.org you certainly have noticed you are not the only who had got trouble in setting up this by the past.
But, as usual, it is very difficult to help you if the readers of this forum have no information about what is happening with your Mahoodle installation.
So, please provide more information about the version of Moodle you use and the documentation you have followed. And moreover provide the Apache and PHP error logs to know what happens when you try to SSO from Moodle. Without these it is difficult to give direction to investigate.
Regards,
-dajan
29 May 2013, 7:34
Hi Dajan,
Thanks for your reply, our moodle version is 2.2.3 and I followed the documentation from mahara wiki site.
here is the error log from public_html/mahara/auth/xmlrpc
[28-May-2013 17:55:08 Europe/London] [WAR] 0a (api/xmlrpc/client.php:125) Undefined variable: payload
[28-May-2013 17:55:08 Europe/London] Call stack (most recent first):
[28-May-2013 17:55:08 Europe/London] * log_message("Undefined variable: payload", 8, true, true, "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125) at /home/moodle2p/public_html/mahara/lib/errors.php:446
[28-May-2013 17:55:08 Europe/London] * error(8, "Undefined variable: payload", "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125, array(size 12)) at /home/moodle2p/public_html/mahara/api/xmlrpc/client.php:125
[28-May-2013 17:55:08 Europe/London] * Client->send("http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/lib.php:119
[28-May-2013 17:55:08 Europe/London] * AuthXmlrpc->request_user_authorise("3bce3f425b91dae8918a9d87e0ebaaf38bbcf2c5", "http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/land.php:94
[28-May-2013 17:55:08 Europe/London]
[28-May-2013 18:36:46 Europe/London] [WAR] fa (api/xmlrpc/client.php:125) Undefined variable: payload
[28-May-2013 18:36:46 Europe/London] Call stack (most recent first):
[28-May-2013 18:36:46 Europe/London] * log_message("Undefined variable: payload", 8, true, true, "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125) at /home/moodle2p/public_html/mahara/lib/errors.php:446
[28-May-2013 18:36:46 Europe/London] * error(8, "Undefined variable: payload", "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125, array(size 12)) at /home/moodle2p/public_html/mahara/api/xmlrpc/client.php:125
[28-May-2013 18:36:46 Europe/London] * Client->send("http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/lib.php:119
[28-May-2013 18:36:46 Europe/London] * AuthXmlrpc->request_user_authorise("f34fc74ff0e7fe25f95c1153077097ae58ebff77", "http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/land.php:94
[28-May-2013 18:36:46 Europe/London]
[28-May-2013 19:10:17 Europe/London] [WAR] c0 (api/xmlrpc/client.php:125) Undefined variable: payload
[28-May-2013 19:10:17 Europe/London] Call stack (most recent first):
[28-May-2013 19:10:17 Europe/London] * log_message("Undefined variable: payload", 8, true, true, "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125) at /home/moodle2p/public_html/mahara/lib/errors.php:446
[28-May-2013 19:10:17 Europe/London] * error(8, "Undefined variable: payload", "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125, array(size 12)) at /home/moodle2p/public_html/mahara/api/xmlrpc/client.php:125
[28-May-2013 19:10:17 Europe/London] * Client->send("http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/lib.php:119
[28-May-2013 19:10:17 Europe/London] * AuthXmlrpc->request_user_authorise("428b0872a7e4dce5546a5b1b35781951d3a397de", "http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/land.php:94
[28-May-2013 19:10:17 Europe/London]
[28-May-2013 19:18:20 Europe/London] [WAR] 08 (api/xmlrpc/client.php:125) Undefined variable: payload
[28-May-2013 19:18:20 Europe/London] Call stack (most recent first):
[28-May-2013 19:18:20 Europe/London] * log_message("Undefined variable: payload", 8, true, true, "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125) at /home/moodle2p/public_html/mahara/lib/errors.php:446
[28-May-2013 19:18:20 Europe/London] * error(8, "Undefined variable: payload", "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125, array(size 12)) at /home/moodle2p/public_html/mahara/api/xmlrpc/client.php:125
[28-May-2013 19:18:20 Europe/London] * Client->send("http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/lib.php:119
[28-May-2013 19:18:20 Europe/London] * AuthXmlrpc->request_user_authorise("113c147fb29c6df3dffff460668512fa8a61d09a", "http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/land.php:94
[28-May-2013 19:18:20 Europe/London]
[28-May-2013 19:21:03 Europe/London] [WAR] d9 (api/xmlrpc/client.php:125) Undefined variable: payload
[28-May-2013 19:21:03 Europe/London] Call stack (most recent first):
[28-May-2013 19:21:03 Europe/London] * log_message("Undefined variable: payload", 8, true, true, "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125) at /home/moodle2p/public_html/mahara/lib/errors.php:446
[28-May-2013 19:21:03 Europe/London] * error(8, "Undefined variable: payload", "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125, array(size 12)) at /home/moodle2p/public_html/mahara/api/xmlrpc/client.php:125
[28-May-2013 19:21:03 Europe/London] * Client->send("http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/lib.php:119
[28-May-2013 19:21:03 Europe/London] * AuthXmlrpc->request_user_authorise("bef931921de759786932de0a56add1d271c168db", "http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/land.php:94
[28-May-2013 19:21:03 Europe/London]
[28-May-2013 19:50:55 Europe/London] [WAR] b0 (api/xmlrpc/client.php:125) Undefined variable: payload
[28-May-2013 19:50:55 Europe/London] Call stack (most recent first):
[28-May-2013 19:50:55 Europe/London] * log_message("Undefined variable: payload", 8, true, true, "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125) at /home/moodle2p/public_html/mahara/lib/errors.php:446
[28-May-2013 19:50:55 Europe/London] * error(8, "Undefined variable: payload", "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125, array(size 12)) at /home/moodle2p/public_html/mahara/api/xmlrpc/client.php:125
[28-May-2013 19:50:55 Europe/London] * Client->send("http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/lib.php:119
[28-May-2013 19:50:55 Europe/London] * AuthXmlrpc->request_user_authorise("bef931921de759786932de0a56add1d271c168db", "http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/land.php:94
[28-May-2013 19:50:55 Europe/London]
[28-May-2013 19:51:07 Europe/London] [WAR] e6 (api/xmlrpc/client.php:125) Undefined variable: payload
[28-May-2013 19:51:07 Europe/London] Call stack (most recent first):
[28-May-2013 19:51:07 Europe/London] * log_message("Undefined variable: payload", 8, true, true, "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125) at /home/moodle2p/public_html/mahara/lib/errors.php:446
[28-May-2013 19:51:07 Europe/London] * error(8, "Undefined variable: payload", "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125, array(size 12)) at /home/moodle2p/public_html/mahara/api/xmlrpc/client.php:125
[28-May-2013 19:51:07 Europe/London] * Client->send("http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/lib.php:119
[28-May-2013 19:51:07 Europe/London] * AuthXmlrpc->request_user_authorise("55cb3a01d1b035ec047a7aee37ccdd3963701084", "http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/land.php:94
[28-May-2013 19:51:07 Europe/London]
[28-May-2013 20:00:18 Europe/London] [WAR] cb (api/xmlrpc/client.php:125) Undefined variable: payload
[28-May-2013 20:00:18 Europe/London] Call stack (most recent first):
[28-May-2013 20:00:18 Europe/London] * log_message("Undefined variable: payload", 8, true, true, "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125) at /home/moodle2p/public_html/mahara/lib/errors.php:446
[28-May-2013 20:00:18 Europe/London] * error(8, "Undefined variable: payload", "/home/moodle2p/public_html/mahara/api/xmlrpc/clien...", 125, array(size 12)) at /home/moodle2p/public_html/mahara/api/xmlrpc/client.php:125
[28-May-2013 20:00:18 Europe/London] * Client->send("http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/lib.php:119
[28-May-2013 20:00:18 Europe/London] * AuthXmlrpc->request_user_authorise("3bb33a057c7339d4ab005929a55d8414e2227733", "http://moodle2prep.headington.org") at /home/moodle2p/public_html/mahara/auth/xmlrpc/land.php:94
[28-May-2013 20:00:18 Europe/London]
PHP error log is
[24-May-2013 09:36:01 UTC] [WAR] aa (lib/mahara.php:59) Your server configuration references an unknown database type. Valid values are "postgres8" and "mysql5". Please change the database type setting in config.php. [24-May-2013 09:36:01 UTC] Call stack (most recent first): [24-May-2013 09:36:01 UTC] * ensure_sanity() at /home/moodle2p/public_html/mahara/init.php:90 [24-May-2013 09:36:01 UTC] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 09:36:01 UTC] [24-May-2013 09:36:24 UTC] [WAR] a5 (lib/mahara.php:84) Your server configuration of the gd extension does not include Freetype support. Please make sure that gd is configured with it. [24-May-2013 09:36:24 UTC] Call stack (most recent first): [24-May-2013 09:36:24 UTC] * ensure_sanity() at /home/moodle2p/public_html/mahara/init.php:90 [24-May-2013 09:36:24 UTC] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 09:36:24 UTC] [24-May-2013 09:39:38 UTC] [WAR] 99 (lib/mahara.php:84) Your server configuration of the gd extension does not include Freetype support. Please make sure that gd is configured with it. [24-May-2013 09:39:38 UTC] Call stack (most recent first): [24-May-2013 09:39:38 UTC] * ensure_sanity() at /home/moodle2p/public_html/mahara/init.php:90 [24-May-2013 09:39:38 UTC] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 09:39:38 UTC] [24-May-2013 09:41:02 UTC] PHP Warning: require(/home/moodle2p/init.php): failed to open stream: No such file or directory in /home/moodle2p/public_html/mahara/install.php on line 31 [24-May-2013 09:41:02 UTC] PHP Fatal error: require(): Failed opening required '/home/moodle2p/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moodle2p/public_html/mahara/install.php on line 31 [24-May-2013 09:41:08 UTC] [WAR] 83 (lib/mahara.php:84) Your server configuration of the gd extension does not include Freetype support. Please make sure that gd is configured with it. [24-May-2013 09:41:08 UTC] Call stack (most recent first): [24-May-2013 09:41:08 UTC] * ensure_sanity() at /home/moodle2p/public_html/mahara/init.php:90 [24-May-2013 09:41:08 UTC] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 09:41:08 UTC] [24-May-2013 09:41:13 UTC] [WAR] 7f (lib/mahara.php:84) Your server configuration of the gd extension does not include Freetype support. Please make sure that gd is configured with it. [24-May-2013 09:41:13 UTC] Call stack (most recent first): [24-May-2013 09:41:13 UTC] * ensure_sanity() at /home/moodle2p/public_html/mahara/init.php:90 [24-May-2013 09:41:13 UTC] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 09:41:13 UTC] [24-May-2013 13:56:10 UTC] [WAR] fb (lib/mahara.php:84) Your server configuration of the gd extension does not include Freetype support. Please make sure that gd is configured with it. [24-May-2013 13:56:10 UTC] Call stack (most recent first): [24-May-2013 13:56:10 UTC] * ensure_sanity() at /home/moodle2p/public_html/mahara/init.php:90 [24-May-2013 13:56:10 UTC] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 13:56:10 UTC] [24-May-2013 15:30:38 Europe/London] [WAR] 89 (lib/mahara.php:156) Your defined data root directory, /path/to/uploaddir/, is not writable. This means that neither session data, user files nor anything else that needs to be uploaded can be saved on your server. Please make the directory if it does not exist or give ownership of the directory to the web server user if it does. [24-May-2013 15:30:38 Europe/London] Call stack (most recent first): [24-May-2013 15:30:38 Europe/London] * ensure_sanity() at /home/moodle2p/public_html/mahara/init.php:90 [24-May-2013 15:30:38 Europe/London] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 15:30:38 Europe/London] [24-May-2013 15:32:35 Europe/London] [ENV] f3 Not installed! Please create config.php from config-dist.php [24-May-2013 15:32:35 Europe/London] Call stack (most recent first): [24-May-2013 15:32:35 Europe/London] * log_message("Not installed! Please create config.php from confi...", 1, true, true) at /home/moodle2p/public_html/mahara/lib/errors.php:121 [24-May-2013 15:32:35 Europe/London] * log_environ("Not installed! Please create config.php from confi...") at /home/moodle2p/public_html/mahara/init.php:58 [24-May-2013 15:32:35 Europe/London] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 15:32:35 Europe/London] [24-May-2013 15:35:42 Europe/London] [WAR] d8 (lib/mahara.php:181) You are not using a UTF-8 database. Mahara stores all data as UTF-8 internally. Please drop and re-create your database using UTF-8 encoding. [24-May-2013 15:35:42 Europe/London] Call stack (most recent first): [24-May-2013 15:35:42 Europe/London] * ensure_install_sanity() at /home/moodle2p/public_html/mahara/init.php:346 [24-May-2013 15:35:42 Europe/London] * require("/home/moodle2p/public_html/mahara/init.php") at /home/moodle2p/public_html/mahara/index.php:32 [24-May-2013 15:35:42 Europe/London] [24-May-2013 15:40:03 Europe/London] PHP Parse error: syntax error, unexpected $end in /home/moodle2p/public_html/mahara/config.php on line 105
Many Thanks
Matt
09 June 2013, 16:50
Hello Matthew,
Reading through the error log, there are a few things that you don't seem to have on your server or set up correctly.
- Do you have set up the config.php file for Mahara? It seems to be missing.
- You are also missing the gd extension on your server, but I don't think that this would impact Mahoodle greatly.
- Your Mahara database is not UTF-8.
- You seem to be missing another file: "PHP Warning: require(/home/moodle2p/init.php): failed to open stream: No such file or directory in /home/moodle2p/public_html/mahara/install.php on line 31"
Can you please check into solving the errors first and then try the setup of MNet again? Maybe a fresh install - if you haven't already used your Mahara site - might be best and set it up with the correct DB and set up the config file before you attempt to connect it to Moodle?
All the best.
Cheers
Kristina
A post by Account deleted was deleted
A post by Account deleted was deleted