Check out the LimeSurvey source code on GitHub!

Javascript Conditions do not work in v1.92+ build 120405

More
4 years 10 months ago - 4 years 10 months ago #78397 by Sirblackadder
Hi All,

after updating to v1.92+ build 120405 conditions on a single page do not work anymore.

It appears that the JavaScript code is broken. I've set up a test survey on a fresh LimeSurvey installation to Demo the bug: http://psymet03.sowi.uni-mainz.de/survey_new/index.php?sid=66839&lang=en

When I open the JavaScript debug console, it issues two 500 errors. Both "LEMsetTabIndexes" and "LEMregexMatch" are not defined.

Help, anyone?

Bye, malte
Last Edit: 4 years 10 months ago by Sirblackadder.

Please Log in to join the conversation.

More
4 years 10 months ago #78398 by c_schmitz
The problem is that

psymet03.sowi.uni-mainz.de/survey/classe...ons/em_javascript.js

cannot be read from the server. Most likely a server issue.

Best regards

Carsten Schmitz
LimeSurvey project leader
The following user(s) said Thank You: Sirblackadder

Please Log in to join the conversation.

More
4 years 10 months ago - 4 years 10 months ago #78399 by Sirblackadder
Of course you're right. I can't display the .js file when accessing it directly via your link. Funny thing is that other .js files in the LimeSurvey directory will display just fine, like this: http://psymet03.sowi.uni-mainz.de/survey/admin/scripts/admin_core.js

I checked permissions and ownerships of the files and their parent directories but they are identical.

Any idea what might be happening here?

Bye, Malte
Last Edit: 4 years 10 months ago by Sirblackadder.

Please Log in to join the conversation.

More
4 years 10 months ago - 4 years 10 months ago #78400 by Sirblackadder
Thanks again, Carsten, you're comment was most helpful.

I checked the Apache logs and found the error.

The problem was the ".htaccess" located in LS_DIR/classes. This file contains only one line, which is "options -indexes".

My Apache configuration is set up to disallow overriding the options directive via a htaccess file. That's why the ".htaccess" file caused a 500 error.

Maybe the ".htaccess" file in question were better removed from the distribution? I mean, virtually no other directories in the LimeSurvey distribution have a htaccess file.

Bye, Malte
Last Edit: 4 years 10 months ago by Sirblackadder.

Please Log in to join the conversation.

More
4 years 10 months ago #78401 by c_schmitz
Thanks for describing the cause. We will sure to make the .js file move where it belongs.

Best regards

Carsten Schmitz
LimeSurvey project leader

Please Log in to join the conversation.

More
4 years 10 months ago #78670 by Mazi
I think I just saw a commit for this, so the problem should be fixed at the next 1.92+ version.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form