Forum Problems Installing LAMS: Moodle/ Lams Integration: "lamstwo php not readable"


 
You may request notification for Moodle/ Lams Integration: "lamstwo php not readable".
Search: 

1: Moodle/ Lams Integration: "lamstwo php not readable"
03/18/09 01:00 AM
[ Reply | Forward ]
Hi

I am trying to integrate Moodle and Lams. Individually both are working fine. I have followed instructions for integration and get to the stage of going to http://localhost/admin/ to check the setting up of LAMS tables and this is the message I get:

Module lamstwo: C:\Documents and Settings\c9038281\Desktop\Coaching Business\Opensource Software\LMS Software\Moodle\MoodleWindowsInstaller-latest-19\server\moodle/mod/lamstwo/version.php was not readable.

Can anyone advise of the likely issue here, and what to do about it?

C:)

Posted by chris mccomb

2: Re: Moodle/ Lams Integration: "lamstwo php not readable"
In response to 1 03/18/09 04:09 AM
[ Reply | Forward ]
What do you get if you go to http://localhost/mod/lamstwo/version.php? Page not found (problem) or a blank page (no problem)?

At first sight it looks like a path problem - spaces, or the wrong type of slashes. You could also double check the file is actually there and not a hidden file (right click -> properties).

The Apache error log might have something interesting to say about the error as well. The only thing I can think of to suggest is try installing to a simpler path without spaces.

Posted by Jun-Dir Liew

3: Re: Moodle/ Lams Integration: "lamstwo php not readable"
In response to 1 03/18/09 04:42 AM
[ Reply | Forward ]
Thanks

If I click on that link, it says: "object not found" I assume this means a problem.

Does this mean it is a path problem?
C:)

Posted by chris mccomb

4: Re: Re: Moodle/ Lams Integration: "lamstwo php not readable"
In response to 3 03/18/09 04:56 AM
[ Reply | Forward ]
Yep, I think both the Moodle script and your web server can't find the file. Are you using IIS? 'object not found' doesn't sound like an apache error message. I don't remember the default IIS error messages.

It's a path problem, but why? is the question. I'd say look at the IIS/web server logs, but not being familiar with IIS I can't say where. You could give reinstalling Moodle a try, but we're really stabbing in the dark without looking at the web server log.

Posted by Jun-Dir Liew

5: Moodle/ Lams Integration: "lamstwo php not readable"
In response to 4 03/18/09 05:41 AM
[ Reply | Forward ]
I think I figured it out. For some reason I have lamstwo folder inside another lamstwo folder. So, path obviously wrong. Deleted the dud folder and now LAMSv2 is configured.

Only issue now is when I click on openauthoring tool from moodle, it comes up with error:

"Login Failed - failed to fetch user info from the third party server"

Any ideas appreciated

C:)

Posted by chris mccomb

6: Re: Moodle/ Lams Integration: "lamstwo php not readable"
In response to 5 03/18/09 05:44 AM
[ Reply | Forward ]
7: Re: Re: Moodle/ Lams Integration: "lamstwo php not readable"
In response to 6 03/18/09 05:55 PM
[ Reply | Forward ]
Thanks

It is sorted. I checked the integrated server settings via LMS. I had <moodle server> set as the name of the moodle database rather than the name of it "moodle".

Thanks Again, she is up and running.

C:)

Posted by chris mccomb

8: Moodle/ Lams Integration
In response to 7 03/18/09 06:10 PM
[ Reply | Forward ]
All was working fine until smarty pants (me) decided that I would see what happened if I deleted the LAMS module. I still have LAMS v2 though.
Now when I tey to go back into the LAMS sequence I originally created in version 2, it doesn't work.

"All the LAMS module settings have not been set up!
Please contact your administrator." Seeing as though that is me, this is a problem! Is there anyway to correct this?


2. I deleted Lams 1 because when I tried to create a course using LAMS format it wouldn't work. I got a message indicating that there was a login failure. I haven't got this message now because of my deletion above. Any logical explanations?

C:)

Posted by chris mccomb

9: Re: Moodle/ Lams Integration
In response to 8 03/18/09 06:57 PM
[ Reply | Forward ]
Hi Chris,

I think that's what Daniel Schneider mentioned something similar here.

But I don't really know why this would be. Jun-Dir?

Have you tried restoring the lams folder but instead of deleting it just hiding the activity? That's what we have done in our lams-moodle demo site.

Thanks,

Ernie

Posted by Ernie Ghiglione

10: Moodle/ Lams Integration
In response to 9 03/18/09 09:55 PM
[ Reply | Forward ]
Thanks Ernie

How do I go about restoring the folder. I went to the Moodle Mod folder and see that LAMS folder is still there. lams.php is still in lang folder also. According to moodle docs, it says that unless you delete these folders manualy (as well as deleting LAMS in moodle), the system will autmatically resotre the module next time I access administration. Well, so far no good!

Thanks for the link to Daniel. I might also try contacting him to find out how he made the restore if you are out of answers. Any further suggestions i.e. about restoring LAMS folder.

C:)

Posted by chris mccomb

11: Re: Re: Moodle/ Lams Integration
In response to 9 03/19/09 04:19 AM
[ Reply | Forward ]
The reason is like Daniel mentioned, that the role capabilities added in 1.8 (I think it was 1.8) are linked to the lams module. Naturally, in the lamstwo module we adhere to the roles. So if you delete the lams module, then the roles themselves go *poof*. Kind of a dependency there.

Posted by Jun-Dir Liew

12: Moodle/ Lams Integration
In response to 11 03/19/09 04:27 AM
[ Reply | Forward ]
Thanks

I heard back from Daniel. He suggested an upgrade, or copy code from (a newly downloaded version of the same Moodle) to solve the problem. I will give one of these a try. Let you know how it goes.

C:)

Posted by chris mccomb

13: Moodle/ Lams Integration FIXED!!!
In response to 12 03/24/09 11:49 PM
[ Reply | Forward ]
Thought you might like to know how I fixed the issue of deleting the original LAMS from Moodle (rendering LAMS 2 useless).

1. All you need to do is download the LAMS moodle module from the LAMS site (unless you already have the unzipped file on your computer)

http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-moodle

2. Unzip the file and copy over the LAMS2 folder into Server/Moodle/Mod.

3. As well as this there should be a Lams2.php file. Copy this to server\moodle\lang\en_utf8

4. Now paste http://localhost/admin to create tables (localhost because on my own machine. Different if on a server)

5. Now go to admin and click on LAMS settings. Paste the Url for the LAMS server. In my case it is http://localhost:8080/lams. Enter 'moodle' for the rest of the values (make sure these are the same as those in LAMS itself. (goto the LAMS server, login as admin and click on systemmngt. From there click on maintain integrated servers. You will see the corresponding values there)

6. Do the same for LAMSv2 and this time make sure you validate the settings.

Voila! You should now be able to access LAMSv2 authoring!

I thought that wasn't a bad effort for a newbie!

Christiaan c:)

Posted by chris mccomb

14: Re: Moodle/ Lams Integration FIXED!!!
In response to 13 03/25/09 07:38 PM
[ Reply | Forward ]
Thanks for sharing, Chris... glad to hear this is fixed :-)

At any rate, I'll add this to our to-do list to check.

Thanks,

ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to Problems Installing LAMS