Autoload breaking the site

Author Message

zurgutt -

Thursday 11 September 2008 5:06:20 am

I had 3.8 site successfully upgraded to 4.0.1 and everything seemed to work fine. Installed the "extract" extension to get data out of the site in csv format and tried to code handler for ezimage datatype when at one point got error:

PHP Fatal error: Undefined class constant 'REPLACE_SUFFIX' in lib/ezimage/classes/ezimageshellhandler.php on line 248

Okay, apparently something was wrong. I removed the extension load line in site.ini and cleared caches to make site work again but alas, error persisted. Very strange, because extension was not active anymore and i had done ezcache --clear-all --purge.

Took me a while to figure out that autoload/ezp_extension.php still called broken code from extension and it somehow made ezp randomly die at this specific point, on pages that had images in them.

So, beware :)

Suggestion: Actually i think that cache --clear-all should regenerate autoload too.

Certified eZ developer looking for projects.
zurgutt at gg.ee

André R.

Thursday 11 September 2008 12:44:48 pm

So the extension contains a copy of a kernel class??

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

Björn Dieding@xrow.de

Thursday 11 September 2008 4:34:31 pm

hi,

I think i know what it is the class name exists twice..

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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

Main resources:

Total runtime1.0900 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 589.0313152.6250
Module start 'layout' 0.00850.0030 741.656339.4453
Module start 'content' 0.01151.0769 781.1016587.0859
Module end 'content' 1.08840.0015 1,368.187512.1641
Script end 1.0899  1,380.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3070160.0002
Check MTime0.00130.1182160.0001
Mysql Total
Database connection0.00140.126510.0014
Mysqli_queries1.038195.2431590.0176
Looping result0.00060.0547570.0000
Template Total1.050396.420.5252
Template load0.00200.184320.0010
Template processing1.048396.178320.5242
Template load and register function0.00010.009410.0001
states
state_id_array0.00180.164410.0018
state_identifier_array0.00100.090720.0005
Override
Cache load0.00160.1501170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.076830.0003
Fetch class attribute name0.00180.167760.0003
XML
Image XML parsing0.00150.140630.0005
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00120.1115300.0000
String conversion0.00000.000540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs