Forums / Developer / EZP4 : custom module function_definition doesn't load !!!

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

eZ debug

Timing: Jan 18 2025 16:25:38
Script start
Timing: Jan 18 2025 16:25:38
Module start 'content'
Timing: Jan 18 2025 16:25:38
Module end 'content'
Timing: Jan 18 2025 16:25:39
Script end

Main resources:

Total runtime0.8803 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.8594180.8125
Module start 'content' 0.00630.7276 768.6719611.3281
Module end 'content' 0.73390.1463 1,380.0000337.3516
Script end 0.8802  1,717.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4635210.0002
Check MTime0.00160.1822210.0001
Mysql Total
Database connection0.00120.135410.0012
Mysqli_queries0.801391.02172020.0040
Looping result0.00240.27812000.0000
Template Total0.845796.120.4228
Template load0.00210.235720.0010
Template processing0.843695.828720.4218
Template load and register function0.00010.010310.0001
states
state_id_array0.00190.216110.0019
state_identifier_array0.00160.176320.0008
Override
Cache load0.00180.2020250.0001
Sytem overhead
Fetch class attribute can translate value0.00130.152740.0003
Fetch class attribute name0.00090.097280.0001
XML
Image XML parsing0.00170.191040.0004
class_abstraction
Instantiating content class attribute0.00000.0017100.0000
General
dbfile0.00420.4746410.0001
String conversion0.00000.000630.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs