EZP4 : custom module function_definition doesn't load !!!

Author Message

H-Works Agency

Friday 17 October 2008 2:49:00 am

Hi all,

I have a serious problem with creating custom fetch function for ezp4.

In fact the process i used for ezp3 doesn't work anymore. It tell me my function doesn't exist for my module "custom".

Is there known issues about this topic ?

Here is the message i have tough everything looks fine and was working on version 3 :

No class 'eZExtrafetchFunctionCollection' available for function 'keywords' in module 'extrafetch'

EZP is Great

André R.

Friday 17 October 2008 3:12:50 am

eZExtrafetchFunctionCollection needs to be defined in the autoload file, either by running the script to update the autoload file or by manually edit autoload/ezp_extensions.php

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

H-Works Agency

Friday 17 October 2008 9:16:02 am

Uhm great....in fact that was the point. Thanx andré

Why this thing was added. It's tedious to do this everytime.

Why not using the ezp3 "include_file" in each function_definition.php ?

EZP is Great

Kristof Coomans

Monday 20 October 2008 12:47:55 am

Hi Martin

The autoload features will be overhauled in eZ Publish 4.1. We're looking into some possibilities to make it more flexible while developing extensions.

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

H-Works Agency

Monday 27 October 2008 2:46:58 am

Ok i understand. In fact its not very clean especially when its a multiple-site ezp4 install (as this file is common for all installations).

EZP is Great

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 31 2025 03:45:51
Script start
Timing: Jan 31 2025 03:45:51
Module start 'layout'
Timing: Jan 31 2025 03:45:51
Module start 'content'
Timing: Jan 31 2025 03:45:51
Module end 'content'
Timing: Jan 31 2025 03:45:51
Script end

Main resources:

Total runtime0.0236 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2813151.2266
Module start 'layout' 0.00540.0042 739.5078220.7188
Module start 'content' 0.00960.0124 960.22661,001.8984
Module end 'content' 0.02200.0016 1,962.125037.9922
Script end 0.0235  2,000.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.3154140.0002
Check MTime0.00114.5179140.0001
Mysql Total
Database connection0.00062.585210.0006
Mysqli_queries0.003314.182930.0011
Looping result0.00000.097110.0000
Template Total0.00114.910.0011
Template load0.00093.760010.0009
Template processing0.00031.077610.0003
Override
Cache load0.00062.716810.0006
General
dbfile0.00114.503780.0001
String conversion0.00000.039540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs