Welcome to the LimeSurvey Community Forum

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

404 Error prevents adding questions to a survey/group

  • jlhollowell
  • jlhollowell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago - 3 years 6 months ago #219085 by jlhollowell
Hello all,

I set up Limesurvey over a month ago but never got past making sure it was running and that I could login. I've just realized that it is only working partially. :-(

That is, I cannot add questions to a survey. When I click on the + button to add a question I get a 404 error. I notice that the link that is being called doesn't seem possible...?

#https://www.myinstance-of-limesurvey.com/index.php/questionAdministration/view/surveyid/386671

The call to index.php/questionAdministration/view/surveyid/#### seems problematic as there is no directory named "questionAdministration".

I'm running on NGINX and MariaDB. I tried tweaking the config file a bit (e.g. changed from 'path' to 'get') but that rendered my site inaccessible...only being able to view the front page.

I checked my nginx site config file and everything seems to be in order. I'm at a loss...

And ideas/advice will be appreciated.

Regards

Jason

P.S. Ok, ignore my comment about the "questionAdministration" directory. I see that various other links call this URL and display the subsequent page without issue. In addition to the 404 error, I'm getting a message saying 'Invalid question ID"....which seems a bit odd as I'm trying to add a question not edit one....hmmm.
Last edit: 3 years 6 months ago by jlhollowell.
The topic has been locked.
  • jlhollowell
  • jlhollowell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #219087 by jlhollowell
Ok, replying to myself here. First, part of my problem with not being able to add questions was that I had a content security policy that was breaking a significant portion of my site (the left side "settings" and "structure" navigation pane). I commented out the content security policy and am now able to create questions...however, not via the use of the little + button. The link that appears when pushing the + button seems to be wrong.

It tries to access the following path:

#https://www.mysite.com/index.php/questionAdministration/view/surveyid/386671

But, unless I am mistaken, it should be accessing the following link. This is the one that is called when I click on "add a new question" after having accessed my survey and the question list within it.

#https://www.mysite.com/index.php/questionAdministration/create/surveyid/386671
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #219093 by Joffm
Hi,
the first and important information always is: Which version are you talking about?
Obviously 5.x. But which one exactly?

My findings were:
1. When you first click the "Structure"-Button this link is called
 

2. When you hover the "+ Add question"  you see that the underlying link is
 

3. After clicking this "+ Add question" button the link is there
 

All done in Version 5.1.2+210813

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, jlhollowell
The topic has been locked.
  • jlhollowell
  • jlhollowell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago - 3 years 6 months ago #219095 by jlhollowell
Joffm,

Yes, very good point. My apologies for not following protocol. I should know better. I am on version 5.07+ Build 210628

My issue is:

When I look at the survey list, the button on the far right (the plus sign) does not have the same path (see below) as the path that appears when I click on "add question" within the "Structure" section.

The plus mark shows the following path:  www.mysite.com/index.php/questionAdministration/ view/surveyid/386671

From the Survey List screen, the above link produces a 404 error

The "add question" link shows this path:  www.mysite.com/index.php/questionAdministration/ create/surveyid/386671

From the Structure area, the above link allows me to create a new question.

This seems like an issue?

Regards

Jason

P.S. Sorry, I'm not familiar with this editor...how do I embed images in my message area instead of simply attaching them?
 
Last edit: 3 years 6 months ago by jlhollowell. Reason: Wanted to add a PS
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #219107 by holch
When you upload them, it says "insert", this will insert a code for the image to be embeded.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: jlhollowell
The topic has been locked.
  • jlhollowell
  • jlhollowell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago - 3 years 6 months ago #219114 by jlhollowell
holch,

Thanks :-) It's pretty easy isn't it....just different from what I was used to. :-)

Ok, let me try again. When viewing the list of surveys, on the far right there are two small buttons. One, a gear   , is for "General settings and text" and the other, a plus    , indicates it is to "Add a new question". Clicking on the "Add a new question" button on my instance results in a 404 error. The underlying link/path for that button is the one I mentioned previously with "view" in the path.
 

However, from that survey list, if I click on the actual survey and then from within the survey, click on Structure and then on "Add a question" the path is the one mentioned previously with "create" in the path.
 

Now that I know the plus button doesn't work, I can simply avoid it but it seems to be a coding problem? 

1. Clicking on the survey itself from the list window takes me to this path: #https://www.mysite.com/index.php/surveyAdministration/view?surveyid=386671

2. However, as mentioned above, clicking on the plus button gives me this path: #https://www.mysite.com/index.php/questionAdministration/view/surveyid/386671

3. The link, that works, to add a question is: #https://www.mysite.com/index.php/questionAdministration/create/surveyid/386671

It seems to me that the path should have "create" instead of "view" where I have underlined it above in 2 as highlighted in 3 which is the link that works. Or, if the goal is to simply first display the survey (which is contrary to the popup text that appears when hovering over the plus) then the path requires a question mark "?" instead of a slash "/" but that would display the survey instead of adding a question. The more I think about it the more it seems this is a small coding error...?

Regards
Jason
Last edit: 3 years 6 months ago by jlhollowell. Reason: Mistake in original
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #219115 by Joffm
Hi,
I wasn't aware that you talked about this button - which I never use.

A look at the change logs shows for (version 5.0.9.)
[url] community.limesurvey.org/releases/ [/url]

 

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: jlhollowell
The topic has been locked.
  • jlhollowell
  • jlhollowell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #219117 by jlhollowell
Joffm,

Thanks, clearly I need to upgrade. :-)

Cheers
Jason
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose