Version mismatch: lesson can't downgrade 2005063000 -> 2005060900 !

Version mismatch: lesson can't downgrade 2005063000 -> 2005060900 !

by mike alfred -
Number of replies: 5
Have upgraded to 1.5.2 and can not view my admin page. I recieve this error message everytime. Have been unable to fix this problem any suggestions would be helpful. Thanks
Average of ratings: -
In reply to mike alfred

Re: Version mismatch: lesson can't downgrade 2005063000 -> 2005060900 !

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Looks like you have copied the 1.6 version of Lesson into Moodle 1.5, and are now trying to go back to the 1.5.2 version of Lesson.   This will not work.

Are you using the Lesson module?  

If not, delete the module from Admin >> Config >> Modules and then go back to the admin page to let it re-install.

If you are, the perhaps the Lesson authors can offer some advice on a hack.
In reply to mike alfred

Re: Version mismatch: lesson can't downgrade 2005063000 -> 2005060900 !

by Mark Nielsen -
If you can, follow Martin's advice big grin

If not, then you have to hack your database.  Follow these steps to do this:
  1. Back up your database wink
  2. After backing up your database, you need to change lesson's version number
    1. Find prefix_modules table in your database
    2. Find the record for the lesson module
    3. Change the version number from 2005063000 to 2005060900
  3. Now you need to remove some table columns in the lesson table
    1. Find prefix_lesson table in your database
    2. Delete the following columns: mediafile, dependency and conditions
That should successfully downgrade you.  I don't necessarily recommend doing it this way; Martin's method is a sure fire way of taking care of your problem.

Good luck,
Mark



In reply to Mark Nielsen

Re: Version mismatch: lesson can't downgrade 2005063000 -> 2005060900 !

by Jerome Carujo -
Hello

I have a similar problem and just to be sure that I'm not about to do something really stupid, I'd like to double-check it with you.

My version mismatch is slightly different:
Version mismatch: lesson can't downgrade 2005061500 -> 2005060900 !

Step 1 and 2 are easy enough but on step 3, I can't find any dependency or conditions column.
Does it mean that the only column I have to remove is mediafile?

Thanks for your help.
In reply to Jerome Carujo

Re: Version mismatch: lesson can't downgrade 2005063000 -> 2005060900 !

by Mark Nielsen -
Does it mean that the only column I have to remove is mediafile?

Yes, you have a slightly older version of lesson than Mike.  Your version (2005061500) implemented the mediafile field.  Mike's version (2005063000) also implemented the dependency and conditions fields.

Cheers,
Mark
In reply to Mark Nielsen

Re: Version mismatch: lesson can't downgrade 2005063000 -> 2005060900 !

by Jerome Carujo -
Thanks a lot for the info.

It went smoothly ^_^