Saving Changes To A Template

More
3 years 10 months ago #101817 by zgall1
zgall1 created the topic: Saving Changes To A Template
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 10 months ago #101824 by tpartner
tpartner replied the topic: Saving Changes To A Template
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 10 months ago #101839 by DenisChenu
DenisChenu replied the topic: Saving Changes To A Template
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).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 10 months ago #101878 by zgall1
zgall1 replied the topic: Saving Changes To A Template
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 9 months ago #101898 by DenisChenu
DenisChenu replied the topic: Saving Changes To A Template
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).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: zgall1

Please Log in to join the conversation.

More
3 years 9 months ago #102014 by zgall1
zgall1 replied the topic: Saving Changes To A Template
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 9 months ago #102150 by DenisChenu
DenisChenu replied the topic: Saving Changes To A Template
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).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 8 months ago #103577 by LloydW
LloydW replied the topic: Saving Changes To A Template
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 8 months ago - 3 years 8 months ago #103579 by DenisChenu
DenisChenu replied the topic: Saving Changes To A Template
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).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 3 years 8 months 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 8 months ago - 3 years 8 months ago #103590 by LloydW
LloydW replied the topic: Saving Changes To A Template
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 8 months ago by LloydW.

Please Log in to join the conversation.

More
3 years 8 months ago #103593 by DenisChenu
DenisChenu replied the topic: Saving Changes To A Template
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).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: LloydW

Please Log in to join the conversation.

More
3 years 8 months ago #103600 by LloydW
LloydW replied the topic: Saving Changes To A Template
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 8 months ago #103609 by LloydW
LloydW replied the topic: Saving Changes To A Template
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 8 months ago #103611 by tpartner
tpartner replied the topic: Saving Changes To A Template
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 8 months ago #103626 by tpartner
tpartner replied the topic: Saving Changes To A Template
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.

Start now!

Just create your account and start using Limesurvey today.

Register now