Forums / Developer / Autoload breaking the site

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 X

Thursday 11 September 2008 4:34:31 pm

hi,

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