R0.22 and earlier: No Longer Supported

[Solved] Auth plugin

More
15 years 9 months ago #11 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
No :blush:

Thanks for your patience.

That bit is all sorted now. :)

New problem though.

When I click on the menu item in my Joomla! menu I get this:

Warning: Invalid argument supplied for foreach() in /home/vwgozor/public_html/components/com_joomdle/views/joomdle/tmpl/default.php on line 21

I'm guessing the component can't find the list of Moodle courses but I don;t know.

Previous installations of Moodle stored data in a folder called "Moodledata" which was "outside" htdocs or public_html

My new installation ( from a Fantastico script ) puts the data in a folder called uploaddata in the Moodle istallation folder.

Does this affect anything?

And thanks again.

tom
The topic has been locked.
More
15 years 9 months ago #12 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
Hi.

That warning (pending to fix for next release) informs you that the course list returned by Moodle is empty. Are there courses in Moodle? Are they open?

Does the module joomdle_courses work?

The moodledata directory has nothing to do with this.

Antonio
The topic has been locked.
More
15 years 9 months ago #13 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
Hi Thanks for the reply

As you will gather, the Moodle installation is brand new and not yet live. So there may not be open courses.

But now I know what the error means, I know where to look to fix it. And that hopefully should be enough :)

I really do appreciate your help- and am looking to forward to using a great piece of software.

best wishes

tom
The topic has been locked.
More
15 years 9 months ago #14 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
antonio wrote:

Hi.

That warning (pending to fix for next release) informs you that the course list returned by Moodle is empty. Are there courses in Moodle? Are they open?

Does the module joomdle_courses work?

The moodledata directory has nothing to do with this.

Antonio


I've populated Moodle and there are now plenty of available courses.
I still get the same error message (and a broadly similar one for my_courses)

Is there any way of checking if joomdle_courses , independently of calling it from joomla! ?

tom
The topic has been locked.
More
15 years 9 months ago #15 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
Hi.

I think there is no easy way to test outside Joomla.

It is strange that you get this error without any other errors indicating that something went wrong. You don't get anything else, right?

The thing is the web services seem to be working alright, as you don`t get any errors from them...
I don't know... you don't have http auth or anything strange in your setup, do you?

Antonio
The topic has been locked.
More
15 years 9 months ago #16 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
Hi

Thanks for getting back to me. Part of my problems are that a) I don't really understand this stuff, and b) the joomla! and moodle installations were both set up with remote scripts ( Fantastico ) so I don't know many details. But on the other hand the setup should be pretty standard

I tried messing with the paths.
I changed "localhost" to "home/whatever/public_html" and this generated xml-rpc errors so I'm assuming "localhost" is ok for the http bits

It must be something simple, I suppose.
I'll try starting again and checking carefully. It's such a great piece of software and exactly what I need

And I'll let you know how I do.

Thanks again for your time and trouble.

Best wishes

tom
The topic has been locked.
More
15 years 9 months ago #17 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
Hi. If you want to take the tame to test, I can guide you yo try. It is not easy, as you can't see the output of web services directly.

I will try to explain a little how i works:
- Moodle publishes web services
- Joomla consumes those services and shows contents

What seems to be happening is that these web services are returning void. What I would do is try to check that. So, I would edit auth.php in moodle/auth/joomdle, function list_courses.
In it, I will write its return value to some file or something, so I can now:
- That the function is really being executed
- That is really returning void

If that is true, then we should continue finding out why it is returning void.

Regards,
Antonio
The topic has been locked.
More
15 years 9 months ago #18 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
Hi

I tried editing the function and added

$myFile = "dump.txt" ;
$fh = fopen($myFile, 'w') or die("can't open file");

fwrite($fh, " function executes");
fclose($fh);


the file was never created so I'm assuming the function was never called .

regards

tom
The topic has been locked.
More
15 years 9 months ago #19 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
Ok. Let's see what is coming from Moodle.

Add:
print_r ($file);
in mod_joomdle/courses.php, after:
$file = file_get_contents($moodle_xmlrpc_server_url, false, $context);
The topic has been locked.
More
15 years 9 months ago #20 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
Hi

Tried that- nothing happened at all.

So i added right after it

$myFile = "dump.txt" ;
$fh = fopen($myFile, 'w') or die("can't open file");

fwrite($fh, " function executes");
fclose($fh);

Still nothing :(
The topic has been locked.