Forums / Setup & design / include uri problem

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?

eZ debug

Timing: Jan 18 2025 04:32:00
Script start
Timing: Jan 18 2025 04:32:00
Module start 'content'
Timing: Jan 18 2025 04:32:01
Module end 'content'
Timing: Jan 18 2025 04:32:01
Script end

Main resources:

Total runtime1.2127 sec
Peak memory usage4,096.0000 KB
Database Queries192

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.6875180.8438
Module start 'content' 0.00611.0573 768.5313485.8516
Module end 'content' 1.06340.1492 1,254.3828336.7734
Script end 1.2126  1,591.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3337210.0002
Check MTime0.00150.1260210.0001
Mysql Total
Database connection0.00100.078610.0010
Mysqli_queries1.130593.22291920.0059
Looping result0.00230.19081900.0000
Template Total1.182497.520.5912
Template load0.00180.147420.0009
Template processing1.180697.348320.5903
Template load and register function0.00020.018210.0002
states
state_id_array0.00110.090110.0011
state_identifier_array0.00290.239820.0015
Override
Cache load0.00150.1207270.0001
Sytem overhead
Fetch class attribute can translate value0.00270.222420.0013
Fetch class attribute name0.00190.159640.0005
XML
Image XML parsing0.00230.186120.0011
class_abstraction
Instantiating content class attribute0.00000.003260.0000
General
dbfile0.00260.2168270.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs