Joomdle 1.0 Installation

"XML-RPC Error (404): Unknown Error"s after Joomdle v1.02

More
10 years 7 months ago #1 by robf
Hi there,

I finally got round to upgrading to Joomdle v1.02 yesterday.

First I changed the name of the original auth/Joomdle and enrol/Joomdle folders (I wasn't brave enough to just delete them) and replaced with the upgraded versions, then checked moodle notifications before checking the functions list to upgrade the Joomdle web service. I then upgraded the extension in joomla and took my moodle site off maintenance mode.

I got a 404 error for web services on the health check, so I went into my file server and deleted the original auth/Joomdle and enrol/Joomdle folders, deleted the Joomdle web service in moodle, created a new one, renewed the moodle authentication token (on the Joomdle configuration panel in joomla) and the error went away...

But, when I put my moodle site back into maintenance mode, my site crashed when I went onto the moodle content page (a Joomdle wrapper), reading 'XML-RPC 404 error unknown' (whereas I was expecting my site maintenance message to appear). I turned debugging on moodle, and it was saying that I had duplicate enties for admin category name: backups (mostly).

I tried to repeat the installation process again, installing the joomdle component in Joomla first, then deleting the auth/joomdle folder and replacting with the new. Helath check showed the same 404 error for webservices, so I responded in the same way as above, and the error went away again.

Still the same issue when putting the site into maintenance mode, and now I notice that when I click on the Joomdle calendar block, I get the same white screen

The latest debugging message I'm getting from moodle says the following:

Duplicate admin category name: backups
line 949 of /lib/adminlib.php: call to debugging()
line 162 of /admin/settings/courses.php: call to admin_category->add()
line 6624 of /lib/adminlib.php: call to require()
line 19 of /admin/settings.php: call to admin_get_root()

Notice: Undefined variable: showsidepre in /home/content/71/11676871/html/theme/joomdledemo/layout/default.php on line 16
Notice: Undefined variable: showsidepost in /home/content/71/11676871/html/theme/joomdledemo/layout/default.php on line 18
Notice: Undefined variable: showsidepost in /home/content/71/11676871/html/theme/joomdledemo/layout/default.php on line 20
Notice: Undefined variable: showsidepre in /home/content/71/11676871/html/theme/joomdledemo/layout/default.php on line 20
Notice: Undefined variable: hascustommenu in /home/content/71/11676871/html/theme/joomdledemo/layout/default.php on line 23
Skip to main content
Notice: Undefined variable: hascustommenu in /home/content/71/11676871/html/theme/joomdledemo/layout/default.php on line 59
Notice: Undefined variable: hasnavbar in /home/content/71/11676871/html/theme/joomdledemo/layout/default.php on line 63


(On developer debugging, I'm also getting "get_context_instance() is deprecated, please use context_xxxx::instance() instead" and a few of these: "Navigation node intersect: Adding a node that already exists" for - backupgeneralsettings, importgeneralsettings, automated, coursemgmt, addcategory, restorecourse, coursesettings, courserequest)

Please can you help! I'm using Joomla! 3.4.3 and Moodle 2.7.2+

Many thanks,


Rob

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

More
10 years 7 months ago #2 by Antonio Durán
Hi.

You can try using a different teheme, as the joomdledemo one is quite old, and it may give problems with recent Moodle versions.

As for the others erros: I have never seen them, so I don't know whay may have happened. Maybe this was caused by leaving renamed joomdle folder in auth/, as this is not to be done (Moodle will see the renamed folder and try to install)

Can you paste the 404 error with debugging enabled? Maybe that gives some idea...

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

More
10 years 7 months ago #3 by robf
Hi Antonio,

This is what I've got:

XML-RPC Error (23604497): Can not find data record in database table course. | DEBUG INFO: SELECT id,category FROM {course} WHERE id = ? [array ( 0 => 2, )] | ERRORCODE: invalidrecord

Thanks,

Rob

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

More
10 years 7 months ago #4 by Antonio Durán
It is saying the it can't find course with id=2.

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

More
10 years 7 months ago #5 by robf
Sorry, I know this is going so sound silly... but I don't have a course with id2... only 6 and 7... why does it think this all of a sudden? Can i fix it?

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

More
10 years 7 months ago #6 by Antonio Durán
Sorry, but I have no idea why that error is showing.
It seems it is trying to get info about a non existant course, but I don't know why.

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

More
10 years 7 months ago - 10 years 7 months ago #7 by David Laverick
Hi Antonio,
I'm getting a similar problem. We have the calendar module showing in the right module position. Clicking on any calendar date you get this error:

XML-RPC Error (23604497): Can not find data record in database table course. | DEBUG INFO: SELECT id,category FROM {course} WHERE id = ? [array ( 0 => 33, )] | ERRORCODE: invalidrecord
If you are in a course with id 81 and click on any date, you get the error. Note the ID doesn't match.

If you have "My Events" open in the main content window, with the calendar open in the right module position, clicking on the dates works fine.

Just to add to this info, the URL associated with the calendar cell is the same in each case and ends with &mtype=event&id=33&use_wrapper=1&Itemid=188&day=22&mon=9&year=2015

It looks like the event ID is 33 not the course ID

UPDATE
I just spotted that the Itemid in the URL is changing sometimes it is blank, sometimes it is 188 (as above) but it fails when the itemid is 187. I have tried manually entering the resultant URL to various random Itemid values and so far it seem to work OK for everything except 187, which is the one used when you don't have My events list (or any single event) open.
Not sure what itemid is in this context but hope you can shed some light on it.

I'm running Joomdle 1.0.2 Calendar 1.0 Joomla 3.3.3 and Moodle 2.8.6+

Thanks

Dave
Last edit: 10 years 7 months ago by David Laverick. Reason: Further diagnostic information added

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

More
10 years 7 months ago #8 by David Laverick
Hi Antonio,

Didn't want to add a further edit to that post, but I have narrowed it down further. It seems that Itemid in this context refers to the Joomla Menu item ID that is currently active. In our case the faulting itemid of 187 refers to the My Courses menu, which is a Joomdle mycourses menu type. This is the one place I would have thought it should work as you already have the connection with Moodle, so not sure why it fails to work here and only here.

I have fixed my problem by re-creating the Menu item, so it is exactly the same but now has a new Menu Item ID and it all works.

I hope this helps other finding the same error and perhaps helps you with the diagnostics.

Thanks

Dave

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

More
10 years 7 months ago #9 by Antonio Durán
Thanks for all the info, although I don't yet know what could be happeing. At least you have it working now :)

If understand it right, you no longer can replicate the error, as you deleted the menu items giving problems?
If you see the problem again and want me to take a look, please let me know and I will check it.

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

More
10 years 6 months ago #10 by David Laverick
Hi Antonio,

Sadly, the error is back. It only happens if you click on an empty date when you have a course open in the main content position. Even then it doesn't do it all the time, and as I have started to write this, I can't get it to do it again!

Here is a typical error message:
XML-RPC Error (23604497): Can not find data record in database table course. | DEBUG INFO: SELECT id,category FROM {course} WHERE id = ? [array ( 0 => 2, )] | ERRORCODE: invalidrecord

It looks like it isn't getting hold of the course ID. Could this be a session timeout issue perhaps?

Happy to do some more digging but it would be helpful if you can point me at the code files that would be relevant to this issue.

Thanks

Dave

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