Please Stuart can you post a link to the latest version of the activity locking module for Moodle 1.5 ? I'd really like to try this module but I can't find the right download... it's all for 1.6
Thanx in advance
I do have trouble:
I've put all the files in the right dirs, but now when I try to go to the admin page (admin/index.php) I get:
Fatal error: Cannot redeclare check_dir_exists() (previously declared in /my site/HTML/lib/moodlelib.php:6422) in /my site/HTML/backup/lib.php on line 86
Any ideas?
Restoring the original index.php was indeed the solution: no more errors now. Thanks Jens!
This fix also didn't work for me. I have commeted out the function as well and now when I try to access admin i get 'Error' - seven times and underneath that it says 'Block activity_locking tables could NOT be set up successfully!'.
Has anybody worked out how to get this working... thanks.
Simon
Hi Colin
There are no details. I am using the index.php that came with the mod. The error looks like this:
Error
Error
Error
Error
Error
Error
Error
Block activity_locking tables could NOT be set up successfully! |
I forgot to say that I can access the course and set locking as an admin user... I just can't access the admin area.
As a standard user I can't access the course, i get the following error:
Fatal error: Call to undefined function: course_parent_visible() in /home/ismwbayz/public_html/onlinecourse/moodle/lib/moodlelib.php on line 1418
I have tried a fresh install of moodle but i get the same results (although i can't use the 'Latest Stable Branch' because it dosen't install properly, not all the files seem to get uncompressed properly, not sure what's going on there... so have been using the 'Latest Reslease')
Ok... that 'Error' problem was to do with my sql... because of a failed installation attempt earlier some of the tables already existed, i have sorted that...
Now the problem is when a student trys to access the course they get:
<>Fatal error>: Call to undefined function: is_restricted_user() in /home/ismwbayz/public_html/onlinecourse/moodle/blocks/admin/block_admin.php on line 185All sorted.
Thank you.
Spoke too soon. Trying to open a certificate1.2al and get the following:
Fatal error: Call to undefined function check_locks() in C:\moodle\moodle\mod\certificate\view.php on line 84
I have seen in the forums that others have successfully got:
Certificate to open after feedback module has been completed
Feedback to be available after SCORM has been accessed
Too much head scartching has almost left me bald!!!
Help!!
Baz
Open C:\moodle\moodle\mod\certificate\view.php and look for line 84.
Around there, there should be about 4 lines of code, including the comments ///Activity Locking///
Delete them all.
Save.
You will need to use the patch files. The lib files included are only for 1.5.2.
Unfortunately, I don't know what parameters you need to use a command line for the patch command. Perhaps some more experienced Moodlers can help.
This is a common problem.
The hack you downloaded does not likely have the index.php file which is located in the root of your Moodle installation included.
If you have displayed "topics" on your front page, what you have experienced is common.
You need to add the following line to the top of your index.php file to correct the problem.
require_once($CFG->libdir.'/locklib.php');
This should do it.
Let me know if you have further troubles.
Jamie
I understand.
For future reference, the problem you're experiencing only exists with your front page. If you ever have to access the admin functions directly, you can simply type your moodle location followed by "/admin/index.php" into the address bar.
Again, I think if you changed your front page site settings to "List of Courses" it would temporarily relieve the problem. The problem comes in when you attempt to display topics.
Also, if you could post your exact error message it would be helpful in getting things fixed for you.
Good luck.
Stuart,
Using Moodle 1.53 and after using the code you sent me yesterday I'm having the following error when logging in as a user:
Fatal error (Never Good). Call to undefined function is_restricted_user() in ....\moodle\blocks\admin\blockadmin.php Line 185.
Will keep plugging way.
Baz
Hi,
I have now got Activity Locking working with 1.53, thanks!
It's not quite doing what I expected though. It is hiding, and not allowing access to activities that I set until the previous activities have been completed...ok...... once the previous activity is completed it is then allowing access but it is not un-hiding them on the course page, so the only way into the activity is through the 'resources' page.
Is there anyway to make it so the activitys are un-hidden as well as being unlocked?
Thanks