Forums / Setup & design / [eZ Publish 4.0.0beta1] Add extension

[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

eZ debug

Timing: Jan 18 2025 11:24:07
Script start
Timing: Jan 18 2025 11:24:07
Module start 'content'
Timing: Jan 18 2025 11:24:07
Module end 'content'
Timing: Jan 18 2025 11:24:07
Script end

Main resources:

Total runtime0.9409 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 595.4922180.8281
Module start 'content' 0.00610.7910 776.3203605.7656
Module end 'content' 0.79720.1437 1,382.0859337.3984
Script end 0.9409  1,719.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4487210.0002
Check MTime0.00160.1715210.0001
Mysql Total
Database connection0.00080.080710.0008
Mysqli_queries0.854390.78921990.0043
Looping result0.00250.26981970.0000
Template Total0.909596.720.4547
Template load0.00310.325120.0015
Template processing0.906496.329820.4532
Template load and register function0.00010.010610.0001
states
state_id_array0.00110.112510.0011
state_identifier_array0.00230.240020.0011
Override
Cache load0.00270.2872260.0001
Sytem overhead
Fetch class attribute can translate value0.00180.187040.0004
Fetch class attribute name0.00250.267170.0004
XML
Image XML parsing0.00200.213840.0005
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00320.3422400.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs