PHP Notice when using Stale Cache

Author Message

Benjamin Lorteau

Friday 11 March 2011 1:04:00 am

Hello,

I've been using eZ Publish for my personal website for a long time now, with first version being 4.0.

Since I upgraded to 4.1 and activated Stale Cache, my Apache error log is flogged with this line :

 PHP Notice:  Undefined index:   in kernel/private/classes/clusterfilehandlers/ezfs2filehandler.php on line 168

I'm now in 4.4 since yesterday, and I'm still having this line added over and over to my error log file.

Here's the extract of the file with the line highlighted :

// no stalecache file exists, what we do depends on settings 
else
{
    // generate the dynamic data without storage
>>> if ( $this->nonExistantStaleCacheHandling[ $this->cacheType ] == 'generate' )
    {
        eZDebugSetting::writeDebug( 'kernel-clustering', $this->filePath, "Generation is being processed, generating own version", __METHOD__ );
        break;
    }
    // wait for the generating process to be finished (or timedout)

Did I miss something in configuration during upgrade ?

Thanks in advance for your reply !

Benjamin

eZ Publish personal project : http://www.aeriesguard.com [fr]

André R.

Friday 11 March 2011 4:55:42 am

Could you also post the line from that file and 2 before and after it?

( In that case more people can help as they might be on a different version or running from git where line numbers are different either because of license headers changed by our build system or changes in between versions / updates in that file. )

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Benjamin Lorteau

Friday 11 March 2011 6:20:49 am

Hello André,

thanks for the reply, I added the context to the subject and I tried to highlight the actual line.

eZ Publish personal project : http://www.aeriesguard.com [fr]

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 02:08:14
Script start
Timing: Jan 18 2025 02:08:14
Module start 'layout'
Timing: Jan 18 2025 02:08:14
Module start 'content'
Timing: Jan 18 2025 02:08:14
Module end 'content'
Timing: Jan 18 2025 02:08:14
Script end

Main resources:

Total runtime0.0168 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.0057 588.0391152.6406
Module start 'layout' 0.00570.0034 740.679739.4844
Module start 'content' 0.00910.0054 780.164193.4141
Module end 'content' 0.01450.0023 873.578134.2891
Script end 0.0168  907.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.8716140.0002
Check MTime0.00116.6449140.0001
Mysql Total
Database connection0.00095.452610.0009
Mysqli_queries0.003118.714130.0010
Looping result0.00000.095010.0000
Template Total0.001810.610.0018
Template load0.00105.804210.0010
Template processing0.00084.757910.0008
Override
Cache load0.00073.989510.0007
General
dbfile0.00031.504280.0000
String conversion0.00000.058140.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