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
|