I see what a lot of other people are doing, and they are simply creating a new instance of Moodle, backing up their old copy and then restoring it to the new one. How does one do this? Apparently, I "backed up" the data using the Backup function in 1.6. How do I make it happen in 1.8?
I installed 1.8 by downloading it manually, since the CVS didn't work for me. My PHP and MySQL are current. I'm running a remote Linux box running OpenSUSE 10.1 x64. Thank you.
http://docs.moodle.org/en/Backup_restore
(or http://docs.moodle.org/en/Upgrade )
If you use backup/restore tool you need to backup and restore all courses and front page separately. Otherwise use upgrading.
I was able to CVS and try to upgrade Moodle. I got pretty far but now I get this error:
Module "exercise" (2007020200) could not be installed. It requires a newer version of Moodle (currently you are using 2006050510, you need 2007020200).
Even though I'm in the middle of attempting to upgrade to the latest! What can be the problem? Thanks.
Module Exercise is not a standard module and you should delete it before upgrading. If you are still able to start from moodle 1.6 go to Administration -> Configuration -> Modules and delete it & delete the Exercise subfolder from folder mod. If you have started upgrading and can't come back to moodle 1.6 you should delete it from database (from table mdl_modules and all tables starting with mdl_exercise) for example with phpmyadmin.
It may be possible to install module exercise to moodle 1.8 too but then you need to take course backups, install module exercise after upgrading again and try to restore exercises from course backups. However current moodle 1.8 "does no like" non standard activities and they may cause a lot of trouble later (for example with backup/restore/upgrading).
Here's what I'm doing:
- Verify Exercise module doesn't exist in the mod folder nor admin>config>modules
- Fire up PuTTy:
cd /srv/www/htdocs/university2/
cvs -d:pserver:anonymous@uk.cvs.moodle.org:/cvsroot/moodle login
cvs -z3 -d:pserver:anonymous@uk.cvs.moodle.org:/cvsroot/moodle co -r MOODLE_18_STABLE moodle
cd moodle
cvs update -dP
cvs -Q update -dP -r MOODLE_18_STABLE
- Direct browser to http://university2.domain.lcl/admin
- Stare at this and do nothing:
Module "exercise" (2007020200) could not be installed. It requires a newer version of Moodle (currently you are using 2006050510, you need 2007020200).
What is the probability of it working if I update to version 17 first, then 18? Thats all I can think of at this point.
Module "exercise" (2006091201) could not be installed. It requires a newer version of Moodle (currently you are using 2006050510, you need 2006080900).
CH,
This is a very puzzling phenomenon which seems to have everyone stumped, so far. As I look over earlier posts mentioning this module, I find a fairly recent one from Martin Dougiamas (http://moodle.org/mod/forum/discuss.php?d=69176#p310671) that says it is in CVS but disabled by default.
Is it possible that a developer has, accidentally or otherwise, reversed that default? Doesn't seem too likely, because I would expect to see a flurry of posts from other Moodlers saying, "The same thing happened to me." But it's a thought. Maybe it's such a recent change that no one else has tried to upgrade since it happened.
I don't know enough about CVS to be able to look at it and see if the default has changed. I might try downloading 1.6 and try upgrading and see if it happens to me, someday when I have time, if no one else solves the riddle in the meantime.
RLE
Thanks John,
I selected wrong words - and I have a "selective" memory...exercise was indeed not replaced but as far as I can remember Assignment was made better and exercise "dropped" for lack of maintainers. I may be wrong as well...Errare humanum est
MK,
- Funny, it occurred to me also that it could be the database, but then I thought if that was the case it would have appeared in the list of which CH said, "There is no Exercise module in the list (within the admin/config/modules page)." Shows how much I know. What do you think?
- Just wondering whether the property of being hidden by default that JI mentions is different from the property of being disabled by default that Martin Dougiamas mentioned, as quoted in my previous post in this thread.
JI,
Thank you for your detailed response. It looks like we either have a difference of opinion as to what disabled means, or whether disabled is the right word to describe the status of this module. I dare not say more!
Everyone,
The real question, which I raised in an earlier post, is whether the status of the mod in the CVS system, be it called hidden or disabled, may have been changed, perhaps accidentally, causing CH's problem with upgrading from 1.6 to 1.7 or 1.8 via CVS of the attempted loading of the mod in spite of its apparent absence from the existing installation (1.6) and the lack of any request to do so, either separately or as part of the overall upgrade.
(If my feeble attempt to summarize the problem in a single sentence is confusing, pls see earlier posts [not just mine] in this thread.)
RLE
Because of this version error
Module "exercise" (2006091201) could not be installed. It requires a newer version of Moodle (currently you are using 2006050510, you need 2006080900).
it could be easier to upgrade moodle to new version (1.6-1.7-1.8) without cvs and without exercise (and without problems) from http://download.moodle.org/
Is there some reason WHY exercise still remains with standard modules in cvs ? It could be downloaded as all other non standard modules as well.
I suppose I could try to backup my users and courses, btu when I loaded a fresh version of 1.8 I didn't find a place to import both users and courses.
Create one course and from course administration menu select Restore - Upload a file (course backup file) - Browse/Select and Upload this file - Restore - Yes - Continue - Restore to New course (with user data that you have included to your previous course backup file) - Continue - Restore this course now! - Restore completed successfully Continue and it's there
...but you must do this for all courses and front page separately if you use course backup/restore.
Permissions issue?