Joomdle 2.x Installation

Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle

  • npiiadmin
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 3 months ago #1 by npiiadmin
Hi

Last saturday i upgrade to PHP8 my host server.

Everything works fine sunday and monday, but today im having the error Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle during system check in joomla.

Im double check url and follows forum recommendations but nothing works.

Attachments:

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

  • npiiadmin
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 3 months ago #2 by npiiadmin
To be clear i upgrade php 8 in my hosting but i left php 7.4 as active version.

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

More
3 years 3 months ago #3 by Antonio Durán
Hi.

This message means that Moodle cannot connect to Joomla for some reason.
Please check raw reply in Moodle to see if it gives you any more info:
moodledata_folder/temp/joomdle_system_check.xml
www.joomdle.com/wiki/System_health_check#Raw_replies

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

  • npiiadmin
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 3 months ago #4 by npiiadmin
both file joomdle_system_check.xml and joomdle_system_check.json are empty.

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

  • npiiadmin
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 3 months ago #5 by npiiadmin
I found this one in joomla folder.

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>joomdle_auth</name>
<value>
<int>1</int>
</value>
</member>
<member>
<name>mnet_auth</name>
<value>
<int>1</int>
</value>
</member>
<member>
<name>joomdle_configured</name>
<value>
<int>1</int>
</value>
</member>
<member>
<name>test_data</name>
<value>
<string/>
</value>
</member>
<member>
<name>release</name>
<value>
<string>2.0.4</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>

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

More
3 years 3 months ago #6 by Antonio Durán
If the file in Moodle is empty, that means that when Moodle tries to connect with Joomdle in Joomla, it is getting an empty reply.

As for why that happens....it can be caused by many things, like some security software in Joomla, DNS or SSL problems, etc.
If you have shell access to the Moodle server, you can try using curl/wget to fetch the web services URL, to see if that provides any more info, like this:
wget site.com/index.php?option=com_joomdle&task=ws.server&format=xmlrpc

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

  • npiiadmin
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 3 months ago #7 by npiiadmin
Hello

I restored the backup before the web services event and the web service passed verification. Everything seems to work fine. I will be monitoring the site to see if this error occurs again.

I really don't understand why the web service stops working. Below is a timeline of this event...

1. Maintenance mode enabled on both the Mainpage and Moodle sites.
2.I make a backup of the main site.
3. Proceed with the upgrade from Joomla 3 to Joomla 4.
4. The update is 100% complete. No error occurs.
5. I tried to disable maintenance mode but for some reason joomla 4 never saved the changes. Try to fix the problem by checking the security and permissions of folders, database, etc. Nothing works.
6. I decide to restore the backup from step 2.
7. Once the restore is complete, I run some tests and everything works fine. In this step I only check the communications between joomla and moodle with a user account. I never check the System Check option in Joomdle. (That was my mistake).
8. The site has been available to users since last Sunday (January 15). Every type of transaction happens without any problem, including the creation of new user accounts and new sales transactions.
9,Yesterday, Tuesday the 17th, new users report that they can see the course in the list, but Moodle asks to enter the credentials again. Once the credentials are entered, Moodle displays the invalid credentials message.
10. This is the point when I check Joomdle Status Check for the first time and see the error.
11. Tonight, after struggling for a solution, I decide to reinstall the backup specified in step 2. I know I'm missing two days worth of transactions, but I'm able to sync with PayPal history. On the other hand, new users will sync from moodle to joomla.
12. Once the backup was restored, everything worked fine. Joomdle system verification shows all green check marks.

In this restore, I use the latest database but the system check fails, if I use the restored database from the backup, the system check passes perfectly

Any idea???

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

  • npiiadmin
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 3 months ago #8 by npiiadmin
Thanks for your comments.

I will be checking your suggestions and i will update any findings that explain this situation.

Thanks for your support.

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

More
3 years 3 months ago #9 by Antonio Durán
Well, if one backup works and the other does not, it is clear that something is different. I cannot tell you what it is from here....What you can do is try restoring the non working copy on a temp site, then changing URLs and tokens and see if it works there...

> I tried to disable maintenance mode but for some reason joomla 4 never saved the changes

Well, that would explain the empty response from Joomla, as it won't return any info if the site is in maintenance mode.

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

More
2 years 5 months ago #10 by GABRIELE ROVEDA
Greetings,
I have the same problem too. I followed all the instructions and advice I found in these posts, but the problem persists.
I have both joomla site and moodle site installed on the same Aruba server with Plesk.
Joomla is 4.4 with PHP 8.1.25, while Moodle is version 3.11.1 with PHP 8.0.30.
Joomla uses a top-level DNS, while the Moodle site is a local site that Plesk installs when you want to test. However visible o-line.
On Plesk server I installed Imunify360 for firewall, malware, etc.
The error always appears. But in Joomdle I see the Moodle users loaded and in the Shop the only trial course that I created in Moodle.
What do I do? Should I move forward or should I resolve this issue first? And if so can you help me? Thank you.

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