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

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 02:14:42
Script start
Timing: Jan 18 2025 02:14:42
Module start 'layout'
Timing: Jan 18 2025 02:14:42
Module start 'content'
Timing: Jan 18 2025 02:14:43
Module end 'content'
Timing: Jan 18 2025 02:14:43
Script end

Main resources:

Total runtime1.0216 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 592.1953152.6406
Module start 'layout' 0.00780.0040 744.835939.4844
Module start 'content' 0.01191.0080 784.3203651.7266
Module end 'content' 1.01990.0017 1,436.046916.1406
Script end 1.0215  1,452.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3609160.0002
Check MTime0.00140.1399160.0001
Mysql Total
Database connection0.00040.040310.0004
Mysqli_queries0.936091.6221680.0138
Looping result0.00070.0657660.0000
Template Total0.986896.620.4934
Template load0.00220.214920.0011
Template processing0.984596.377520.4923
Template load and register function0.00040.035310.0004
states
state_id_array0.00110.110410.0011
state_identifier_array0.00100.094220.0005
Override
Cache load0.00210.2069990.0000
Sytem overhead
Fetch class attribute can translate value0.00040.043830.0001
Fetch class attribute name0.00140.141380.0002
XML
Image XML parsing0.00120.114430.0004
class_abstraction
Instantiating content class attribute0.00000.001990.0000
General
dbfile0.00110.1044220.0000
String conversion0.00000.001640.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 71
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs