Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Error with JS: Internal error from saveFormWithAjax: no data.responseJSON found

  • driz
  • driz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 11 months ago - 1 year 11 months ago #226940 by driz
Hi all,

Whenever I want to save Javascript in a question, the following error pops up when I want to save the question:

Internal error from saveFormWithAjax: no data.responseJSON found

I nearly always get this error when I try to paste in Javascript in my surveys. I have been able at times to get around it, by removing a lot of what I think were the offending pieces of code, but it makes me feel something is wrong with my installation. I have had this problem in quite a few versions of LimeSurvey which makes me believe it is a setting in LS or on my server rather than something else.

To test whether there is an issue with my JS, or it's something else, I have just downloaded the following survey:

manual.limesurvey.org/images/9/97/Partia...anomized_Answers.lss

I uploaded this survey, and tried to edit one of the questions, and it gives me the error as well.

I have attached a screenshot of my security settings in case it may be relevant. I have Googled the error, but it doesn't give me anything that seems helpful.

Your LimeSurvey version: Version 5.3.2+220302
Own server or LimeSurvey hosting: Own server
Survey theme/template: Standard template
==================
(Write here your question/remark)
Attachments:
Last edit: 1 year 11 months ago by driz. Reason: Removed URL to my server

Please Log in to join the conversation.

More
1 year 11 months ago #226943 by jelo
Can you explain what you edit and save to trigger the error?
I have used the survey you linked and imported in the demo installation of LimeSurvey.
I wasn't able to reproduce the issue. LimeSurvey 5.3.6 (you used 5.3.3).

I recommend to check on your own in the demo installation.
You might check the editor settings. Perhaps you use an editor mode which destroy the JS. Or your LimeSurvey version contains a bug.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • driz
  • driz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 11 months ago #226949 by driz
My steps are:

1. Create a new survey by uploading the file mentioned.
2. Go into questions and choose edit Q1
3. Don't make any changes
4. Press Save

I understand that this should work OK in a demo installation, so there must be something wrong with my installation. How do I find out what is wrong?

Please Log in to join the conversation.

  • driz
  • driz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 11 months ago - 1 year 11 months ago #226951 by driz
My WYSIWYG editor does look different from the editor in the demo installation (see attachment). Is that what could cause the issue? 
Attachments:
Last edit: 1 year 11 months ago by driz.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #226952 by Joffm
That's only the hamburger button that expands or collapses the menu.



Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • driz
  • driz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 11 months ago #226953 by driz
Thanks Joffm, this is what I see in the demo. 



I am guessing though as you have a similar menu, that this editor shouldn't be the cause of the problem.

Please Log in to join the conversation.

  • driz
  • driz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 11 months ago #226954 by driz
Just to be extra sure, I changed my Default HTML Editor Mode to "HTML Source" however the error still occurs.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #226955 by Joffm
Well, it is not reproducable.

You'd create a new installation from scratch into a different directory, or just in XAMPP.
That's done in a few minutes.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • driz
  • driz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 11 months ago - 1 year 11 months ago #226956 by driz
Just created a new installation, same server, same version of LimeSurvey.
Uploaded the sample survey, and got the same issue.

My LimeSurvey installation is installed through Installatron, on PHP Version 7.3.33 and MySQL Version 10.3.34-MariaDB.

I just tried the same in a fresh installation of version 3.1.1 and the problem disappears in that version. 
Last edit: 1 year 11 months ago by driz. Reason: I just tried the same in a fresh installation of version 3.1.1 and the problem disappears in that version. 

Please Log in to join the conversation.

More
1 year 11 months ago #226957 by jelo
I recommended to use a newer version. You had 5.3.2.
The demo is 5.36. The last community version ready for download is 5.3.7.

Do you maintain a complete webserver or do you use a hosting offer?
Sometimes there is a protection layer on webhosting or PHP settings are preventing correct editing and saving of questions in LimeSurvey.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • driz
  • driz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 11 months ago #226959 by driz
Hi jelo,
I have tried a different version just to see whether the issue would disappear. I am with a webhost, using Cpanel. 
Using Installatron I have tried the following versions:

5.3.2 - Error appears
4.5.0 - Error appears
4.3.0 - Error does not appear, but I am getting different errors, relating to empty error codes (there are no empty codes), and a 403 Forbidden error when the question did save successfully
4.2.0 - Error does not appear, but I am getting different errors, relating to empty error codes (there are no empty codes), and a 403 Forbidden error when the question did save successfully
4.1.14 - Error does not appear, but I am getting different errors, relating to empty error codes (there are no empty codes), and a 403 Forbidden error when the question did save successfully
3.28.1 - Error does not appear
3.1.1 - Error does not appear


Are you saying I should upgrade from 5.3.2? Noting that Installatron does not allow me to upgrade beyond my current version 5.3.2.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #226962 by Joffm

Using Installatron I have tried the following versions:

Okay, then we probably are out.
These installers mostly have a customized versions that may cause problems.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose