include uri problem

Author Message

Børge Warvik

Tuesday 07 February 2006 5:43:49 am

This is the pagelayout.tpl:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">

<head>
	<title> (local)

	<style type="text/css">
		@import url({"stylesheets/main.css"|ezdesign});
	</style>

</head>
<body>
<!--start body-->
<div id="body">
	<div id="head">
		<h1>Site</h1>
	</div>

	{include uri='design:menu.tpl'}




	<div id="topmenu">
		<ul>
			<li><a href="/">Home</a></li>
			<li><a href="/">Home</a></li>
		</ul>
	</div>

	<div id="content">
	
		<div id="sidecontent">
			sidecolumn
		</div>

		<div id="maincontent">
			{$module_result.content}
		</div>

	</div>

	<div id="footer">
		
	</div>

</div>
<!--end body-->
</body>

</html>

I get this error:


Warning: eZTemplate  	Feb 07 2006 14:41:19

No template could be loaded for "menu.tpl" using resource "design"

"menu.tpl" is in the same folder as "pagelayout.tpl". Anyone see what I'm doing wrong?

Børge Warvik

Thursday 09 February 2006 5:13:56 am

I've been working on this problem for some days now, and I'm pretty sure it comes down to what rights are given to the files.

My setup is:
Ubuntu (Linux)
Apache2
PHP 4.3
MySql 4.1

All files are given do the user group "www-data", and most file are given to the user "www-data". The files I've created after installation is given to the user "<myuser>" and group "www-data". <myuser> is part of the user group "www-data".

My question is what priviliges do I need to give to directories and files?

Please help, this has been giving me big problems!

Børge Warvik

Thursday 09 February 2006 5:53:39 am

This is what I've done, but still get this debug error message:

No template could be loaded for "parts/submenu.tpl" using resource "design"

In my /var/www/ dir I've got a folder called "ez" where my ez files are located. I've given the folder these permissions:

sudo chown www-data:www-data -R ez
sudo chmod u+swr ez -R
sudo chmod g+swr ez -R
sudo chmod o+x ez -R

Can I do something else?

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 11:06:55
Script start
Timing: Jan 18 2025 11:06:55
Module start 'layout'
Timing: Jan 18 2025 11:06:55
Module start 'content'
Timing: Jan 18 2025 11:06:56
Module end 'content'
Timing: Jan 18 2025 11:06:56
Script end

Main resources:

Total runtime0.8181 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0114 587.9063152.6250
Module start 'layout' 0.01140.0035 740.531339.4297
Module start 'content' 0.01490.8017 779.9609480.7734
Module end 'content' 0.81650.0016 1,260.734412.1875
Script end 0.8181  1,272.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4172160.0002
Check MTime0.00140.1665160.0001
Mysql Total
Database connection0.00090.106210.0009
Mysqli_queries0.763393.2968550.0139
Looping result0.00070.0851530.0000
Template Total0.781595.520.3907
Template load0.00220.269420.0011
Template processing0.779395.246320.3896
Template load and register function0.00010.015410.0001
states
state_id_array0.00080.099110.0008
state_identifier_array0.00140.176720.0007
Override
Cache load0.00190.2344270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.068710.0006
Fetch class attribute name0.00200.241840.0005
XML
Image XML parsing0.00050.066610.0005
class_abstraction
Instantiating content class attribute0.00000.004860.0000
General
dbfile0.00080.1019160.0001
String conversion0.00000.001140.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 7

Time used to render debug report: 0.0003 secs