[eZ Publish 4.0.0beta1] Add extension

Author Message

Alain Sahli

Friday 23 November 2007 8:07:30 am

Hi all!

I would add a new extension and the following error appears :

Fatal error: Class 'ezcFile' not found in /home/www/wess.ch/lib/ezutils/classes/ezautoloadgenerator.php on line 283
Fatal error: eZ Publish did not finish its request

The execution of eZ Publish was abruptly ended, the debug output is present below.

I found this bug in the Issue Tracker here : http://issues.ez.no/IssueView.php?Id=12008&activeItem=14

And the solution is:

Do you have eZ Components Base and File component installed? This is a requirement for eZ Publish 4 now.

But I don't know how to install eZ Components Base and File in eZ Publish!

Can somebody help me ?

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

Kristof Coomans

Friday 23 November 2007 8:50:51 am

Hi Alain

For installation of eZ Components, please consult the documentation at the eZ Components website: http://ezcomponents.org/docs/install

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Alain Sahli

Friday 23 November 2007 9:06:44 am

Ok thanks, it works ;-)

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

Piotrek Karaƛ

Saturday 24 November 2007 1:17:40 am

eZ Publish 4 seems to have a eZcomponents-dedicated autoload built in. When I tried the autoload declaration:

require_once "ezc/Base/base.php";
function __autoload( $className )
{ 
	ezcBase::autoload( $className ); 
}

I got an error, because __autoload function had already been there, in /autoload.php:

(...)
$baseEnabled = @include( 'ezc/Base/base.php' );
if ( !$baseEnabled )
{
    $baseEnabled = @include( 'Base/src/base.php' );
}

define( 'EZCBASE_ENABLED', $baseEnabled );

function __autoload( $className )
{
    static $ezpClasses = null;
    if ( is_null( $ezpClasses ) )
    {
        $ezpKernelClasses = require 'autoload/ezp_kernel.php';
        $ezpExtensionClasses = require 'autoload/ezp_extension.php';
        $ezpClasses = array_merge( $ezpKernelClasses, $ezpExtensionClasses );
    }

    if ( array_key_exists( $className, $ezpClasses ) )
    {
        require( $ezpClasses[$className] );
    }
    elseif ( EZCBASE_ENABLED )
    {
        ezcBase::autoload( $className );
    }
}

In result, no additional declaration in extension was required. Nice.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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:10:33
Script start
Timing: Jan 18 2025 16:10:33
Module start 'layout'
Timing: Jan 18 2025 16:10:33
Module start 'content'
Timing: Jan 18 2025 16:10:34
Module end 'content'
Timing: Jan 18 2025 16:10:34
Script end

Main resources:

Total runtime0.6689 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 589.1641152.6406
Module start 'layout' 0.00400.0021 741.804739.4609
Module start 'content' 0.00620.6613 781.2656600.6719
Module end 'content' 0.66740.0014 1,381.937516.1563
Script end 0.6689  1,398.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4555160.0002
Check MTime0.00130.2014160.0001
Mysql Total
Database connection0.00060.090610.0006
Mysqli_queries0.614591.8725620.0099
Looping result0.00050.0790600.0000
Template Total0.646196.620.3230
Template load0.00180.272020.0009
Template processing0.644396.317120.3221
Template load and register function0.00010.013910.0001
states
state_id_array0.00060.092410.0006
state_identifier_array0.00110.166120.0006
Override
Cache load0.00150.2270260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.113930.0003
Fetch class attribute name0.00140.206770.0002
XML
Image XML parsing0.00230.347630.0008
class_abstraction
Instantiating content class attribute0.00000.002580.0000
General
dbfile0.00110.1682290.0000
String conversion0.00000.000640.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs