Awards

Comments

Similarly to Lukas we are using the algebra question type on a Moodle 2.8 server, the TeX preview does not work with MathJax. MathJax is enabled and works everywhere else on the site, but the preview in the algebra questions remains raw TeX code. The fix Lukas mentions above cannot be implemented on our server, is there any alternative way of correcting this?
Thanking you in advance,
Janice

Hello,
I have released a new version that should solve the problem with the display of the formula entered by the student.
I am not quite satisfied with the way I choose to solve this problem but that's all I can do for now.
I think it's honest to say that my teacher career will end in 5 months from now and I am not sure I will be able to maintain that plugin after that date.

Thanks for your great plugin! I sometimes get the following error displayed:

Notice: Undefined property: qtype_algebra_parser_bracket::$_sign in /path_to_moodle/question/type/algebra/parser.php on line 896 Notice: Undefined property: qtype_algebra_parser_bracket::$_sign in /path_to_moodle/question/type/algebra/parser.php on line 1339 Notice: Undefined property: qtype_algebra_parser_bracket::$_sign in /path_to_moodle/question/type/algebra/parser.php on line 896 Notice: Undefined property: qtype_algebra_parser_bracket::$_sign in /path_to_moodle/question/type/algebra/parser.php on line 1339

A variable was not initialized ($_sign) in the constructor of the class qtype_algebra_parser_bracket.
To correct this you have to modify the file : question/type/algebra/parser.php (line 1309) and add an initializing line :

With debug on, this message appears:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; qtype_algebra_parser_term has a deprecated constructor in ....... /question/type/algebra/parser.php on line 53

Moodle 3.2.2:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; qtype_algebra_parser_term has a deprecated constructor in
..\server\moodle\question\type\algebra\parser.php on line 53

algebra class has always been an issue for my kids; they are currently practicing with this algebra tutor https://www.studypug.com/algebra-help - but I want to give your tool a shot. thanks for your work.

I noticed that we cannot accede the statistics of any test including algebra questions. Indeed, once a student have typed a formula to answer an algebra question, the statistics page will turn white (such as the bug report). This occurs even if the students make no syntactic mistake. On the contrary, if all the students type "0" instead of the formulas, the statistics will normally be displayed.

The problem may be due to the fact we are using a 3.3 version of Moodle and the algebra plugin we installed is made for 2.8, 2.9 and 3.0 versions of Moodle (but except for the statistics, it works perfectly with our 3.3 version).

Hello to all,
Despite been retired I was puzzled by the bug reported by Camille Carlier. So I decided to fix it.
I will release a new version that will fix this bug, and also the problem related to deprecated constructors names and the problem about undefined property $_sign.
But please don't take this as a commitment to further maintain that plugin

I am about to release a new version of the algebra question type with a change in the display during question attempt, there is now a setting in Administration to choose between 2 methods to display the formula : the old one with a button and the formula displayed in an iframe, and a new method without any button where the formula is updated dynamically when the student type an answer (MathJax filter required). As the old method is still here and is the default, nothing will change when you upgrade but you can try the new display if you want.