Forums
I've got a sample course with 3 lessons in it, two theory and one quiz. When I get to the end of any of the lessons I get an error page: "The website encountered an unexpected error. Please try again later. "
These show up in the "Recent Log Message" listing:
Notice: Undefined offset: 1 in DatabaseStatementBase->fetchAllKeyed() (line 2212 of /var/www/html/opigno/includes/database/database.inc).
PDOException: SQLSTATE[22012]: Division by zero: 7 ERROR: division by zero: SELECT (max_score / ( SELECT max_score FROM {quiz_question_properties} WHERE nid = :nid AND vid = :vid )) as scale FROM {quiz_node_relationship} WHERE parent_nid = :parent_nid AND parent_vid = :parent_vid AND child_nid = :child_nid AND child_vid = :child_vid ; Array ( [:nid] => 11 [:vid] => 13 [:parent_nid] => 5 [:parent_vid] => 19 [:child_nid] => 11 [:child_vid] => 13 ) in quiz_store_question_result() (line 2454 of /var/www/html/opigno/profiles/opigno_lms/modules/contrib/quiz/quiz.module).
Am running Opigno 1.20.0 and PostgreSQL 9.2.14. I disabled a bunch of the optional modules I had loaded earlier to see if it made a difference: It didn't. I'm thinking seriously about starting with a fresh install/wiping out the database and installing from scratch with the latest-latest Opigno.
It shouldn't be something I forgot to set while creating lessons, right?
Any pointers? Thanks!
Hi we7u,
Hi we7u,
Have you changed the quiz module in any way?
Best regards
In reply to Hi we7u, by James Aparicio
I've done no coding changes.
Do you mind creating a new
Do you mind creating a new clean instance, without adding any other modules and trying to replicate the error with the same course/lessons?
Best regards
I suppose I could.
Brand-new install of 7-1.20.0
Better this time around, but errors still logged