Started: 7/22/2009 9:50 AM
Need Help
We have just migrated all of our campus email to Outlook Live. Now every student will have a windows Live ID, SkyDrive, etc.
I want to be able to use this module in Moodle.
I have installed the Mod, registered our site but when I click on the sign in button on the login screen I get a blank screen, Why?
Van
Posted: 7/22/2009 6:00 PM
A blank screen is usually some kind of fatal php error.
In most production web servers, php is configured to only log errors instead of displaying them.
http://us3.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
If your using apache as your webserver, check the apache error log for a php error message.
Posted: 7/23/2009 7:21 AM
This is the error that is logged...
192.168.1.3 - - [23/Jul/2009:09:19:51 -0500] "GET /auth/liveid/login.php HTTP/1.1" 500 -
Posted: 7/23/2009 2:29 PM
Check to see if you have entered the AppId and Secret Key in the Microsoft Live Services configuration page. The live services configuration page can be accessed by logging in as the moodle administrator and then clicking on Modules->Blocks->Microsoft Live Services
Posted: 7/23/2009 3:59 PM
The blank login screen problem is caused by not having mhash installed / enabled. To fix the problem you will need to enable mhash. Here are the steps from the Getting Started document:
If you’re running Windows:
1. Open your php.ini file.
Tip: This text file is often in your "\apache\bin\" folder.
2. Uncomment the following lines by removing the leading semicolon(;) if there is one:
extension=php_mhash.dll
extension=php_mcrypt.dll
extension=php_soap.dll
If you’re running Linux:
1. Install mhash.
2. Install mcrypt.
3. Install soap.
4. Restart Apache for the changes to take effect.
Posted: 7/24/2009 9:47 AM
This is done, if it were not you get an error message about not having the ID setup.
Posted: 7/27/2009 11:58 AM
I am on a LAMP system.
I had installed the MHash, MCrypt and Soap. I checked PHPInfo Hash shows to be enables, mcrypt is enabled, and soap client and Soap server are both enabled.
Any more suggestions?
Posted: 7/27/2009 9:16 PM
Hi there,
Would you please try to see what Moodle itself is reporting in debug mode? That would illustrate if, for example, mhash is not properly installed or if something else is going wrong.
To achieve this, please follow these steps (on Moodle 1.9.x, but I imagine it's the same in other versions):
1. On your Moodle, log in as admin
2. On the left hand side, select Server --> Debugging
3. In the drop down list, choose "developer mode"
4. Log out as admin, and repeat the login steps you tried below, using your
Live@Edu account, to reproduce the error
5. Log back out, and back in as admin, and go back to the Debugging page, and examine the output. Please report back on what you see there (example, do you see an failed call to mhash).
Hope this helps.
Thanks.
Posted: 7/31/2009 7:20 AM
here is the error:
Fatal error : Call to undefined function mhash() in /var/www/html/moodle/auth/liveid/windowslivelogin.php on line 1547
As I said, I have hash installed and it shows up in PHPInfo...
below is the PHPInfo output for the sections Hash, mcrypt and soap
hash support
enabled
Hashing Engines
md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5
mcrypt support
enabled
Version
2.5.7
Api No
20021217
Supported ciphers
cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modes
cbc cfb ctr ecb ncfb nofb ofb stream
Soap Client
enabled
Soap Server
enabled
Directive
Local Value
Master Value
soap.wsdl_cache
1
1
soap.wsdl_cache_dir
/tmp
/tmp
soap.wsdl_cache_enabled
1
1
soap.wsdl_cache_limit
5
5
soap.wsdl_cache_ttl
86400
86400
Posted: 7/31/2009 7:39 AM
I noticed while I was writing the last post that whle I had Hash installed I did not have mHash installed. I have now Installed PHP-mHash for my PHP release.
I can now get to the Windows Live authentication site. After putting in my username and password I now get this error...
Fatal error : Class 'DOMDocument' not found in /var/www/html/moodle/auth/liveid/authenticate.php on line 77
Thanks
Posted: 7/31/2009 9:04 AM
Do you have php5-dom installed?
Posted: 7/31/2009 9:56 AM
No, I didn't. I have installed it now and it is authenticating.
Thanks