R0.22 and earlier: No Longer Supported

[Solved] Probleme bei der Instalation

More
15 years 10 months ago - 15 years 10 months ago #21 by pintu
Hi antonio,
everything went ok. Now im facing new problem on joomla Frontpage site

Notice: xmlrpc_is_fault() [function.xmlrpc-is-fault]: Array argument expected in C:\wamp\www\lms\modules\mod_joomdle_courses\mod_joomdle_courses.php on line 57

and

Notice: Undefined variable: response in C:\wamp\www\lms\modules\mod_joomdle_my_courses\mod_joomdle_my_courses.php on line 52


Plz help me
Thanks in advance
Last edit: 15 years 10 months ago by pintu.
The topic has been locked.
More
15 years 10 months ago #22 by Antonio Durán
Replied by Antonio Durán on topic Re: Instalation Problem version = 2008080100; $plugin
Hi. It is strange, I never saw that message. Maybe it is because of different PHP versions...
I found this link talking about this: bugs.php.net/bug.php?id=40793

Or maybe is that you have turned on PHP warnings and I have not...? I will try to test that now.
Which PHP version are you running?

About the mod_joomdle_courses module:
Does it show the Notice and then shows the course list?

About mod_joomdle_my_courses.php:
After looking at the code I see a bug that has slipped, because it is only on error checking.
On line 52 of mod_joomdle_my_courses.php, change:
if (xmlrpc_is_fault($response)) {
for:
if (xmlrpc_is_fault($cursos)) {

Regards,
Antonio
The topic has been locked.
More
15 years 10 months ago #23 by Antonio Durán
Replied by Antonio Durán on topic Re: Instalation Problem version = 2008080100; $plugin
Ok. I just tested and can confirm that the messages appear because you have the server configured to show E_NOTICE errors.
I did not know that I hadn't, so I will have to go through all the code to fix them :) This will have to wait for next version.

Meanwhile, you can:
- Turn E_NOTICE errors off
- Change some code to deal with them

Regards,
Antonio
The topic has been locked.
  • Jörg
  • Topic Author
  • New Member
  • New Member
More
15 years 10 months ago #24 by Jörg
Hello

mnet_dispatcher_mode ???? do not exist in mysql database...

btw is there someone where it works?
The topic has been locked.
More
15 years 10 months ago #25 by fabrice
Hi,

use this update on the moodle database :

UPDATE mdl_config SET value='dangerous' WHERE name='mnet_dispatcher_mode';

I just test it and working for me.

Thank

Fabrice
The topic has been locked.
More
15 years 10 months ago - 15 years 10 months ago #26 by fabrice
Replied by fabrice on topic Re:Probleme bei der Instalation
Hi,

When I let the mnet_dispatcher_mode on mode 'strict' :
- I have a "I" with a link to the courses I , beside the list of the course in the joomdle_mycourses and joomdle_courses module
- The com_joomdle to get the cours details from the menu I get this : Error XML-RPC (7015): Unable to locate the function or function is not allowed via RPC (translated from french)

I post a print screen with.

after I change the mnet_dispatcher on mode dangerous : all appear.

Now when I clic on the course the URL stay on ../moodle//auth/joomdle/land.php?username=pixiesfr&token=20d351a628d77081e8e848cdfec75e04&wantsurl=/course/view.php%3Fid%3D3 ( blank page ) . Its like the redirect is not working.. I add this command on line 38 of land.php : print_r($result) and appear this : faultCode 1 faultString Unknown method.

If I bypass the statement : xmlrpc_is_fault($logged) , it working...

After I was too much tired to continue, sorry..

Thanks
Last edit: 15 years 10 months ago by fabrice. Reason: img attachment too big ;-)
The topic has been locked.
  • Jörg
  • Topic Author
  • New Member
  • New Member
More
15 years 10 months ago #27 by Jörg


that do not work by me what can i do?
The topic has been locked.
More
15 years 10 months ago #28 by fabrice
Hi,

It depending of your moddle prefix table.

Check in the your config.php in the /moodle directory.

you must see this : $CFG->prefix = 'mdl_'; -> that my config file.

replace from the update the mdl_ by yours...

UPDATE <your prefix>config SET value="dangerous" ...

if it's still not working, can you post the result of this :

Desc <your moodle database> ;

and let me know.

To answers of your last post, yes for me it working.

Thank you
The topic has been locked.
  • Jörg
  • Topic Author
  • New Member
  • New Member
More
15 years 10 months ago #29 by Jörg
many thanks to Fabrice now it works
:) :) :) :) :)
The topic has been locked.
More
15 years 10 months ago #30 by Antonio Durán
Replied by Antonio Durán on topic Re: Instalation Problem version = 2008080100; $plugin
Hi. I see I arrive a little late :) Thanks Fabrice for helping out.

What I really would like is to find out what is the problem for you two, as I never had to put the 'dangerous' setting on. This way I will be able to fix it.

So, it would be great if you could do some tests in your machine, please. Just execute some SQL sentences to know what is going on.

select * from mdl_config where name = 'mnet_localhost_id' ;

SELECT count(r.id) FROM mdl_mnet_host2service h2s, mdl_mnet_service2rpc s2r, mdl_mnet_rpc r WHERE h2s.serviceid = s2r.serviceid AND s2r.rpcid = r.id AND r.xmlrpc_path = 'auth/joomdle/auth.php/list_courses' AND h2s.hostid in (0, 2) AND h2s.publish = '1' LIMIT 1;

If the last one gives empty result, try these ones and post the results please:

select * from mdl_mnet_service2rpc;
select * from mdl_mnet_rpc where parent='joomdle';
select * from mdl_mnet_host2service;

Thanks in advance,
Antonio
The topic has been locked.