getValue() function broken?

49 views
Skip to first unread message

Thomas Schilling

unread,
Aug 28, 2024, 6:53:54 AM8/28/24
to LIONESS Lab help and discussion
Hi LIONESS team,

is there a bug with the getValue() function? 
I suddenly get error messages using this function. It worked well not long ago (in the same experiment, I haven't made changes to the experiment's code).

This is the error message I get in the console

VM165:1 Uncaught SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
    at JSON.parse (<anonymous>)
    at getValue (jsLibrary.js?v8.4:418:17)
    at stage422989.php?session_index=9c0409da45ebe9c6e6b361b193216796:172:17
getValue @ jsLibrary.js?v8.4:418
(anonymous) @ stage422989.php?session_index=9c0409da45ebe9c6e6b361b193216796:172

When I click on the "at stage422989.php?session_index=9c0409da45ebe9c6e6b361b193216796:172:17
getValue @ jsLibrary.js?v8.4:418" line, it jumps to my code, which is: 

var condition = getValue('condition');

So, nothing special, right? Should work as it did before? 

Thanks for checking this out! 
Best, Thomas 

Lucas Molleman

unread,
Aug 28, 2024, 7:02:44 AM8/28/24
to Thomas Schilling, LIONESS Lab help and discussion
Hi Thomas,

There haven't been any updates I know of. What happens if you open your browser's console and type getValue("condition")?

Cheers, Lucas

--
You received this message because you are subscribed to the Google Groups "LIONESS Lab help and discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lioness-lab...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/lioness-lab/21e86d1b-fc07-433a-917b-1367fc88ddd9n%40googlegroups.com.

Lucas Molleman

unread,
Aug 28, 2024, 7:40:18 AM8/28/24
to Thomas Schilling, LIONESS Lab help and discussion
is the variable "condition" visible in the control panel? in other words, does it exist?

On Wed, 28 Aug 2024 at 13:39, Thomas Schilling <thomas....@gmail.com> wrote:
Hey Lucas! Thanks for this fast response.
I get the same error, though.

image.png

Best, Thomas

Message has been deleted
Message has been deleted

Thomas Schilling

unread,
Aug 28, 2024, 7:59:01 AM8/28/24
to LIONESS Lab help and discussion
Yes it is. 
But it is undefined.
condi.png

Although, I declared it with record('condition', condition) in a previous stage. 
record.png
Reply all
Reply to author
Forward


Thomas Schilling

unread,
Aug 28, 2024, 8:04:37 AM8/28/24
to LIONESS Lab help and discussion
This seems to be a problem in all of my experiments. Even in those where I already finished my data collection. 
And in those other experiments, I have no problems with an "undefined" value in the variables (so this might be just another issue in the new experiment).

Thomas Schilling

unread,
Aug 28, 2024, 9:09:24 AM8/28/24
to LIONESS Lab help and discussion
Is it possible that someone else is editing my experiment? The entire stage study_s (stage 3) is suddenly destroyed 😱😢 

Thomas Schilling

unread,
Aug 28, 2024, 10:36:01 AM8/28/24
to LIONESS Lab help and discussion
Thank you LIONESS team! 
The bug seems to have been related to the fact that I used "condition" as a variable name in experiment ID 38903.

But in other experiments (e.g., ID 32363), I did not use this variable name and yet receive the same error message. That is a bit odd. This experiment used fine before (I completed the data collection already).

Cheers, Thomas
Reply all
Reply to author
Forward
0 new messages