Millisecond Forums

experiment works on 3.0.2 but not on 3.0.6

https://forums.millisecond.com/Topic7469.aspx

By Sunshine - 2/20/2012

Hello,


I have created an experiment in version 3.0.2 which perfectly runs there. When I run it on version 3.0.6. I get a bunch of error messages like "could not locate element". The experiment (without pictures and videos) is attached.


How is it possible to get rid of these errors in 3.0.6?


Thanks in advance for your answer!

By Dave - 2/20/2012

How is it possible to get rid of these errors in 3.0.6?


You need to check your syntax more carefully. The parser's error control is much stricter in 3.0.6.0 than in 3.0.2.0 (which is a good thing). In particular:


- You must *not* use double-quotes in <page> elements without proper character escaping (see the special characters topic in the Inquisit documentation), i.e. replace " with ~" or two single quotes ('').


- Fix the various other syntax errors indicated by the 'has invalid text' warnings in the output pane for various /caption attributes, <item> elements, etc. There are a lot of stray double quotes in your script where there shouldn't be any. Example:


<item instructions>
"
/1 = "Im Zuge der folgenden ..."


or


<caption Kategorienvign2>
/ caption = "überhaupt nicht                 mittelmäßig                        extrem"
oder gar nicht"


Regards,


~Dave

By Sunshine - 2/20/2012

Thank you, Dave!


Best regards,


Sunshine

By Sunshine - 2/26/2012

Hey Dave!


I acted on your suggestions and changed the double quotes, but unfortunately I still get these error messages in version 3.0.6.


I want to do an emotion intensity recognition task and use pictures for that but Inquisit can't locate them in the new version. There are also three other elements it can't locate.


I'm sorry to bother you again, but I tried out a lot (for example I put away the % sign on the name of the first picture), and I'm not able to fix this problem.


I'm attaching my changed experiment. I would be very grateful if you could take a look at it again - thanks in advance!


Best regards,


Sunshine

By Sunshine - 2/26/2012

I'll also attach the first of the pictures.


I also want to note that if I run just the element "Frage Schlsk1" (with the associated radiobuttons, located in a surveypage) in a separate experiment it works, but not with the whole experiment.

By Dave - 2/26/2012

As noted previously, there are stray quotation marks in your script which may throw things off. E.g.


<caption Kategorienvign1>
/ caption = "überhaupt nicht                 mittelmäßig                        extrem"
oder gar nicht"
/ fontstyle = ("Verdana", -17, false, false, false, false, 5, 0)
/ position = (40,11)
</caption>


I recommend you re-check everything thoroughly and follow up on every warning / error message in the editor's output pane.


Regards,


~Dave

By Sunshine - 2/27/2012

Thank you, Dave, you're a life-saver!


This was the only quotation mark I forgot and then I searched for the mistake elsewhere... It works now!


Thanks again!