Could not create template, permission denied.

Author Message

Loke Lokeson

Tuesday 28 October 2003 2:38:10 am

Hi,

I am following the tutorial, i.e.
Frontpage / Developer / eZ publish 3 / documentation / Building an eZ... / The welcome pag... / Creating and using a custom template

Everything went well until I got to the section on templates:

"Creating and using a custom template"

1. Bring up the administration interface.
2. Click on the "Setup" tab.
3. Click on "Templates" (in the menu on the left hand side).
A list of template files will appear.
4. Locate a file called "/node/view/full" and click on it.
5. On the next page, simply click "Create New".
6. Type in "full_view_welcome" into the template name field.
7. Make sure the "Section" and "Class" dropdown boxes are set to "Any".
8. Type in the identification number of the welcome-page node.
9. Make sure that "Empty" is chosen in the "Base template on" section.
10. Click create.

In pt. 6. I typed in 44, which I got from howering the cursor over the document (under the "Content" menu).

However, when I click to create, I end up with the following error message:

Template list / Template view / Create new template
Create new template override for /node/view/plain.tpl
Could not create template, permission denied.

Template will be placed in design/tscm/override/templates/

In the tutorial it states that:
"The newly generated template file will be put in the "design/tscm/override/templates/" directory", which agree with the message quoted above. However, this directory did not exist. Should it? Or is there a typo in the tutorial? Assuming that it should exist, I created it manually and chmod'ed it to 666, but I still got the same error message. Yes, I did clean out the cache between each attempt.

Anybody that have encountered this behaviour before?

Regards

Arash Molavi

Tuesday 28 October 2003 5:07:45 am

You have to set the permenissions in /settings/override/ and /settings/siteaccess/ too:D

Balazs Halasy

Tuesday 28 October 2003 5:29:47 am

The "permission denied" error appears when the web server is unable to create either the template file itself or modify/create the override file.

Make sure the user running the web-server has write access to the "settings/siteaccess/tscm" directory.

Make sure the user running the web-server has write access to the "design/tscm/override/templates" directory.

I might have forgotten to mention the creation of the template subdir in the override dir. I'll look into it later today.

Balazs

Loke Lokeson

Tuesday 28 October 2003 7:48:13 am

chmod -R 666 settings/siteaccess/tscm fixed it.
Thanks.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.