code display on template page

Author Message

Nhu Nguyen

Tuesday 24 May 2005 6:05:47 pm

Hi, I was messing with the Design code and the result is this:

http://truyentranh.com/news/

Anybody has any idea how to fix this? Please?

kracker (the)

Tuesday 24 May 2005 6:58:09 pm

Nhu,

Kudos on the very unique and pleasing site design used by your eZ publish installation.

It happens to be the nicest design I've seen in some time in a personal eZ publish site :)

Sorry, I'm not certain just what you've done to create this display output errors.

I would suggest reviewing the design/ templates for errors or omissions in the eZ template language (common), also review the settings/ in the same manner.

If you have been editing files in the kernel/ or lib/ directories, review those as well.

If that does not solve the problem, could also (arguably faster) move your existing site to the side,

 mv html truyentranh_com_corrupt

reinstall and then copy over your alterations made previously to the design/ and settings/ directories back over into the newly reinstalled eZ publish one by one, by hand to restore the desired look of your site.

This seems complicated but with so few changes made to most eZ publish installations it is relatively simple to do and educational process :)

happy hacking,
//kracker

<i>FSF : Richard M. Stallman : The Free Software Movement and the GNU/Linux Operating System, given at LinuxTag, July 2000</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Bruce Morrison

Tuesday 24 May 2005 11:38:29 pm

Hi Nhu

Have you tried clearing the cache?

My guess is that one of the compiled files is missing an opening <?php and is being traeted as a text file. In stead of being read and processed it is being displayed when it is read (that is why it is appearing before the HTML.

If clearing the cache does not work then have a look at you override.ini files for the missing initial <?php

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nhu Nguyen

Wednesday 25 May 2005 3:21:47 pm

Thanks for the compliment. This error probably take me a long time to fix :( :(

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 31 2025 06:13:27
Script start
Timing: Jan 31 2025 06:13:27
Module start 'layout'
Timing: Jan 31 2025 06:13:27
Module start 'content'
Timing: Jan 31 2025 06:13:27
Module end 'content'
Timing: Jan 31 2025 06:13:27
Script end

Main resources:

Total runtime0.0159 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.0048 588.1328151.2109
Module start 'layout' 0.00480.0029 739.343836.6484
Module start 'content' 0.00760.0067 775.992294.2656
Module end 'content' 0.01440.0015 870.257833.9922
Script end 0.0159  904.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002314.4267140.0002
Check MTime0.00106.5109140.0001
Mysql Total
Database connection0.00074.423010.0007
Mysqli_queries0.002314.554030.0008
Looping result0.00000.163310.0000
Template Total0.00117.110.0011
Template load0.00095.516410.0009
Template processing0.00021.559210.0002
Override
Cache load0.00063.799910.0006
General
dbfile0.002817.455380.0003
String conversion0.00000.058440.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