Choice "not available anymore"

Choice "not available anymore"

by Florian Wetzel -
Number of replies: 6

Hello,

I created a choice within the block "Main menu" and later I tried to delete it.

Now, it is still displayed in the blocks "Main menu" and "Navigation" and I can still open the "Updating"/Editing window. But if I want to save the edits, simply open the choice or delete it, I get the error-message:

"get_record() not available anymore" or
"update_record() not available anymore"

Even if I want to create a new choice, I get an error-message:

"insert_record() not available anymore"

Is there any possibility to delete this choice manually? Where do I find the data of this choice?

Thanks!

PS: I'm using moodle 2.0

Average of ratings: -
In reply to Florian Wetzel

Re: Choice "not available anymore"

by Florian Wetzel -

I've just realised, I can't create any new choice - it doesn't matter where within our moodle...

In reply to Florian Wetzel

Re: Choice "not available anymore"

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Something strange has happened to your install. Those are the sorts of errors you would get if you tried to use a 1.9 module with Moodle 2.0. However, choice is one of the standard modules, so it must be up-to-date.

In reply to Tim Hunt

Re: Choice "not available anymore"

by Florian Wetzel -

Hey Tim, thanks for your reply!

I'm new to moodle and have only installed moodle 2.0 - I have never installed an older version - so, this is really strange...

How can I update the choice module or reinstall it without losing my whole moodle installation, I've just completed? When I go to "Settings" -> "Site administration" -> "Plugins" -> "Activity modules" -> "Manage activities" I see an overview of all modules and a button to delete the choice module. Where would I get an install package to reinstall it? On this moodle-page, there is written:

There is no download link for this module because it is included in the standard Moodle download package.

In reply to Florian Wetzel

Re: Choice "not available anymore"

by Florian Wetzel -

Hello,

I successfully deleted the activity "choice" with all database entries and it was automatically reinstalled. smile

Now, all broken links to not-existing choices are gone, but I still can't create new choices - I still get the error-message:

"insert_record() not available anymore"

What can I do to use choices again? Is there any alternative activity?

In reply to Florian Wetzel

Re: Choice "not available anymore"

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

as Tim mentions - your upgraded files are messed up - deleting the choice activity in the interface doesn't delete the files - it deletes the entries in the db.

you need to delete your wwwroot files and re-install the latest 2.0 versions - specifically the mod/choice folder as it still contains 1.9 versions of the files instead of the 2.0 versions.

Average of ratings: Useful (1)
In reply to Dan Marsden

Re: Choice "not available anymore"

by Florian Wetzel -

Hey Dan!

Thank you very much - it worked...

First I deleted the choice activity in the interface. When I got the "successfully deleted"-message I didn't click "Next", but opened my FTP client and deleted the /mod/choice folder on the server. I still have saved all files of my moodle installation locally on my PC, so I could easily upload the mod/choice folder. In the next step, it was automatically installed in the interface and everything works fine right now! smile