UJM-dev / ExoBundle

A Claroline plugin to create exercises
Other
5 stars 12 forks source link

Call to a member function getElementsByTagName() on a non-object #83

Open ChMat opened 9 years ago

ChMat commented 9 years ago

Hi,

One of our admins reported an issue this morning. We are using v5.0.18 of this bundle. Here is a production log abstract for your reference:

[2015-10-07 10:00:58] request.INFO: Matched route "ujm_qti_import_question". {"route_parameters":{"_controller":"UJM\\ExoBundle\\Controller\\QtiController::importQuestionAction","_route":"ujm_qti_import_question"},"request_uri":"exercise/all/qti/importQuestion?exerciceID=41"} []
[2015-10-07 10:00:58] security.DEBUG: Read existing security token from the session. {"key":"_security_main"} []
[2015-10-07 10:00:58] security.DEBUG: User was reloaded from a user provider. {"username":"ouruser","provider":"Symfony\\Bridge\\Doctrine\\Security\\User\\EntityUserProvider"} []
[2015-10-07 10:00:58] php.CRITICAL: Fatal Error: Call to a member function getElementsByTagName() on a non-object {"type":1,"file":"vendor/ujm/exo-bundle/UJM/ExoBundle/Services/classes/QTI/holeImport.php","line":265,"level":6143,"stack":[]} []
[2015-10-07 10:00:58] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Error: Call to a member function getElementsByTagName() on a non-object" at vendor/ujm/exo-bundle/UJM/ExoBundle/Services/classes/QTI/holeImport.php line 265 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0): Error: Call to a member function getElementsByTagName() on a non-object at vendor/ujm/exo-bundle/UJM/ExoBundle/Services/classes/QTI/holeImport.php:265)"} []
charlotte42 commented 9 years ago

Please, could you send to me the file that you import.

ChMat commented 8 years ago

Hi,

Here is one of them: https://www.dropbox.com/s/3aysy1428488p2w/Unidad_1_-_Presente_de_indicativo_II.zip?dl=0

charlotte42 commented 8 years ago

Hi, We have testing your import file with the version 5.0.19 and 5.0.18 of bundle but we haven't got this error. We continue to search the origin of this problem. Is this error occurs with other questions of the same type ? Does it occurs with other types of questions ? Do you export the file from another platform Claroline-Connect or another teaching platform ? If this is claroline-connect, have you alter the exercise bundle ?

ChMat commented 8 years ago

Hi,

This is an export from the old Claroline platform (Claroline 1.11.7).