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.