Countless warnings

bevangg
Forums
Hi I am getting warning messages when doing almost anything. I just tested a quiz with a fill in the blank, drag and drop match and long answer questions and got this: Notice: Undefined index: def in MatchingResponse->score() (line 435 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\contrib\quiz\question_types\matching\matching.classes.inc). Notice: Undefined index: def in MatchingResponse->score() (line 435 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\contrib\quiz\question_types\matching\matching.classes.inc). Notice: Undefined index: def in MatchingResponse->score() (line 435 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\contrib\quiz\question_types\matching\matching.classes.inc). Notice: Undefined offset: 0 in MatchingResponse->score() (line 435 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\contrib\quiz\question_types\matching\matching.classes.inc). Notice: Undefined offset: 0 in MatchingResponse->score() (line 435 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\contrib\quiz\question_types\matching\matching.classes.inc). Notice: Undefined offset: 0 in MatchingResponse->score() (line 435 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\contrib\quiz\question_types\matching\matching.classes.inc). Notice: Undefined property: LongAnswerResponse::$node in QuizQuestionResponse->quizContextAccessToScore() (line 821 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\contrib\og_quiz\includes\og_quiz_question.php). Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of C:\xampp\htdocs\opigno\includes\entity.inc). Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 350 of C:\xampp\htdocs\opigno\includes\entity.inc). Notice: Undefined offset: 3 in _menu_translate() (line 777 of C:\xampp\htdocs\opigno\includes\menu.inc). The last line appears on most pages. Question is are these messages important and if not can they be supressed? Also, the "drag and drop " match question was in fact not drag and drop but presented drop-down lists. Is there an option hidden somewhere to enable drag and drop?
bevangg

Update

I opened the quiz to edit and got this: Notice: Undefined index: #markup in platon_preprocess_field() (line 287 of C:\xampp\htdocs\opigno\profiles\opigno_lms\themes\platon\template.php). Notice: Undefined index: #markup in platon_preprocess_field() (line 290 of C:\xampp\htdocs\opigno\profiles\opigno_lms\themes\platon\template.php). Notice: Trying to get property of non-object in opigno_quiz_import_app_opigno_tool() (line 59 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\opigno\opigno_quiz_import_app\opigno_quiz_import_app.module). Notice: Trying to get property of non-object in tft_opigno_tool() (line 221 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\opigno\tft\tft.module). Notice: Undefined offset: 3 in _menu_translate() (line 777 of C:\xampp\htdocs\opigno\includes\menu.inc).
bevangg

Update

I just enabled the commerce app. Now when I try to open my quiz I get a blue background with the message: EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 335 of C:\xampp\htdocs\opigno\profiles\opigno_lms\modules\contrib\entity\includes\entity.wrapper.inc). The website encountered an unexpected error. Please try again later.
bevangg

Update

I came to the conclusion that there must be something wrong with my local server installation and decided to try to set up a test on opigno's saas platform. So far it generally seems to work but I am getting warnings with a link to status reports which I am not authorized to access. I can however view the recent error logs and noticed that there are countless notices in there that are identical to what I had on my local server earlier. This one keeps popping up: Notice: Undefined offset: 3 in _menu_translate() (line 777 of /var/aegir/platforms/opigno-1.10.3/includes/menu.inc). There are many pages with notices about the opigno og access module like this: Notice: Undefined index: import quiz questions xls in opigno_og_access_node_set_subscribe_permissions() (line 211 of /var/aegir/platforms/opigno-1.10.3/profiles/opigno_lms/modules/opigno/opigno/modules/opigno_og_access/opigno_og_access.module). Please could you advise whether these notices are indications of a problem or if I can ignore them. Thanks
axel

Hi

Hi

These are simple notices. You can ignore them

As for your local installation, it seems indeed corrupted.

Best regards,

 

bevangg

Sorted

Hi. I re-installed and it is fine now Thanks
axel

That's why I thought...

That's why I thought... probably a corrupted installation.

Thanks for the feedback!

bevangg

Possible cause

Hi Axel I have tried numerous ways to install drupal / opigno, including on a linux netbook and a windows mobile workstation. I had problems on all of them and suspect that the my.ini setting in xampp is the key to solving the problem. Running on localhost I kept getting timeout errors from mysql. The following settings in my.ini seem to make it work fine, I have re-installed with a new instance and database and it works perfectly so far: max_allowed_packet = 16M