isco1988 / moodle-google

Automatically exported from code.google.com/p/moodle-google
Other
0 stars 0 forks source link

Not Working with Moodle 2.0 #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Moodle 2.0 
2. Install Moodle-Google SSO integration
3. go to notification on moodle

What is the expected output? What do you see instead?
I expected proper installation... instead I get BLANK PAGE

What version of the product are you using? On what operating system?
Moodle 2.0 on Linux with Google4

Please provide any additional information below.
Please check if this would work with Moodle 2.0

Original issue reported on code.google.com by muji...@gmail.com on 27 Nov 2010 at 7:54

GoogleCodeExporter commented 8 years ago
Essential for us that this is fixed. Thanks.

Original comment by uccrw...@uctc.org.uk on 1 Dec 2010 at 12:31

GoogleCodeExporter commented 8 years ago
hello.

I have the same problem you have. google4 not seem to not work in moodle 2.0.

you know that version it works, or if there is any way to work in version 2.0? 
and doesn't show the white window

Original comment by pablo.sa...@softkey.cl on 29 Dec 2010 at 3:34

GoogleCodeExporter commented 8 years ago
hello.

I have the same problem you have. google4 not seem to not work in moodle 2.0.

you know that version it works, or if there is any way to work in version 2.0? 
and doesn't show the white window

Original comment by pablo.sa...@softkey.cl on 29 Dec 2010 at 3:34

GoogleCodeExporter commented 8 years ago
looking forward for the fix too

Original comment by domingue...@gmail.com on 13 Jan 2011 at 1:12

GoogleCodeExporter commented 8 years ago
This is the error I get.  I think the blank page comes from not having php 
errors turned on.

Plugin "block/gaccess" is defective or outdated, can not continue, sorry.

More information about this error

Debug info: Missing version.php file.
Stack trace:
line 552 of /lib/upgradelib.php: plugin_defective_exception thrown
line 267 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
line 1352 of /lib/upgradelib.php: call to upgrade_plugins()
line 290 of /admin/index.php: call to upgrade_noncore()

Original comment by walt...@gmail.com on 14 Jan 2011 at 6:43

GoogleCodeExporter commented 8 years ago
I just tried adding a version.php file to each block that did not already 
contain one.  It got me a little further but still many errors.  block name 
errors as well as some block name conflicts I think.  I did not copy those 
errors directly but can if needs be.

Original comment by walt...@gmail.com on 14 Jan 2011 at 7:09

GoogleCodeExporter commented 8 years ago
I am surprised that the moodlerooms is not doing anything about this... 
wait@gmail.com thanks for trying

Original comment by muji...@gmail.com on 14 Jan 2011 at 7:11

GoogleCodeExporter commented 8 years ago
Having the exact same problem

Original comment by enquir...@burnsidebec.org.uk on 18 Jan 2011 at 4:41

GoogleCodeExporter commented 8 years ago
Ubuntu 10.04, fresh install of Moodle 2.0 with "upgrade" done (regular sources).

- Blank page in Firefox and HTTP 500 error in Chrome
- Problem is there as long as I place the gsaml folder in .../moodle/auth/

Original comment by sebastie...@gmail.com on 21 Jan 2011 at 1:31

GoogleCodeExporter commented 8 years ago
solution cant be that hard... what's going on moodlerooms?

Original comment by humera.a...@gmail.com on 1 Feb 2011 at 2:50

GoogleCodeExporter commented 8 years ago
just up-graded to Moodle 2.0, then teachers couldn't access emails :(

Just did a tempory solution (I don't know if this is all of the bug yet)

The strings (in the admin page) are all broken for me, but it works... Thats 
for another night.

attached is my new auth/gsaml/admin_upload.php 

Original comment by andrewr...@gmail.com on 4 Feb 2011 at 10:08

Attachments:

GoogleCodeExporter commented 8 years ago
Ok I have attached my current version for moodle-google sync,

I think I have got most of the bugs out, it was harder then first expected. And 
I will apologizes in advance, if I accidently let in any debug printing in.

I don't have a test environment, so I don't know if things like installing will 
work.

If you find any bugs, post them here, and I will see if I can solve it.

There is a bug in the langue, where say a button would have text such as: "Add 
all $a users to sync" (the $a should be replaced by the number of users not 
being synced). Dose anyone know how to fix this?

Original comment by andrewr...@gmail.com on 6 Feb 2011 at 2:24

