qtype_coderunner/Multiple prototypes found for octave_function

qtype_coderunner/Multiple prototypes found for octave_function

by Shane Banks -
Number of replies: 2

Hi,

I'm getting the following error when I try to run or edit CoeRunner questions that use the Octave Function:

qtype_coderunner/Multiple prototypes found for octave_function

Has anyone seen this or know how to solve?

Thanks,

Shane.

In reply to Shane Banks

Re: qtype_coderunner/Multiple prototypes found for octave_function

by Richard Lobb -

This means that there are (at least) two different question prototypes defining the octave_function question type, which is thus ambiguous and unusable. You need to delete all but one. 

The situation can arise if you import a set of questions that includes an octave_function prototype. Have you done any imports lately?

On a fresh install, CodeRunner loads all built-in prototypes into the category System/Top for System/CR_PROTOTYPES. There should be exactly one question named BUILTIN_PROTOTYPE_octave_function in that category. If you have Moodle admin rights, that's the first thing to check (only Moodle administrators can see the system-context questions). If there is only one such question in the system context, you then need to look within the course in which the issue is occurring for questions with the same name, or perhaps named just PROTOTYPE_octave_function.

There are other more complex ways to hunt down rogue prototypes but the above covers most situations. Post back if you still can't resolve the issue.

Richard

In reply to Richard Lobb

Re: qtype_coderunner/Multiple prototypes found for octave_function

by Shane Banks -

Hi Richard,

Your suggested solution worked, our admin staff removed the duplicate question prototype.

Thanks for your assistance. 

Regards,

Shane.