Description
The code in autoload is buggy for the case that ezc are installed from zip file:
$useBundledComponents = defined( 'EZP_USE_BUNDLED_COMPONENTS' ) ? EZP_USE_BUNDLED_COMPONENTS === true : file_exists( 'lib/ezc' ); if ( $useBundledComponents ) { set_include_path( './lib/ezc' . PATH_SEPARATOR . get_include_path() ); require 'Base/src/base.php'; $baseEnabled = true; } else if ( defined( 'EZC_BASE_PATH' ) ) { require EZC_BASE_PATH; $baseEnabled = true; } else { $baseEnabled = @include 'ezc/Base/base.php'; if ( !$baseEnabled ) // NEVER HAPPENS! { $baseEnabled = @include 'Base/src/base.php'; } }
The problem here is that include never returns true!
The fix: check for class ezcBase instead.
AND fix it in ezpgenerateautoloads too!
Attachments
Issue Links
- relates to
-
EZP-14628 Check that required eZ Components are installed during setup wizard
- Closed