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.