Community Forums

ATutor Bug Reports

Problem with reimport test question


You must be signed-in to post.

AuthorSubject
 
Page: 1
gviabcua

Avatar for gviabcua
test20161121.zip
Subject: Problem with reimport test questionQuote this post in your reply
Hi!
When I do export and then in other cources import question I see an error:
Import failed. Please note that ATutor only supports QTI 1.2.1 import.
On demo site such problem.

Atutor v2.2.2 patch 007 installed.

Maybe attachment file can helpsmile
Posted: 2016-11-21 09:49:07
greg

Avatar for greg
Subject: Re: Problem with reimport test questionQuote this post in your reply
If you are asking for help, provide lots of detail so problems can be reproduced.

Things to describe:
Operating system ATutor is installed on -
ATutor version -
Patch #s applied -
ATutor theme name -
PHP version -
MySQL version -
Webserver & version -
Copies of error messages -
Changes to default settings -
Web browser being used -
...and anything else relevant -
Posted: 2016-11-21 09:56:38
gviabcua

Avatar for gviabcua
Subject: Re: Problem with reimport test questionQuote this post in your reply
Operating system ATutor is installed on - CentOS 7.2 x86-64
ATutor version - 2.2.2
Patch #s applied - 007
ATutor theme name - default
PHP version - 5.4
php_memory_limit: 256mb
PHP encoder: no
MySQL version - 5.6.27-75.0-log
libmysql - mysqlnd 5.0.11-dev - 20120503
Webserver & version -
Changes to default settings - yes
Web browser being used - chrome, opera, mozilla, safari
Posted: 2016-11-22 06:15:43
greg

Avatar for greg
Subject: Re: Problem with reimport test questionQuote this post in your reply
Are you exporting QTI packages in QTI 1.2.1 format?

Are you exporting a whole test, or are you exporting a collection of questions selected from the Question Bank?
Posted: 2016-11-22 10:20:38
gviabcua

Avatar for gviabcua
ATutorSpaces_Demo_CourseQuestion_Bank201611222.zip

Attachment: ATutorSpaces_Demo_CourseQuestion_Bank201611222.zip
Subject: Re: Problem with reimport test questionQuote this post in your reply
I am tryin to export a collection of questions selected from the Question Bank (QTI packages in QTI 1.2.1 format)?

on your demo site such problem. When i create a question with text
<p><img src="cstalks-flyer-2.png" border="0" alt="Alternate Text" /></p>
after reimport this question i see

The following errors occurred:
Import failed. Please note that ATutor only supports QTI 1.2.1 import.

I think a problem with tags. becouse if i use question(s) witout tags i have no problem
Posted: 2016-11-22 12:07:50
greg

Avatar for greg
Subject: Re: Problem with reimport test questionQuote this post in your reply
Tags being the problem is a possibility. I've made a note of it in the bug tracker and will try to address it during the next dev cycle.

www.atutor.ca/atutor/mantis/view.php?id=5734

The next dev cycle is a ways away though, while we work on gamification for ATutor, and update AContent, so if you are able to come up with a solution, it might fix the problem faster. It likely has something to do with the system wide html encoding of content before it goes into the database, and decoding when it comes out, added for security.
Posted: 2016-11-22 12:33:40
gviabcua

Avatar for gviabcua
Subject: Re: Problem with reimport test questionQuote this post in your reply
which files are responsible for import export questions? I have some idea
Posted: 2016-11-22 17:49:05
greg

Avatar for greg
Subject: Re: Problem with reimport test questionQuote this post in your reply
It's probably one of these files:

https://github.com/atutor/ATutor/blob/master/mods/_core/imsqti/classes/QTIImport.class.php
and
https://github.com/atutor/ATutor/blob/master/mods/_standard/tests/classes/testQuestions.class.php


You should create an account in Mantis to follow and report on the bug. And, if you plan to contribute your fix, do it as a pull request on Github (so you get recognized for contributing)

www.atutor.ca/atutor/mantis/view.php?id=5734
https://github.com/atutor/ATutor
Posted: 2016-11-22 19:15:03
 
Page: 1

You must be signed-in to post.

Related Articles