Forums | Mahara Community
Mahara/Moodle integration
/
Cannot Login to Mahara from Moodle When Picture is added to Moodle Profile
11 June 2009, 15:18
Not really sure if the Problem is on the Moodle side or the Mahara side.
Hi :
I have successfully integrated Moodle with Mahara
and can login to Mahara from Moodle. However, I find when I add a profile image
to my Moodle profile and try to login to Mahara from with Moodle I get the "site
not available error"
I can remove the profile picture, and everything is
fine.
I am running Mahara 1.1.3 with:
Windows 2003 Server
WAMP:
-Apache
2.2.11
-PHP
5.2.9-2
-Mysql
5.1.33
I am running Moodle 1.95 with
Windows 2003
Server
WAMP:
-PHP 5.2.9-2
-Apache 2.2.11
-Mysql
5.1.33
Here is the php error log on the Mahara server.
It seems
like it is having trouble finding the \tmp directory and having trouble
transfering the profile image over to
Mahara
Thanks!
-Greg
*****
[11-Jun-2009 12:01:32] [WAR]
55 (C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php:277)
file_put_contents(/tmp/2_admin1) [function.file-put-contents]: failed to open stream:
No such file or directory
[11-Jun-2009 12:01:32] Call stack (most recent
first):
[11-Jun-2009 12:01:32] *
log_message("file_put_contents(/tmp/2_admin1) [function.file-pu...", 8, true,
true, "C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php", 277) at
C:\wamp\www\mahara\htdocs\lib\errors.php:378
[11-Jun-2009 12:01:32] *
error(2, "file_put_contents(/tmp/2_admin1) [<a href='functio...",
"C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php", 277, array(size 19)) at
Unknown:0
[11-Jun-2009 12:01:32] * file_put_contents("/tmp/2_admin1",
"ÿØÿà
[11-Jun-2009 12:01:32] *
AuthXmlrpc->request_user_authorise("966b90fd3965f757fa9a14236c0db297d9d9b733",
"http://tsgbwebct/moodle") at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\land.php:95
[11-Jun-2009 12:01:32]
[11-Jun-2009 12:01:32] [WAR] 55
(C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php:282) sha1_file(/tmp/2_admin1)
[function.sha1-file]: failed to open stream: No such file or
directory
[11-Jun-2009 12:01:32] Call stack (most recent
first):
[11-Jun-2009 12:01:32] * log_message("sha1_file(/tmp/2_admin1)
[function.sha1-file]: fai...", 8, true, true,
"C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php", 282) at
C:\wamp\www\mahara\htdocs\lib\errors.php:378
[11-Jun-2009 12:01:32] *
error(2, "sha1_file(/tmp/2_admin1) [<a href='function.sha1-f...",
"C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php", 282, array(size 21)) at
Unknown:0
[11-Jun-2009 12:01:32] * sha1_file("/tmp/2_admin1") at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php:282
[11-Jun-2009 12:01:32]
*
AuthXmlrpc->request_user_authorise("966b90fd3965f757fa9a14236c0db297d9d9b733",
"http://tsgbwebct/moodle") at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\land.php:95
[11-Jun-2009 12:01:32]
[11-Jun-2009 12:01:32] [WAR] 55
(C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php:298) filesize()
[function.filesize]: stat failed for /tmp/2_admin1
[11-Jun-2009 12:01:32]
Call stack (most recent first):
[11-Jun-2009 12:01:32] *
log_message("filesize() [function.filesize]: stat failed for /t...", 8, true,
true, "C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php", 298) at
C:\wamp\www\mahara\htdocs\lib\errors.php:378
[11-Jun-2009 12:01:32] *
error(2, "filesize() [<a href='function.filesize'>function.f...",
"C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php", 298, array(size 25)) at
Unknown:0
[11-Jun-2009 12:01:32] * filesize("/tmp/2_admin1") at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php:298
[11-Jun-2009 12:01:32]
*
AuthXmlrpc->request_user_authorise("966b90fd3965f757fa9a14236c0db297d9d9b733",
"http://tsgbwebct/moodle") at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\land.php:95
[11-Jun-2009 12:01:32]
[11-Jun-2009 12:01:32] [WAR] 55
(C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php:304) getimagesize(/tmp/2_admin1)
[function.getimagesize]: failed to open stream: No such file or
directory
[11-Jun-2009 12:01:32] Call stack (most recent
first):
[11-Jun-2009 12:01:32] * log_message("getimagesize(/tmp/2_admin1)
[function.getimagesize...", 8, true, true,
"C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php", 304) at
C:\wamp\www\mahara\htdocs\lib\errors.php:378
[11-Jun-2009 12:01:32] *
error(2, "getimagesize(/tmp/2_admin1) [<a href='function.get...",
"C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php", 304, array(size 26)) at
Unknown:0
[11-Jun-2009 12:01:32] * getimagesize("/tmp/2_admin1") at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php:304
[11-Jun-2009 12:01:32]
*
AuthXmlrpc->request_user_authorise("966b90fd3965f757fa9a14236c0db297d9d9b733",
"http://tsgbwebct/moodle") at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\land.php:95
[11-Jun-2009 12:01:32]
[11-Jun-2009 12:01:32] [WAR] 55
(C:\wamp\www\mahara\htdocs\lib\errors.php:396) An exception was thrown of class
InvalidArgumentException.
[11-Jun-2009 12:01:32] [WAR] 55
(C:\wamp\www\mahara\htdocs\lib\errors.php:396) THIS IS BAD and should be changed
to something extending MaharaException,
[11-Jun-2009 12:01:32] [WAR] 55
(C:\wamp\www\mahara\htdocs\lib\errors.php:396) unless the exception is from a
third party library.
[11-Jun-2009 12:01:32] [WAR] 55
(C:\wamp\www\mahara\htdocs\lib\errors.php:396) Original trace
follows
[11-Jun-2009 12:01:32] [WAR] 55
(C:\wamp\www\mahara\htdocs\auth\user.php:487) parameter must be a positive
integer to add to the quota
[11-Jun-2009 12:01:32] Call stack (most
recent first):
[11-Jun-2009 12:01:32] * User->quota_add(false) at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\lib.php:319
[11-Jun-2009 12:01:32]
*
AuthXmlrpc->request_user_authorise("966b90fd3965f757fa9a14236c0db297d9d9b733",
"http://tsgbwebct/moodle") at
C:\wamp\www\mahara\htdocs\auth\xmlrpc\land.php:95
[11-Jun-2009 12:01:32]
11 June 2009, 21:38
Hi - see my reply on your moodle thread - we don't officially support Windows, but I think we could probably come up with a fix in due course (if you file a bug so we remember! )16 June 2009, 7:10
same problem for me! Fine with no image
Receive following message:Site unavailable
A nonrecoverable error occured. This probably means you have encountered a bug in the systemXAMPP -
- Apache HTTPD 2.2.11 + Openssl 0.9.8i
- MySQL 5.1.33
- PHP 5.2.9
windows XP
16 June 2009, 17:48
Greg Crum filed a bug for this on the tracker, so we should be able to fix it before Mahara 1.2.