error: The template can not be edited.

Author Message

Greg McAvoy-Jensen

Sunday 08 January 2006 11:54:42 am

In the administartion interface, I was used to accessing a product's template by clicking on Classes, then Products, then down at the bottom, hitting the edit button by the override template I needed (product full).

Now however, I I get this error:

The template can not be edited.

The requested template does not exist or is not being used as an override.
Edit <design/shop/override/templates/full/product.tpl> [Template]
Requested template: design/shop/override/templates/full/product.tpl
Siteaccess:

This did happen after I did two things:
1. I changed the website address, as we now have a specific domain name.
2. I changed permissions. I made all things that were't specifically supposed to be Apache's (www-data:www-data in Debian) belong to root (it had been 500:500). Then I ran bin/modfix.sh, and made the recommended chmod and chown to var.

Suggestions? Even if you don't know how this happened, any ideas on how to fix it? The override template is still used when you view the website; the administration interface just thinks it does not exist or is not being used. Here's what the file looks like:

$ ls -la design/shop/override/templates/full/product.tpl
-rw-rw-rw-  1 www-data www-data 3375 2006-01-08 09:55 design/shop/override/templates/full/product.tpl 

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Arran Price

Sunday 08 January 2006 4:00:39 pm

Hi Greg,
if it is a permission issue, I would check the directory permissions (make sure the www-data group has read permission into it - although from your testing it looks to be ok). Also to rule it out as being a unix permission error consider changing to a user with the correct permissions and try editting the file manually. At least that way you determine if its a unix permission issue or something to do with ezpublish).

hope thats of some help.

Arran

Greg McAvoy-Jensen

Sunday 08 January 2006 9:55:23 pm

Yes, I had been able to edit it with vi no problem.

Weird. Now when I go there it works, perhaps because I accessed it through the override list. I'm confused, but the problem is solved.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

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 19:25:58
Script start
Timing: Jan 18 2025 19:25:58
Module start 'layout'
Timing: Jan 18 2025 19:25:58
Module start 'content'
Timing: Jan 18 2025 19:25:58
Module end 'content'
Timing: Jan 18 2025 19:25:58
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.0313152.6406
Module start 'layout' 0.00710.0041 740.671939.4766
Module start 'content' 0.01120.0040 780.148493.4609
Module end 'content' 0.01520.0019 873.609434.3047
Script end 0.0170  907.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.5157140.0002
Check MTime0.00137.3459140.0001
Mysql Total
Database connection0.00148.112610.0014
Mysqli_queries0.005230.640330.0017
Looping result0.00000.110310.0000
Template Total0.00159.010.0015
Template load0.00095.249610.0009
Template processing0.00063.737210.0006
Override
Cache load0.00063.691110.0006
General
dbfile0.00031.520880.0000
String conversion0.00000.046140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs