how to instal the schedular module on moodle

how to instal the schedular module on moodle

by Vitor Torres -
Number of replies: 8
hello everybody,

Sorry about my ignorance, but is the first time that i am working with moodle and all these applications. I know that for almost of you this can look like a stupid question, but can somebody help and tell me the steps since i have downloaded the scheduler module till this is completely installed on moodle (like where i sould paste some folders and files, etc).
I need to use this application cause i need some applications that can be used on moodle that provide the booking of an online laboratory. So if somebody knows a better application or another alternative, please tell me.

Thanks and Cheers,

Vitor
Average of ratings: -
In reply to Vitor Torres

Re: how to instal the schedular module on moodle

by Valery Fremaux -

Victor.

Installing a module is very simple when you have access to administration of your Moodle.

The pack contains a single directory structure which has the name of the module. Just unpack the zip under /mod of your Moodle distribution, in blocks if the plugin is a block. There are some other "plugin points" within the Moodle application that are commented on docs.moodle.org.

Once the files are in your system, you must generally browse to the administration/notifications menu to activate the logical installation of your module.

Once done, the module is ready to add within your courses. Some module do have some general parameters for tuning them globally. If they do, check that by the Modules/... menu.

For the Scheduler, would you mind waiting for the release 8 that should be published tonight ? There are some last unconsistencies (regression I found very last and a signaled bug on course restoring) that I would like you avoid to experiment.   

Cheers.

In reply to Valery Fremaux

Re: how to instal the schedular module on moodle

by Richard Webb -
I am having installation troubles as well. I downloaded the release 8 zip file from your WWW site, unzipped it, moved the scheduler folder into the mods folder and made duplicates of the scheduler/lang entries in the lang folder (because I am unsure if language files belong with the mod or in the regular place for language files and I figure there is no harm in having them both locations).

I then went to admin/notifications and the database was appropriately modified. I was able to create a schedule entry--so far so good! But I cannot add any slots to my entry. When I select either option to add slots, I get a page that is blank after the "Add Slots" title (which includes no footer).

I'm lost at sea here it would appear. Help would be appreciated.

Thank you,

Richard
In reply to Richard Webb

Re: how to instal the schedular module on moodle

by Valery Fremaux -

Richard, to check the exact situation, would you please turn up the debbuging level in Moodle, so you could catch the error message this page is giving. (Administration -> server -> debugging).

Some times the error message will not be visible in the browser, because it is embedded in an HTML tag construct. You might "see the source" of the page, go to the end and check if there is not an odd termination.  

In most cases, when a Moodle page does not finish, the majotr cause is a call to a function that does not exist, maibe because of a missing include, or because of using not a compatible version of some libraries.

Very important information for I can help you : which Moodle version ?  

We will fix that very fast I'm sure.

Valery.

In reply to Valery Fremaux

Re: how to instal the schedular module on moodle

