Cannot redeclare problem

Author Message

Roman Pszonczenko

Tuesday 02 December 2003 1:00:42 am

Hi everyone. I have the following problem in my eZPublish installation:

Fatal error: Cannot redeclare class eztemplatefileresource:eztemplatedesignresource in /home/ezpublish/kernel/common/eztemplatedesignresource.php on line 42
Fatal error: eZ publish did not finish it's request

It happened after upgrading from eZPublish 3.2 to eZPublish 3.3.
I have no idea what is going on, because eztemplatedesignresource is included only once. How this class could be redeclared?

Jan Borsodi

Wednesday 03 December 2003 4:38:23 am

It is most likely a problem with a PHP accelerator (if you are using one?). When PHP files are upgraded most accelerators has problems with this.

You should stop the webserver and cleanup all cache files from the accelerator, the files are normally found in /tmp. You should check the documentation for the accelerator for where the files are present.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Roman Pszonczenko

Tuesday 16 December 2003 7:02:10 am

I'm actually using phpaccelerator-1.3.3r2.
You were totally right!!! If I clean cache befroe every start of apache daemon it works perfectly. Thnx.

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 19:25:35
Script start
Timing: Jan 18 2025 19:25:35
Module start 'layout'
Timing: Jan 18 2025 19:25:35
Module start 'content'
Timing: Jan 18 2025 19:25:36
Module end 'content'
Timing: Jan 18 2025 19:25:36
Script end

Main resources:

Total runtime0.7357 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 589.0391152.6250
Module start 'layout' 0.00850.0049 741.664139.4297
Module start 'content' 0.01340.7207 781.0938530.9531
Module end 'content' 0.73410.0016 1,312.04698.1797
Script end 0.7357  1,320.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5100160.0002
Check MTime0.00160.2170160.0001
Mysql Total
Database connection0.00150.204810.0015
Mysqli_queries0.684393.0089570.0120
Looping result0.00060.0828550.0000
Template Total0.695794.620.3478
Template load0.00220.294420.0011
Template processing0.693594.257620.3467
Template load and register function0.00030.038910.0003
states
state_id_array0.00160.213710.0016
state_identifier_array0.00150.200620.0007
Override
Cache load0.00180.2463150.0001
Sytem overhead
Fetch class attribute can translate value0.00120.167120.0006
Fetch class attribute name0.00140.190640.0004
XML
Image XML parsing0.00070.096220.0004
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00090.1262170.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs