Check out the LimeSurvey source code on GitHub!

Saving Changes To A Template

More
3 years 2 months ago #101817 by zgall1
I am trying to make changes to a template but when I try to save changes, I receive the following error:

Forbidden

You don't have permission to access /survey2/index.php/admin/templates/sa/templatesavechanges on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to > handle the request.


When I look in the templates folder, I do not see the templates I have created even though they are visible from within the LimeSurvey administration panel. Does anyone know how I can fix this error?

Please Log in to join the conversation.

More
3 years 2 months ago #101824 by tpartner
The custom templates are in the /upload/templates directory. I would check the permissions for that directory.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: zgall1

Please Log in to join the conversation.

More
3 years 2 months ago #101839 by DenisChenu
Hi,

And there can be another problem with your server. Check if this hapen for template.css file too.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
3 years 2 months ago #101878 by zgall1
tpartner - All of the sub-folders within the upload/templates directory have been assigned write permission but yet I still cannot save changes. I have also tried to adjust the permissions of folders that are higher within the hierarchy but I haven't had any luck.

DenisChenu - The changes I am trying to make are to the template.css file. Can you elaborate on what the problem with my server might be?

Please Log in to join the conversation.

More
3 years 2 months ago #101898 by DenisChenu
It's a problem with some server with specific security : if file have <script> inside : launch error.

Did you set execute permiison on folder too ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: zgall1

Please Log in to join the conversation.

More
3 years 1 month ago #102014 by zgall1
DenisChenu - I set the execute permission on every folder that could possibly be related to the template and it was not successful.

Please Log in to join the conversation.

More
3 years 1 month ago #102150 by DenisChenu
Don't have anothger idea :
Please trye to look at your server erro log to see what can happened.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
3 years 1 week ago #103577 by LloydW
I'm getting the same error - logged in as either admin or a superuser.
I've checked all the permissions for the relevant directories & they are 775 or 777.

The check of the error log comes back with:
[Thu Jan 16 17:29:52 2014] [error] [client 124.170.94.71] File does not exist: /home/techlife/public_html/403.shtml, referer: www.tech4life.com.au/surveys/index.php/a...ame/lloyd_accessible

So as far as the server seems to be saying the problem is that it does not have a html error file - not about permissions for the template.

Any other ideas?

Please Log in to join the conversation.

More
3 years 1 week ago - 3 years 1 week ago #103579 by DenisChenu
Did you try another file ?

Best is to test with:
- template.css : if it don't work : it's a rigth issue on your server : we can not fix this server issue
- If ok with template.css, but not with pstpl file : look at this pstpl if there are some <script> tag inside. Is yes : try to remobe it. If OK : server issue.

PS : some server need 700 rigth, some other 744 etc ... contact your hoster

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 3 years 1 week ago by DenisChenu. Reason: some server need 700 rigth, some other 744 etc ... contact your hoster

Please Log in to join the conversation.

More
3 years 1 week ago - 3 years 1 week ago #103590 by LloydW
OK Denis the template.css gave the same error.

But what I don't understand is how Limesurvey can import a new template (or even create a new one which I just did) and it is stored in that directory and there are no errors. I can successfully edit using a 'notepad' type application on the server - also no problems.

Only when I try to save from the TemplateEditor.

Seems an odd one to me.
Last Edit: 3 years 1 week ago by LloydW.

Please Log in to join the conversation.

More
3 years 1 week ago #103593 by DenisChenu
Strange, maybe some issue with template name vs directory name.

Can you set debug to 2 in config.php and try again ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: LloydW

Please Log in to join the conversation.

More
3 years 1 week ago #103600 by LloydW
Sorry Dennis - maybe I've got the wrong file: /application/config/config.php ? I set it to 2 but no change to messages etc.

Please Log in to join the conversation.

More
3 years 1 week ago #103609 by LloydW
Further to my last - I've discovered that the 'NewTemplate' I created this afternoon I can edit (just duplicated the default template).

So I've set all the permissions for the problem one to match.
I also wondered if the name I had used with an underscore may be the problem. I tried duplicating to a different name.

All to no avail. The template won't save. It was created for me and then downloaded to here but that shouldn't cause the problem? If you like I can send the template through to you and we can see if the error is replicated (so is it the template, or my installation)? :unsure:

Please Log in to join the conversation.

More
3 years 1 week ago #103611 by tpartner
Yes, please attach an export of the template here or, if it's sensitive, send Denis and I a private message.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
3 years 1 week ago #103626 by tpartner
Unfortunately, Denis and I are stumped. Neither of us had problems saving files in the template editor.

It's got to be something to do with your server configuration.

The only suggestion I have is that if the shipped templates work, try removing files from the custom template one-by-one to see if any of them are offending the server.

.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: LloydW

Please Log in to join the conversation.

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