Conditional activities: Re: ActivityLocking v 2.4 beta

Conditional activities: Re: ActivityLocking v 2.4 beta

by Nicola Bennett -
Number of replies: 2

Hi Bernard,

Sorry I didn't reply back in November but the problem seemed to rectify itself.

We are now in the process of moving our site onto a new server using Moodle version 1.6.3

I am using using Activity Locking version 2 with this but getting the previous problem I had, error message on my homepage:

Fatal error: Call to undefined function: isunlocked() in /mnt/drbd/home/promethean/prometheanlearning.com/www/course/lib.php on line 829

Are these 2 versions compatible?

If not where can I download a later released version of AL?

Thanks
Nicola.

Average of ratings: -
In reply to Nicola Bennett

Fatal error: Call to undefined function: /www/course/lib.php on line 829

by Nicola Bennett -

Hello,

I've now found a workaround for this:

On line 829 of lib.php I have used the following code instead:

if ($isteacher or ($mod->visible and ($mod->visiblewhenlocked)) or $isteacher) {

I got this code from the lib.php of a later beta version of Activity Locking. It seems to sort out the problem.

Although it would be great if someone could confirm that by using this code I'm not upsetting anything else. I doesn't seem to.

Thanks
nicola

In reply to Nicola Bennett

Re: Fatal error: Call to undefined function: /www/course/lib.php on line 829

by Bernard Boucher -
Hi Nicola,
it is good that you auto-answer yourself wink

The naming of activities locking is confusing. Can you confirm from that table precisely wich version you are trying to use with Moodle 1.6.3 ?

I hope it may help,

Bernard