Problems with Moodle 2.1.1 (Calculated Objects)

Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -
Number of replies: 17

Hi, I´ve just updated Moodle to version 2.2.1 and now there´s a new and strange problem.

When I try to add  'questionary' activity, directly or importing in any format (gift, aiken... etc), this error message appears:

Fatal error: Class 'question_calculated_qtype' not found in

/var/www/vhosts/midominio.com/subdomains/carpetamoodle/httpdocs/question/type/calculated_objects/questiontype.php on line 21


If I try to import to the bank questions, the same message appears:

Fatal error: Class 'question_calculated_qtype' not found in/var/www/vhosts/midominiocom/subdomains/carpetamoodle/httpdocs/question/type/calculated_objects/questiontype.phpon line 21

So, when I import from lessons or create questions directly inside the lessons, there´s no error messages..

I´m desperate... Can´t find the key to solve the problem...

Any help?

Thanks a lot

Average of ratings: -
In reply to paco padilla

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by Jean-Michel Védrine -

Hello Paco,

This is the sign that the calculated objects question you have installed is not compatible with Moodle 2.1/2.2. To my best knowledge there is no version of Calculated Objects for Moodle 2.1/2.2 available

Average of ratings: Useful (1)
In reply to Jean-Michel Védrine

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

I updated from 2.0 to 2.2... Maybe, there was a problem in the process...

Could I replace quiz module completely?

What do you think about it?

Thanks

In reply to Jean-Michel Védrine

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

So... I updated to 2.2.1 version (Build: 20120119).... Now, in moodle.org, that package does not exist... Is there any problem with that version?

Thanks

In reply to paco padilla

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by Nick Freear -

Hi Paco,

Thanks for reporting this issue. Jean-Michel is about right in his analysis. We need to get the Calculated Objects question type working with Moodle 2.1/2.2 and do a fresh release.

I can devote some time to this in the next two weeks (hopefully this weekend). Obviously, if anyone wishes to fork and fix (https://github.com/nfreear/moodle-qtype_calculatedobjects), or suggest fixes, please do.

I hope this helps. Thank you for your patience,

Nick

In reply to Nick Freear

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

Hi Nick,

Any goood new about 'Calculated Objects' update?

Thanks

In reply to Nick Freear

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

Sorry Nick. I know I´m really heavy, but I need to upload questions in my Modlee 2.2.1 and now I can´t. Can I do anything. I know you´re busy but I can´t wait no more. Many contents are incomplete. We´ve got the lessons but we ain´t got no questions. Many people are waiting for this.

Thanks

Average of ratings: Useful (1)
In reply to Nick Freear

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

Hi again... Any new about Calculated Objects update?

Thanks

In reply to paco padilla

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by Nick Freear -

Hi Paco,

Thank you for your patience!

I've taken advantage of the long weekend here in the UK, and re-written the Calculated Objects question type for Moodle 2.1 onwards.

I look forward to your feedback, perhaps in this thread. Best wishes,

Nick

(A little mention: this plugin was initially written for the book, Moodle 2 for Teaching 4-9 Year Olds.)

In reply to Nick Freear

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -
My version is 2.2.1
I replace archives, but I receive this error message

Debug info: Plugin installed in wrong folder.
Stack trace:
  • line 296 of /lib/upgradelib.php: plugin_defective_exception thrown
  • line 1449 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 269 of /admin/index.php: call to upgrade_noncore()
In reply to paco padilla

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by Nick Freear -

Hi Paco,

The message you receive "Plugin installed in wrong folder" begs the question, where have you tried installing it?

You will need to rename the directory that the Zip archive produces, from eg.,

    [SOME_PLACE]/nfreear-moodle-qtype_calculatedobjects-1234567/

To,

    [MOODLE]/question/type/calculatedobjects/

I hope that helps,

Nick

In reply to Nick Freear

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

Hi again.

I put all the new 'calculated_objects' archives and directories in calculated_objects directory and replace the older archives and directories. I didn´t install directory over directory, but the route is good. I do it with other plugins and everything´s ok...

In reply to paco padilla

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

the original directory name is 'calculated_objects', no 'calculatedobjects'... Maybe that could be the problem?

In reply to paco padilla

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by Nick Freear -

Hi Paco,

The original directory name should have been 'calculatedobjects' not 'calculated_objects'.

I think that previous versions of Moodle were not so strict about this, but version 2.1 onwards (2.0 onwards for most plugin-types), does a lot of checking..

None of the install instructions use an underscore,

I hope that is clear. Best wishes,

Nick

In reply to Nick Freear

Fixed, Re: Problems with Moodle 2.1.1 (Calculated Objects)

by Nick Freear -

Hi,

I've fixed another bug CONTRIB-3692 "Fatal error: Class 'qtype_renderer' not found".

Download the latest Zip - 2.1.x/2.2.x (2.3.x) branch.

I'll package a new release in the next day or two. Goodnight,

Nick

In reply to Nick Freear

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

One more thing: My Moodle detected the upload in the correct directory, but sent  the error message.

In reply to Nick Freear

Re: Problems with Moodle 2.1.1 (Calculated Objects)

by paco padilla -

1ST STEP AFTER CREATE NEW CALCULATED_OBJECTS FOLDER IN QUESTION/TYPE