Activity Locking - Problems!! Help!!

Activity Locking - Problems!! Help!!

Karl Kennedy發表於
Number of replies: 1

Hi Everyone!

Ok, here's the problem. I installed activity locking where it updates some of the core Moodle files. However I've since realised that there's maybe a bug with it in that when locking other activities that are dependant on another beoing completed, even after that activity is completed, the others still are locked!!

So..... I tried various fixes and things I found throughout the forums, none of which worked! (using Moodle 1.8). I then thought that the activity locking for 1.9 may have a few updates which could help, so i backed up all necessary files then added the new ones.....again didn't work! So i changed them all back the old and everything was the same again...however now i've got ANOTHER problem!!!

It now says in notifications "Version mismatch: block activity_locking can't downgrade 2007101100 -> 2005092800!" and i can't get rid of it!! The version within the block php file is the correct version, the older one but the newer version is in mdl_block. if i change it to the old version again, the notifications page is then just blank!!! aaaghh! Is there somewhere else where i can remove from Moodle how it knows i've had a newer version in there??? How does it know this when all files are the old version and any tables are still the same too??!! Very weird!!!

Any ideas, anything at all will be much appreciated!!! Thanks!

Karl

評比平均分數: -
In reply to Karl Kennedy

Re: Activity Locking - Problems!! Help!!

Bernard Boucher發表於
Hi Karl,
I am sorry that you got problems with activity locking. I hope, as specified in the documentation, you did'nt installed it on a production server at first time.

From that table can you specify what version of activity locking you have installed first because no version exist for Moodle 1.8.

All Moodle modules and blocks in general and activity locking in particular are not downgradable.

Three scenarios here :

1 - If as stated you did only a try on a test server, better on localhost with windows installer, check first on that table wich version of activity locking are available and then choose the appropriate version of Moolde. If you respect that it should work first time. After restore your course on the test server.

2 - If you are on your production server, I hope you did full backups before installing activity locking. If you have backups, first do what I suggets in #1 above and check if yours course works fine. Then flush completly your production server ( php moodledata and all mysql tables ) and do a complete reinstall.

3 - If you are on a production server without backups: do backups immediatly if possible. Do #1 and #2 after. If not possible try with phpmyadmin to delete the activity locking record from mdl_block table: you should see you restricted version date 2005092800 there. Goto admin or notifications page and it should install with errors messages but working anyway.


Let me know your progress on that.

I hope it may help,

Bernard