by Richard Webb -
OK, I thought I had updated more recently but according to the admin page I am running Moodle 1.8.2+ (2007021520) with the default Formal White theme. I have attempted to view the page using the latest Firefox 2, Firefox 3.0b2, and Safari 3.0.4 browsers (I'm on a Mac so Internet Destroyer, I mean Explorer, is not an option).

I turned on ALL of the debugging options to start off. When I clicked on a previously created schedule I got the following message (every browser will ignore this syntax error as far as I know):

XML Parsing Error: mismatched tag. Expected: </tr>.
Location: http://millen.local/moodle18/mod/scheduler/view.php?id=252
Line Number 171, Column 3:

</table>
--^

Well, I figured I could fix that myself. But alas, I couldn't find a </table> in view.php. All other parts of Moodle seemed to be working flawlessly so I tried to create a new scheduler activity. When I chose to add a new one I got the following error message:

XML Parsing Error: mismatched tag. Expected: </input>.
Location: http://millen.local/moodle18/course/mod.php?id=2&section=2&sesskey=EREDXijRfV&add=scheduler
Line Number 162, Column 532:

<span class="helplink"><a title="Help with Default slot duration (new window)" href="http://millen.local/moodle18/help.php?module=scheduler&amp;file=defaultslotduration.html&amp;forcelang=" onclick="this.target='popup'; return openpopup('/help.php?module=scheduler&amp;file=defaultslotduration.html&amp;forcelang=', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><img class="iconhelp" alt="Help with Default slot duration" src="http://millen.local/moodle18/pix/help.gif" /></a></span> </td>

So, I decided to delete Scheduler and reinstall it. Even deleting it gave me an error!

XML Parsing Error: mismatched tag. Expected: </td>.
Location: http://millen.local/moodle18/admin/modules.php?delete=scheduler&confirm=1&sesskey=EREDXijRfV
Line Number 264, Column 3:

</div> <!-- end div containerContent -->
--^

It turns out I was getting those messages because I had turned the debugging to the DEVELOPER setting. I ratcheted it down a notch to ALL and things ran like they had before. So, here is the actual useful message related to my error:

Parse error: syntax error, unexpected $end in /Library/WebServer/Documents/moodle18/mod/scheduler/addslotsform.html on line 189

Looking at addslotsform.html, it is only 189 lines long so there was some closing line expected I would guess (yeah, you can tell I'm not a programmer!).

I hope the above is helpful!

Richard
In reply to Richard Webb

Re: how to instal the schedular module on moodle

by Valery Fremaux -

Richard,

this is a very valuable report and quite complete (some form of developer's dream) you made to me. Actually the last debugging setting is very "strong" and will not let any needle pass through. The first XML strictness error stops processing by your browser. I'm not lucky (or am too lazy) for having Mac version of browsers, working on Windows, and XML error reports on IE or Firefox are really uncomplete, quite unworkable. Yours seem much more interesting.

Why you cannot see much stuff in view.php is because I organized the code using includes for isolating modules. The faulty part may not be in view.php, although it is at first loaded through a view.php call.

Of course the errors you discovered could not be fixed by a simple reinstall, as they are present in the distribution. Some errors can be fixed so, specially when they are caused by old or obsolete code that has been not correctly upgraded.  

Anyway, this setting is too heavy just to watch an applicative error that would accept syntactic weaknesses. You were right setting it one level down, although you gave me enough information to tighen my HTML generation.

I will check all this at once and give you feedback very soon.

Cheers.

In reply to Richard Webb

Re: how to instal the schedular module on moodle

by Valery Fremaux -

Fighting for three hours against XML horror...  but I finally got it :

uncomplete  <?php opening §93 in addslotsform.php

do not perturbate weakly configurated php that accept short tags (<?). Must be fixed for complying Moodle strictness.

I'm usually not prone of this kind of error, but no one is perfect !

Fixed.

In reply to Valery Fremaux

Re: how to instal the schedular module on moodle

by Vitor Torres -
Hello Valery,

I am using moodle 1.9. By the way, when i have installed the scheduler module i just copied the scheduler folder to the /mod folder. I don't know if it was supposed to copy some lang file or something else for other folder, cause if it was supposed i haven't done that. Other question, to uninstall one block or module i just need to delete the proper folder, right?
So, just let put my doubts clear... i don't know if the scheduler module can fulfill all my goals, because what i need is a kind of a weekly calender, divided by hours, where the students can book the access to one computer (for example) and when this booking is done, any more student can't book to the same hour. Do you think the scheduler module still a good option? If not, do you advice me something else?

Cheers,

Vitor
In reply to Vitor Torres

Re: how to instal the schedular module on moodle

by Valery Fremaux -

Victor,

1. You do not need copying whatever elsewhere. Modules are self-sufficiant from Moodle 1.7, that is, the distribution structure now accepts language and help files in the module's package.

2. For uninstalling a module or a block, you FIRST uninstall it logically clicking on the "delete" link front of the module name in

admin -> Modules -> plugintype

Then only will you delete the module directory.

If you don't follow this exact procedure, the module still is recorded with the last known version number in Moodle. Still worse : all the instances of this module or references to these instances WILL NOT BE cleanly deleted from other parts of Moodle.

3. For you purpose, Scheduler could do the job, I think. I was thinking about offering alternative timeline views, so that easyer reference to a specific weekday could be available.

The slot can of course be understood as "a time token" for on person, not only for a face-to-face appointment !!

Valery.