Attachments:

GoogleCodeExporter commented 8 years ago
@Andrew where do you see this? From what I've seen of the code $a is typically 
an object, but either way this:

 "Add all {$a} users to sync" 

works but a cleaner look is to concat the parts:

 "Add all " . $a . " users to sync";

Also I have added this to a github repo along with your changes. 
https://github.com/jrschumacher/moodle-google_apps

Original comment by j.r.schu...@gmail.com on 16 Feb 2011 at 10:05

GoogleCodeExporter commented 8 years ago
I found the solution to that problem.

if you look at get_string() (/lib/moodlelib.php line:6023), the function 
replaces all '{$a}' with the string (or '{a->email}' with the object $a->email 
property).

So you just need to change all $a to {$a} in the langue files.

Original comment by andrewr...@gmail.com on 16 Feb 2011 at 11:40

GoogleCodeExporter commented 8 years ago
So, is there a solution for this yet?

Original comment by ad...@mhsstudents.net on 17 Feb 2011 at 5:58

GoogleCodeExporter commented 8 years ago
@j.r. I just grabbed your code from github, and am still getting a "Plugin 
"block_gmail" is defective or outdated, can not continue, sorry. Debug info: 
Missing block version." Is there something I'm missing, or a workaround?

Original comment by mr.ferr...@ferrellweb.com on 25 Feb 2011 at 8:51

GoogleCodeExporter commented 8 years ago
same here... sigh..

Original comment by muji...@gmail.com on 25 Feb 2011 at 9:20

GoogleCodeExporter commented 8 years ago
Hi,

