joomdle components issue

  • Jordan Wolff
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 6 months ago #1 by Jordan Wolff
joomdle components issue was created by Jordan Wolff
I am having some issue with everything working correctly, right now I am using components of joomdle in joomla to display information from moodle.

Please go to this page. restaurantbarinstitute.com/rbi-courses

As you can see it is pulling all the courses from moodle, but if you click on bartender
restaurantbarinstitute.com/rbi-courses/d...fication/2-bartender ... I am getting this error: XML-RPC Error (0): Invalid external api response: cost (Invalid external api response)

I then copied the course and created a new course called bartender b, restaurantbarinstitute.com/rbi-courses/d...ation/31-bartender-b , then click on "course topics", it is not showing any of the topics at all.

I got one course that works perfectly, restaurantbarinstitute.com/rbi-courses/d...ion/29-server-copy-1 , then when you click on topics it displays all the topics. restaurantbarinstitute.com/rbi-courses/t...ion/29-server-copy-1

I do not get why only one is working, I got this one to work by backing up the server course in moodle then restoring it, it worked perfect, then when I did it with bartender, it did work the same.

I got this page hook up by creating a new menu item, then selecting joomdle, then courses, to display all course.

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

More
14 years 6 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: joomdle components issue
This seems to be a problem with SEF. Not sure why it happens, though.

Can you disable SEF to confirm it? I will test it locally when I have some time and let you know.

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

  • Jordan Wolff
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 6 months ago #3 by Jordan Wolff

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

More
14 years 6 months ago - 14 years 6 months ago #4 by Chris
Replied by Chris on topic Re: joomdle components issue
I had a quick look at the various courses and see there are four scenarios of results:
  1. show the courses and when you click on topics there are no results (all courses except those described below)
  2. show the course and when you click on topics you see the topics (ex server copy 1 - only this course)
  3. immediate XML-RPC error and nothing else displayed (ex. click on bartender - only this course)
  4. immediate XML-RPC error but still shows a link to course topics (ex. bartender copy 1 and dishwasher - only these two courses)

What is interesting is that the url of each course is consistent ie even though there are different scenarios, above, their urls are the same except for the course ID. Specifically, bartender, server copy 1, bartender copy 1, all come from the same course category. Similarly, courses show links to topics but show a blank page when you click through come from various course categories. Thus there doesn't seem to be a logical path that causes the problem. So if I change only the course id in the url and nothing else the error appears or does not appear.

/index.php?option=com_joomdle&view=detail&cat_id=7:position-certification&course_id=29&Itemid=53


to

/index.php?option=com_joomdle&view=detail&cat_id=7:position-certification&course_id=21&Itemid=53


This leads me to wonder if there:
- is a problem with the database / database data or
- if particular html codes in the course information / topics that are "getting in the way". But this is hard to tell when we cannot see the html.

I would suggest a few things:
1) provide a link to moodle directly to look at the courses
2) create a dummy course with text only and a few topics to see what happens
3) copy the course server copy 1 to another course to see what happens since this is the only truely 'working' course of the lot
Last edit: 14 years 6 months ago by Chris.

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

More
14 years 6 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Re: joomdle components issue
As Chris suggest, this includes some problem in the data:
1 & 2) No topics: most probably you did not define topics for the courses that don't show them (you need to edit the description of each topic for them to show)

3) You set acost of non-numeric value for the course (most probably you added the paypal/joomdle enrol method and did not set a price)

4) I don't know why you get this error, but it also seems to be a problem with data specific to that course, as it only happens with it.

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

  • Jordan Wolff
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 6 months ago #6 by Jordan Wolff
Replied by Jordan Wolff on topic Re: joomdle components issue
Would it be easier if I give you or Chris access to the Moodle part of the site to see what the potential issue is and find the correct solution?

I will add topics to the courses now and see if that changes anything

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

  • Jordan Wolff
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 6 months ago #7 by Jordan Wolff
Replied by Jordan Wolff on topic Re: joomdle components issue
OK, I found a solution to on of the the problems.

immediate XML-RPC error and nothing else displayed (ex. click on bartender - only this course)

The problem was being caused when I set the price in the joomdle enrollment, I was making it 89.00, it needed to be just 89.

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

  • Jordan Wolff
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 6 months ago #8 by Jordan Wolff
Replied by Jordan Wolff on topic Re: joomdle components issue
I found a solution to another problem...

show the courses and when you click on topics there are no results (all courses except those described below)

My thought is the component was pulling the name of the topic, but it is actually pulling the information from the summary of the topic.

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