Shop / e-Commerce Integration

XML-RPC Error (404): Class 'condition_info' not found

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 2 months ago #1 by Justin
Hi

I hope you can give me some advice.
I setup a test site installed, joomdle, hikashop, hikashop groups plugin.

I created 1 course with 5 groups, setup hikashop characteristics, and started using group plugin to enroll to course and specific group all worked perfectly.

I created a menu item "My Courses" set it to "Joomdle Course View" this also worked correctly.
then I went to moodle and removed the student I enrolled from a bunch of the groups now regardless of whether I unenroll the student from the course and re-enroll
I get XML-RPC Error (404): Class 'condition_info' not found when I click on the course in my courses
if I change the "My Courses" setting to "Moodle View" it works

Do you know what could cause this

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

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 2 months ago #2 by Justin
Hi

Just to give you an update, I decided to delete my test site and re-install from scratch, as of yet I have not managed to replicate this error, so I am not sure anymore what could have caused it.

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

More
8 years 2 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic XML-RPC Error (404): Class 'condition_info' not found
Hi.

Thanks for the bug report.
I checked the code, and I saw that condition_info cannot be used anymore, as Moodle has changed how it works.
Joomdle uses this calls in one function, so will need to update this to work with newer Moodle versions. I will look into it and get back to you when I find a fix.

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

More
8 years 1 month ago - 8 years 1 month ago #4 by Antonio Durán
Replied by Antonio Durán on topic XML-RPC Error (404): Class 'condition_info' not found
Hi.

I looked into this, and I guess you did not run into the problem because you did not test with a conditional activity with some specific settings.
In case you want to change the code yourself before we release a new version, it's quite easy.
Edit file: moodle/auth/joomdle/auth.php
Function: get_course_mods
Change:
Code:
$ci = new condition_info($mod); $resource['completion_info'] = $ci->get_full_information ();
by:
Code:
$cm2 = $modinfo->get_cm ($mod->id); $resource['completion_info'] = $cm2->availableinfo;

Thanks again,
Antonio
Last edit: 8 years 1 month ago by Antonio Durán.

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

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago - 8 years 1 month ago #5 by Justin
Hi Antonio

Thank you, the coding you gave me removed the error message.

But now there is something new, please find attached a screenshot.
The student can purchase an additional exam attempt via Hikashop which is working, but the wait it now displays is weird, it use to be that if a person was not in a group the items were simply invisible, now even if I add "hidden" to the restrictions in moodle they do not hide.

Also in Moodle I have all the items listed under the exam category, in Joomla is shows all the items in a random order in the intro category, and once you enrol a student into the specific group the item moves from "into" to "Exam" but ordered correctly this time.

Never Mind it seems the display error was caused by the Moodle cron not running
Last edit: 8 years 1 month ago by Justin.

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

More
8 years 1 month ago #6 by Antonio Durán
Replied by Antonio Durán on topic XML-RPC Error (404): Class 'condition_info' not found
Thanks for the feeback. Is everything working now then? It seems screenshot did not arrive.

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

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago #7 by Justin
I removed the screenshot since it was no longer relevant, yes all is working correctly now.
Thank you for all the amazing ongoing support.

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