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.

eZ debug

Timing: Jan 18 2025 22:27:12
Script start
Timing: Jan 18 2025 22:27:12
Module start 'layout'
Timing: Jan 18 2025 22:27:12
Module start 'content'
Timing: Jan 18 2025 22:27:13
Module end 'content'
Timing: Jan 18 2025 22:27:13
Script end

Main resources:

Total runtime1.1336 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.1641152.6406
Module start 'layout' 0.00520.0032 741.804739.4766
Module start 'content' 0.00841.1236 781.2813565.1172
Module end 'content' 1.13200.0016 1,346.398412.1250
Script end 1.1335  1,358.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2981160.0002
Check MTime0.00140.1244160.0001
Mysql Total
Database connection0.00070.063410.0007
Mysqli_queries1.081195.3746620.0174
Looping result0.00050.0411600.0000
Template Total1.099497.020.5497
Template load0.00220.194720.0011
Template processing1.097196.788120.5486
Template load and register function0.00010.010310.0001
states
state_id_array0.00070.062810.0007
state_identifier_array0.00140.119820.0007
Override
Cache load0.00190.1681420.0000
Sytem overhead
Fetch class attribute can translate value0.00050.043530.0002
Fetch class attribute name0.00090.075360.0001
XML
Image XML parsing0.00210.184030.0007
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00200.1786230.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs