[SolvedJ oomal 1.5.22 & Moodle 2.0 install errors

  • David Pottier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 4 months ago - 15 years 4 months ago #1 by David Pottier
New setup on both
dedicated IP with moodle as sun directory
Linux system

Install followed step by step

both of the following were tried with and without the trailing slash.

Using Config: Moodle URL: http:// domain.net/school

System Check returns: Moodle Network authentication is not enabled in Moodle

Using Config: Moodle URL: domain.net/school

System Check returns:

Top Line:
Code:
Warning: file_get_contents(domain.net/school/webservice/xmlrpc/server.php?wstoken=a2730ae87a29e7c6217aac9c7811ffa6) [function.file-get-contents]: failed to open stream: No such file or directory in /hsphere/local/home/domain.net/administrator/components/com_joomdle/helpers/content.php on line 208
Received empty response from Moodle

Decided to active one of the Joomdle modules as a test as it appeared I was getting a response even if empty. - choose Calendar

Calendar was visible on front end on the Joomla site with this code above it:
Code:
Warning: file_get_contents(domain.net/school/webservice/xmlrpc/server.php?wstoken=a2730ae87a29e7c6217aac9c7811ffa6) [function.file-get-contents]: failed to open stream: No such file or directory in /hsphere/local/home/domain.net/administrator/components/com_joomdle/helpers/content.php on line 142
Hope this helps, would like to get this working so I can test the system as the school's courses will go online soon. Access from our Joomla front end would be nice.

I had thought of using sub-domain for the school but it would be a shared IP and using a sub-dir allows us to use the parent site's dedicated IP. Thought the shared IP might cause issues for Joomdle.

Has this been tested? Or could this be the cause of the problem with Moodle trying to communicate with Joomla using the same IP?

David
Last edit: 15 years 4 months ago by Antonio Durán.
The topic has been locked.
More
15 years 4 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
Hi.

You always need http:// in front of URLs. It won't work without them.

As for your question: I don't think I understand you.
Just in case is this: Joomdle cannot work now with domain-to-folder mappings.
The topic has been locked.
  • David Pottier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 4 months ago #3 by David Pottier
Replied by David Pottier on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
The only reason I mentioned using the http:// and then not using it was that without the http:// I could see the Moodle calendar in Joomla, despite the errors seen on the back end and when using http:// nothing came from Moodle

If I understand you correctly - http:// moodle.domain.net (shared or dedicated IP does not matter) should work but http:// domain.net/moodle will not work

I have some security concerns with an educational system on shared IP as a dedicated IP is required for https connections but assigning a shared IP for sub domains is an issue with my hostint company


Will create a new sub.domain and give it a try.

Thanks
The topic has been locked.
More
15 years 4 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
Hi.

What won't work is having for example, moodle.domain.com, redirected to domain.com/moodle.

It will work with real subdomains, and it also works if you use domain.com/moodle and not the redirect.

Antonio
The topic has been locked.
  • David Pottier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 4 months ago #5 by David Pottier
Replied by David Pottier on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
Hi Antonio


My background it in IT. My first web site was #1601 in the world. I have worked with the PhP community since 2001 and have tested more CMS packages, components and modules then I care to remember. I currently have about 30 domains and a bunch more subdomains

I am not sure I understand you.

First you say that ": Joomdle cannot work now with domain-to-folder mappings."

What is http:// domain.net/school if not a domain to folder? :)

Does it specifically have to be http:// domain.net/moodle, or will using /school instead of moodle work?

There are no redirects or any planned. I was going to do another full installation of moodle with school.domain.net as the moodle root and using a separate dBase tables for this installation of Moodle.

However, if domain.net/moodle or in this case domain.net/school will work I will try to discover why it is not and why I am getting.

System Check returns: Moodle Network authentication is not enabled in Moodle

Moodle Network authentication is enabled in Moodle and the IP checked in XML-RPC hosts

The IP address **.***.160.10 represents a valid trusted host.
It is validated by the network: **.***.160.10/32

Enable web services Yes
Enable protocols xmlrpc

I had an Error writing to database in saving "Authentication / Joomdle " I turned debug on
Code:
Error writing to database More information about this error Debug info: Duplicate entry 'user_created-' for key 2 INSERT INTO esl_events_handlers (eventname,handlerfile,handlerfunction,schedule,status) VALUES(?,?,?,?,?) [array ( 0 => 'user_created', 1 => '/auth/joomdle/auth.php', 2 => 's:20:"joomdle_user_created";', 3 => 'instant', 4 => 0, )] Stack trace: * line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown * line 843 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end() * line 885 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw() * line 317 of /auth/joomdle/auth.php: call to mysqli_native_moodle_database->insert_record() * line 27 of /admin/auth_config.php: call to auth_plugin_joomdle->process_config()


Hope the debug code helps. Only too happy to run it and send you the output.
The topic has been locked.
More
15 years 4 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
Hi there.

Domain-to-folder: what I mean is "having" moodle in courses.domain.com, when really that is domain.com/courses.
I am no DNS expert, so I just don't really know how this works internally.

As for your config: it seems you are doing Moodle 1.9 and 2.0 configs at once?
In 2.0, xmlrpc hosts have no effect.


As for the mnet error: are you sure you used Joomdle R0.41 in Moodle side? The error you report seems like a combination of different joomdle versions on each side.
The topic has been locked.
More
15 years 4 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
BTW, no one reported any database errors when saving config, so this may be a specific issue in your installation...
The topic has been locked.
  • David Pottier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 4 months ago #8 by David Pottier
Replied by David Pottier on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
Antonio

"having" moodle in courses.domain.com, when really that is domain.com/courses.

That would take a redirect that would confuse most systems. :)

My installation is fresh. I started on testsite.com/joomla then added testsite.com/joomla/moodle

Joomla is 1.5.22 and Moodle 2.0. I then installed .41 Joomdle, obtained the same day from your site.

I had issues so removed Joomdle, deleted the tables, began again and followed each step in the wiki pages.

I was just looking at the role 'web service' and noticed that "Create new blog entries" was set to yes. Not something I had done. I reset the Web Service and using advanced config gave permissions to only XML-RPC protocol and View discussions

Not sure if this is part of the reason for System Check returning "Moodle Network authentication is not enabled in Moodle"

From what I can see all is correct so am not sure why I'm getting this failure.

The "connector" account exists in Joomla, Moodle and Joomdle

They have to be talking to each other.

Any suggestions greatly appreciated

David

David
The topic has been locked.
  • David Pottier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 4 months ago #9 by David Pottier
Replied by David Pottier on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
Antonio

System Check shows: Moodle Network authentication is not enabled in Moodle

In Joomal: Added mod_joomdle_courses

Moodle courses showed up on the Joomla site

Selecting a course loaded the Moodle site and returned

mnet is disabled
More information about this error
Selecting: CONTINUE
took me to the moodle site /school

Searched the wiki for mnet but no result
The topic has been locked.
More
15 years 4 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomal 1.5.22 and Moodle 2.0 install errors
Are you sure mnet auth plugin is enabled?

Everywhere it says it is not.
The topic has been locked.