Forums / Developer / exclude directories from autoload array

exclude directories from autoload array

Author Message

Michael L.

Tuesday 05 October 2010 6:32:26 am

Hi @ all,

I would like to include openx in ezpublish 4.4.
now I have the following directory structure:

extension
-xnetadserver
--design
--settings
--src
---openx

openx produces many errors in the autoload array. how can I exclude the src/openx directories from autoload array?

Thanks for your help...

Michael

Damien Pobel

Tuesday 05 October 2010 6:51:07 am

Hi Michael,

"

openx produces many errors in the autoload array. how can I exclude the src/openx directories from autoload array?

"

what kind of error do you have ?

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Michael L.

Tuesday 05 October 2010 6:57:32 am

Hi Damien,

all errors look like this:

Problems detected during autoload generation:

  • Class ZoneAdObjectHandler in file extension/xnetadserver/src/openx/etc/changes/migration_tables_core_327.php is already defined in:
    extension/xnetadserver/src/openx/etc/changes/migration_tables_core_127.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class ZoneBannerHandler in file extension/xnetadserver/src/openx/etc/changes/migration_tables_core_327.php is already defined in:
    extension/xnetadserver/src/openx/etc/changes/migration_tables_core_127.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class ZoneCampaignHandler in file extension/xnetadserver/src/openx/etc/changes/migration_tables_core_327.php is already defined in:
    extension/xnetadserver/src/openx/etc/changes/migration_tables_core_127.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class Services_JSON_Error in file extension/xnetadserver/src/openx/lib/JSON/JSON.php is already defined in:
    extension/xnetadserver/src/openx/lib/JSON/JSON.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class JSMin in file extension/xnetadserver/src/openx/lib/minify/JSMin.php is already defined in:
    extension/ezjscore/lib/jsmin.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class JSMinException in file extension/xnetadserver/src/openx/lib/minify/JSMin.php is already defined in:
    extension/ezjscore/lib/jsmin.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class OLE in file extension/xnetadserver/src/openx/lib/pear/OLE/OLE.php is already defined in:
    extension/xnetadserver/src/openx/lib/pear/OLE.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class Pager in file extension/xnetadserver/src/openx/lib/wact/db/interfaces/pager.php is already defined in:
    extension/xnetadserver/src/openx/lib/pear/Pager.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.

.

.

.

and so on...

Frédéric DAVID

Tuesday 05 October 2010 7:54:28 am

The script bin/php/ezpgenerateautoloads.php have a option to exclude some directories.

You can use the option --exclude= to exclude some things

Example :

php bin/php/ezpgenerateautoloads.php -e --exclude=extension_path

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Michael L.

Wednesday 06 October 2010 7:24:23 am

Hi Frédéric,

this works fine! But it is possible to write a phpfile to manage this?

e.g. in the eztemplateautoload.php file i can define the $eZTemplateOperatorArray which are automatically loaded into the system.

is a similar solution for directories inside the extensions available?

Frédéric DAVID

Friday 08 October 2010 2:18:29 am

Hi

the directive --exclude can take all directory path you want like extension/xnetadserver/src/openx.

You can separate differents directories with a ,

php bin/php/ezpgnerateautoloads.php --exclude=first_directory,subdirectory_of_an_extension

Regards

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

eZ debug

Timing: Jan 18 2025 00:04:15
Script start
Timing: Jan 18 2025 00:04:15
Module start 'content'
Timing: Jan 18 2025 00:04:16
Module end 'content'
Timing: Jan 18 2025 00:04:16
Script end

Main resources:

Total runtime0.8088 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.8281180.8359
Module start 'content' 0.00540.6757 768.6641656.8203
Module end 'content' 0.68110.1277 1,425.4844341.0703
Script end 0.8088  1,766.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4584210.0002
Check MTime0.00130.1669210.0001
Mysql Total
Database connection0.00070.082610.0007
Mysqli_queries0.718788.85512050.0035
Looping result0.00230.28472030.0000
Template Total0.783796.920.3918
Template load0.00180.220320.0009
Template processing0.781996.665220.3909
Template load and register function0.00020.029310.0002
states
state_id_array0.00050.057710.0005
state_identifier_array0.00140.173120.0007
Override
Cache load0.00170.2050990.0000
Sytem overhead
Fetch class attribute can translate value0.00150.179740.0004
Fetch class attribute name0.00150.184180.0002
XML
Image XML parsing0.00120.152940.0003
class_abstraction
Instantiating content class attribute0.00000.002990.0000
General
dbfile0.00360.4487330.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
18content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
10content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
12content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
8content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 71
 Number of unique templates used: 11

Time used to render debug report: 0.0002 secs