How To / General

Configuration Random question module

More
6 years 5 days ago #1 by tycitycio
Configuration Random question module was created by tycitycio
Hello!

I'm trying to use random question module. I know that sounds trivial but what should I write in "Question category" parameter?

When I put there category name or id it shows error:

XML-RPC Error (28260048): Invalid response value detected | ERRORCODE: invalidresponse


The same thing happend when i put there wrong name which isn't in my categories.
System check doesn't show any errors. I'm Using Joomla 3.9.16 and moodle 3.8.2
Should I write e.g. dashes instead of spaces or write mother category? What is the correct format of this parameter?

Please Log in or Create an account to join the conversation.

More
6 years 4 days ago #2 by Antonio Durán
Replied by Antonio Durán on topic Configuration Random question module
Hi.

Are you using current release? It should show the category list in "Question category" parameter, not let you enter any value....

Please Log in or Create an account to join the conversation.

More
6 years 4 days ago #3 by tycitycio
Replied by tycitycio on topic Configuration Random question module
Hi!
Thank you for such a quick response.

Yes, I installed the latest release downloaded yesterday. I've reinstall module and now I see the warning what I overlooked before.

Warning : constant(): Couldn't find constant JPATH_ in D:\xampp\htdocs\jeref\libraries\src\Installer\Adapter\ModuleAdapter.php on line 214 {"success":true,"message":null,"messages":{"message":["Installation of the module was successful."]},"data":{"redirect":"\/jeref\/administrator\/index.php?option=com_installer&view=install"}}


What should I do?

Please Log in or Create an account to join the conversation.

More
6 years 3 days ago #4 by Antonio Durán
Replied by Antonio Durán on topic Configuration Random question module
I don't know why you are getting that, as it does not seem releated to the module.
I just installed the module now on a test site, and I did not get any errors. You can try installing a different site to see if you get the same issue...

Please Log in or Create an account to join the conversation.

More
6 years 3 days ago - 6 years 3 days ago #5 by tycitycio
Replied by tycitycio on topic Configuration Random question module
I've reinstalled module but this time using "install from URL" and there was no error.
Anyway, I still can't see list in parameter. I have to enter value.
I've tried to install it in fresh installation and few sites on other servers. Every time the same problem
Last edit: 6 years 3 days ago by tycitycio.

Please Log in or Create an account to join the conversation.

More
6 years 3 days ago #6 by Antonio Durán
Replied by Antonio Durán on topic Configuration Random question module
I am sorry, I was testing with the package I had, and it turns out it was not the same that was available for download.
I just released a new version fixing the parameter issue. Please test and let us know if you find any issues.
www.joomdle.com/download/category/26-mod...dom-questions-module

Please Log in or Create an account to join the conversation.

More
6 years 2 days ago #7 by tycitycio
Replied by tycitycio on topic Configuration Random question module
I've installed a new version. There's a category list now. Thank you.

I still have problem which I described on my first post. I mean this error:

XML-RPC Error (28260048): Invalid response value detected | ERRORCODE: invalidresponse


System check show all on green.
Joomla 3.9.16
Moodle 3.8.2
PHP 7.4.4
I'm working on localhost powered by XAMPP

Please Log in or Create an account to join the conversation.

More
6 years 2 days ago #8 by Antonio Durán
Replied by Antonio Durán on topic Configuration Random question module
Are you selecting a category with questions?
You can also enable debugging in Moodle to get more info about the error.

Please Log in or Create an account to join the conversation.

More
6 years 2 days ago #9 by tycitycio
Replied by tycitycio on topic Configuration Random question module
Code:
Are you selecting a category with questions?
Sure

Here's a debug info:

XML-RPC Error (28260048): Invalid response value detected. (Only arrays/objects accepted. The bad value is: '') | DEBUG INFO: Only arrays/objects accepted. The bad value is: '' | ERRORCODE: invalidresponse

Please Log in or Create an account to join the conversation.

More
6 years 1 day ago #10 by Antonio Durán
Replied by Antonio Durán on topic Configuration Random question module
It is returning an empty value... no idea why. I tested locally with current Moodle version, and it is working fine for me. Same on the demo site.

Can you try with other categories to see if you get different results?

Please Log in or Create an account to join the conversation.