The Gmail block not working, could have something to do with us not using it. 
(thus is wasn't fixed).

I just had had a quick look at the block, fixed the version and a few database 
problems. I have attached the block, If you find problems with it, post here, 
and I will look at it.

Original comment by andrewr...@gmail.com on 25 Feb 2011 at 10:12

Attachments:

GoogleCodeExporter commented 8 years ago
@Andrew Looks like that did the trick! Thanks!

Original comment by mr.ferr...@ferrellweb.com on 26 Feb 2011 at 2:10

GoogleCodeExporter commented 8 years ago
Hmm. When I click the links to upload the private key and SSL certificates, I 
get an error: "Web server software (Apache) is not supported, sorry." -- this 
may be due to a service provider issue (long story)... can I just upload them 
via FTP? If so, where do I need to put them? 

Original comment by mr.ferr...@ferrellweb.com on 26 Feb 2011 at 1:40

GoogleCodeExporter commented 8 years ago
Whoops. More info., for the record: At this point in the install, even loading 
my main page in a new tab (ferrellweb.com/moodle) gives me the "apache not 
supported error". 

The long story (above) all of a sudden may be relevant: When I installed Moodle 
2 on my server, I was getting "webserverx not supported errors". To circumvent 
this, I had to tweak my lib/setuplib.php file to get over my host's "webserver 
x" masking. I changed line 725 in that file from:

if (stripos($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) {

to:

if (stripos($_SERVER['SERVER_SOFTWARE'], 'webserverx') !== false) {

Which solved the install problem. It doesn't seem *highly* likely, but could 
this be coming back to haunt me now?

Original comment by mr.ferr...@ferrellweb.com on 26 Feb 2011 at 2:26

GoogleCodeExporter commented 8 years ago
Try turning debugging to developer mode by adding:

$CFG->debug = 38911;
$CFG->debugdisplay = true;

to your config.php file.

can you get some stack traces?
note: sometimes they will appear in your error log, instead of being printed.

Original comment by andrewr...@gmail.com on 26 Feb 2011 at 11:33

GoogleCodeExporter commented 8 years ago
So is this the kind of thing I'm looking for?

Stack trace:
line 774 of /lib/setuplib.php: moodle_exception thrown
line 634 of /lib/setuplib.php: call to setup_get_remote_url()
line 647 of /lib/setup.php: call to initialise_fullme()
line 29 of /config.php: call to require_once()
line 6 of /admin/upgradesettings.php: call to require_once()

Original comment by mr.ferr...@ferrellweb.com on 27 Feb 2011 at 12:52

GoogleCodeExporter commented 8 years ago
yes, I think it is coming back to haunt you. 

Try changing /lib/setuplib:725 to:
if (stripos($_SERVER['SERVER_SOFTWARE'], 'apache') !== false || 
stripos($_SERVER['SERVER_SOFTWARE'], 'webserverx') !== false) {

Original comment by andrewr...@gmail.com on 27 Feb 2011 at 12:26

GoogleCodeExporter commented 8 years ago
Ha! Thanks; that's got me up and running again, end everything looks like it 
installed/updated. I'll have to be "less exclusive" with my workarounds in the 
future!

Original comment by mr.ferr...@ferrellweb.com on 27 Feb 2011 at 1:58

GoogleCodeExporter commented 8 years ago
so what's the final version of code working with Moodle 2.x ? Can you attach it 
so any layman can do it..?
Thanks

Original comment by muji...@gmail.com on 31 Mar 2011 at 6:33

GoogleCodeExporter commented 8 years ago
We have written a Moodle 2.0 port, and maintain a git branch here: 
http://git.catalyst.net.nz/gw?p=moodle-r2.git;a=shortlog;h=refs/heads/feature-20
-googleapps

Original comment by jonathan...@gmail.com on 3 Apr 2011 at 5:26

GoogleCodeExporter commented 8 years ago
Hi, 
Is this port ready to be used on a production machine (stable) ?

It looks like an entire Moodle install is kept in that git branch, what would 
we do to add the updates to a site thats already running? What folders do I 
need to just install the google stuff? ./blocks/gaccess, ./blocks/gdata ?

Thanks

Original comment by klein...@gmail.com on 4 Apr 2011 at 8:43

GoogleCodeExporter commented 8 years ago
auth/gsaml
blocks/gaccess
blocks/gdata
blocks/gmail
lib/zend/Zend/Validate/Hostname/At.php
lib/zend/Zend/Validate/Hostname/Ch.php
lib/zend/Zend/Validate/Hostname/De.php
lib/zend/Zend/Validate/Hostname/Fi.php
lib/zend/Zend/Validate/Hostname/Hu.php
lib/zend/Zend/Validate/Hostname/Interface.php
lib/zend/Zend/Validate/Hostname/Li.php
lib/zend/Zend/Validate/Hostname/No.php
lib/zend/Zend/Validate/Hostname/Se.php

Original comment by muji...@gmail.com on 5 Apr 2011 at 4:26

GoogleCodeExporter commented 8 years ago
where is the final code for it plz .. 

Original comment by dv8...@gmail.com on 18 Apr 2011 at 7:25

GoogleCodeExporter commented 8 years ago
Email me when moodle and g apps work on 2.0.2
Thanks...

Original comment by terrybri...@gmail.com on 5 May 2011 at 7:56

GoogleCodeExporter commented 8 years ago
Email me when it works on 2.1 please =)

Original comment by ffarg...@aucegypt.edu on 11 Sep 2011 at 10:43

GoogleCodeExporter commented 8 years ago
Anyone familiar with this error at 
domain.com/moodle/blocks/gdata/index.php?hook=users?

ERROR: Incorrect number of query parameters. Expected 1, got 0.

More information about this error
Stack trace:

    line 706 of /lib/dml/moodle_database.php: dml_exception thrown
    line 789 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->fix_sql_params()
    line 521 of /blocks/gdata/block_gdata.php: call to mysqli_native_moodle_database->get_records_sql()
    line 415 of /blocks/gdata/block_gdata.php: call to block_gdata->display_user_table()
    line 276 of /blocks/gdata/block_gdata.php: call to block_gdata->users_display()
    line ? of unknownfile: call to block_gdata::view()
    line 1427 of /lib/blocklib.php: call to call_user_func()
    line 35 of /blocks/gdata/index.php: call to block_method_result()

Output buffer: <form class="userform" id="userformid" 
action="http://training.jcf.gov.jm/courses/blocks/gdata/index.php" 
method="post">

Original comment by howardsh...@gmail.com on 17 Sep 2011 at 6:30

GoogleCodeExporter commented 8 years ago
and this has not been fixed in over 1 years time. surprised. 

Original comment by ngam...@google.com on 8 Aug 2012 at 1:38

GoogleCodeExporter commented 8 years ago
Not tested yet..
"Moodle 2.0 support now available: The New Zealand Moodle in Schools project 
and Catalyst IT have collaborated to port this functionality to Moodle 2.0 and 
is available from the Catalyst git repository in the feature-20-googleapps 
branch."

http://docs.moodle.org/23/en/Google_Apps_Integration

@lén

Original comment by Alen.Per...@gmail.com on 16 Nov 2012 at 12:23