Uninterpreted PHP CODE at the beginning of user-site

Author Message

Stefano Lacentra

Friday 16 July 2004 9:37:24 am

When I access the user-site i get this stuff right at the beginning of the page...

I am using PHP 4,3,4 over a MAC OS X...any clue?? I travelled around the code but did not find where this piece of stuff comes out....

BTW --> I did not touched anything yet...it appeared right after the installation...no probs in the admin part...

Any clue?? Just point me to the right file and I'll try to sort this thing out...

$text .= $cachedText; if ( isset( $subtreeExpiry ) && $subtreeExpiry ) { include_once( 'lib/ezdb/classes/ezdb.php' ); $db =& eZDB::instance(); if ( substr( $subtreeExpiry, -1 ) != '/' ) { $subtreeExpiry .= '/'; } $subtree =& $db->escapeString( $subtreeExpiry ); $cacheKey =& $db->escapeString( $cachePath ); $insertQuery = "INSERT INTO ezsubtree_expiry ( subtree, cache_file ) VALUES ( '$subtree', '$cacheKey' )"; $db->query( $insertQuery ); } unset( $cachedText ); } } $setArray = $oldSetArray_a74234917afd95e65bbbb1ef6ddbc0c2; ?>

Paul Borgermans

Friday 16 July 2004 2:01:36 pm

Wonderful, I'm not the only one who had that :-) I fgrepped the cache files to find something similar and edited the compiled template file by hand (I think it was a pagelayout file, but not sure anymore.

After a manual clear of the cache files, this got corrected and I could not reproduce it -> did not file it as a bug report either. Is your ezp version 3.4.1 (or higher from pubsvn)?

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Stefano Lacentra

Monday 19 July 2004 10:35:16 am

I did a manual clear of the cached file and everything went fine...

...I xperienced this stuff only on Mac Os X...nor win or linux...

BTW, I did manual exploring of files...but did not get the place where that code is generated...well...I will do a fresh install again to see what happens...you know...just for curiosity....

I am using the latest released version of eZp...

Georg Franz

Monday 19 July 2004 10:45:01 am

Hi,

I've mentioned that problem some time ago (in the forum and at the bug report) ...

This happens, if you have more than one visit at the same time on your server and the cache isn't ready for use ...

(Reason: The cache file which is created isn't locked and two processes tries to write in the same file at the same time ...)

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Stefano Lacentra

Tuesday 20 July 2004 11:03:42 am

Thanks for the explanation :-P

Now sounds clear...

...putting hands inside ezp3....for some extent it is pretty better than v. 2 for some others is a bit more complicated...but overall seems quite flexible and extensible compared to v. 2....

Found an interesting tutorial on modules here:

http://www.phpteam.net/affiche.php?quoi=ezpublish1

Best to all

Stef

Ekkehard Dörre

Tuesday 20 July 2004 12:13:52 pm

@Stef:

in english
http://ez.no/ez_publish/documentation/development/extensions/building_an_ez_publish_module

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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

Main resources:

Total runtime0.7785 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.1641152.6563
Module start 'layout' 0.00800.0048 740.820339.5078
Module start 'content' 0.01280.7644 780.3281657.8516
Module end 'content' 0.77720.0013 1,438.179716.1094
Script end 0.7784  1,454.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4800160.0002
Check MTime0.00130.1722160.0001
Mysql Total
Database connection0.00230.299610.0023
Mysqli_queries0.710691.2811700.0102
Looping result0.00080.1010680.0000
Template Total0.740395.120.3701
Template load0.00230.295620.0012
Template processing0.738094.793520.3690
Template load and register function0.00020.019810.0002
states
state_id_array0.00090.118210.0009
state_identifier_array0.00070.089220.0003
Override
Cache load0.00200.2526400.0000
Sytem overhead
Fetch class attribute can translate value0.00060.080440.0002
Fetch class attribute name0.00210.275790.0002
XML
Image XML parsing0.00210.273440.0005
class_abstraction
Instantiating content class attribute0.00000.002190.0000
General
dbfile0.00130.1732290.0000
String conversion0.00000.001340.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
6content/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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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: 6

Time used to render debug report: 0.0002 secs