ELGG block returns blank page

ELGG block returns blank page

by Graeme Forrester -
Number of replies: 10

Hi,

I have a win2k3 server running with apache 2.1, php 5.1.18 and mysql 4.1 and I use LDAP for authentication - works well.

Moodle installed and runs OK, elgg installs and runs OK, the elgg block installed OK and all fields are filled in unfortunately when I create the block in a course and click join now the page redirects and says done but is blank.

I have the moodle on www.domain.com/moodle and elgg on www.domain.com/elgg

I dont know if I am filling the block entries correctly below is how I filled them in:

block_eportfolio_server: domain.com (don't know if this correct)

block_eportfolio_token: elggid (same as id in elgg config.php)

block_eportfolio_networkaddress: 10.x.x.x

block_eportfolio_installid: moodle/elgg id (made a name for this)
block_eportfolio_baseurl: www.domain.com/elgg

block_eportfolio_phpcli: /usr/bin/php4. (Don't know what to put here)
block_eportfolio_exportable: false

I presume that the scp can be left out as both exist on the same server. It redirects to the correct page and the lms folder has self created in the elgg subdirectory).

I am somewhat stumped by this as there are no errors.

Average of ratings: -
In reply to Graeme Forrester

Re: ELGG block returns blank page

by Penny Leach -
Can you please post a screenshot of your moodle blocks config page, and the snippet from your elgg config.php including the lms hosts part?
In reply to Penny Leach

Re: ELGG block returns blank page

by Paolo Oprandi -
I, too, get a blank page on https://moodledev.sussex.ac.uk/elgg/lms/join.php
presumably because I don't return anything from find_lms_user() in /lib/lmslib.php and I think this is as:

$client->results = Error

and

if ($client->results != 'OK') {
return clean_param($client->results,PARAM_CLEAN);
}

Not returning anything from find_lms_user() means
$user != LMS_NO_SUCH_USER

is true and so we:

// we have a validation error probably.
echo $user;
// TODO something

and $user is an empty Object.

hmmm... still the case even after Dave solved the data_submitted issue.
In reply to Penny Leach

Re: ELGG block returns blank page

by Graeme Forrester -
block_eportfolio_server: maryborougheducationcentre.vic.edu.au
block_eportfolio_token: xxxxxxxx
block_eportfolio_networkaddress: 10.134.248.23
block_eportfolio_installid: MECMoodle
block_eportfolio_baseurl: http://www.maryborougheducationcentre.vic.edu.au/elgg
block_eportfolio_copymethod: cp  

block_eportfolio_scpkeysfile:
block_eportfolio_scpremoteuser:
block_eportfolio_phpcli: /usr/bin/php5 still don't know what to put here
block_eportfolio_exportable:no  

And from ELGG

$CFG->lmshosts = array('MECMoodle' => array('token' => 'xxxxxxxx', 'networkaddress' => '10.134.248.23','confirmurl' => 'http://www.maryborougheducationcentre/moodle/blocks/eportfolio/confirm.php', 'baseurl' => 'http://www.maryborougheducationcentre.vic.edu.au/moodle', 'name' => 'MECMoodle'));

I blanked out the token for obvious reasons.

Using php 5.1.18 mysql 4.1 and apache 2 with moodle 1.6 and elgg 0.6

Thanks Penny - you are a gem

 

In reply to Graeme Forrester

Re: ELGG block returns blank page

by Paolo Oprandi -
Setting $client->results = 'OK'; seems to work. Perhaps snoopy throws an error because we haven't a valid https certificate for this web server?
In reply to Paolo Oprandi

Re: ELGG block returns blank page

by Graeme Forrester -
So where do you set this? Which file? It is not in my elgg config.php
In reply to Graeme Forrester

Re: ELGG block returns blank page

by Paolo Oprandi -
I added it to the code - line 47 of elgg/lib/lmslib.php.

I think that the reason it throws an error in my case is because I am running moodle on a secure server (https) without a registered ssl certificate. Are you doing the same?
In reply to Paolo Oprandi

Re: ELGG block returns blank page

by Graeme Forrester -

Setting $client->results = 'OK';

Thanks a bunch - this fixes everything. Now I get the login screen and account in elgg.

Will test further - I dont completely understand why but there are two scenarios that I need to test:

1. Change password.

2. Cookie deletion or expiry.
3. Because I use LDAP I need to create a user and change their password in some other place - eg mail or workstation and ensure that this is still going to work.

In reply to Graeme Forrester

Re: ELGG block returns blank page

by Penny Leach -
passwords are not synced because you shouldn't have to log in to elgg directly, when you're logged in to moodle, after your initial elgg setup, you're automatically authenticated in elgg.
In reply to Graeme Forrester

Re: ELGG block returns blank page

by Penny Leach -
in terms of your PHP CLI path, if they're on the same machine, you don't need it. In any rate, you can always type


which php
or
which php4
or
which php5

at the command prompt to get an answer, and use whichever of those has an answer.

that was the easy part.

looking at your config above, I can't see anything wrong with it. Can you check your apache error log for errors? Other than that, I really don't know much about php5, it could be that..
In reply to Penny Leach

Re: ELGG block returns blank page

by Graeme Forrester -

The only info that i get is that listed below in the access logs - no errors

10.134.248.3 - - [22/Jun/2006:13:03:54 +1000] "POST /moodle/blocks/eportfolio/signupredirect.php HTTP/1.1" 200 570
10.134.248.3 - - [22/Jun/2006:13:04:01 +1000] "POST /elgg/lms/join.php HTTP/1.1" 200 -
10.134.248.3 - - [22/Jun/2006:13:04:22 +1000] "GET /moodle/pix/i/users.gif HTTP/1.1" 304 -

Which I get when I attempt to join then it goes not further

There are however elgg template errors

[Thu Jun 22 12:26:13 2006] [error] [client 10.134.248.3] File does not exist: F:/server/Apache2/htdocs/_templates

Which is related to the template root on using elgg.

I don't believe this is php 5 related as elgg works fine and so does moodle. I am sure that I am missing something