OO extension setup

Author Message

Tony Wood

Tuesday 20 September 2005 4:03:23 am

Hi,

I am testing the OO beta 2 extension. All installs well and I get the admin interface showing export but I get empty odt documents.
The errors log shows

[ Sep 20 2005 11:59:40 ] [] Unsupported attribute for OO conversionezauthor
[ Sep 20 2005 11:59:40 ] [] Unsupported attribute for OO conversionezxmltext
[ Sep 20 2005 11:59:40 ] [] Unsupported attribute for OO conversionezxmltext
[ Sep 20 2005 11:59:40 ] [] Unsupported attribute for OO conversionezboolean
[ Sep 20 2005 11:59:40 ] [] Unsupported attribute for OO conversionezobjectrelation

I have the following in the oo.ini file.

[article]
Attribute[title]=title
Attribute[intro]=intro
Attribute[body]=body

[folder]
Attribute[title]=name
Attribute[shortdescription]=short_description

Am I missing anything here.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Tuesday 20 September 2005 5:31:23 am

I found the solution to this. No reply needed.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bård Farstad

Tuesday 20 September 2005 5:31:49 am

Tony,

the warnings you get can be ignored. That's my mistake ;)

I am suspecting that there is something wrong with zip on your system. The OASIS extension uses the zip command line to create the .odt document. The zip and unzip command line program needs to be installed and available for the apache user. You can also specify the path in oo.ini if needed.

There are currently some error checking missing, checking for zip is one of them.

--bård

Documentation: http://ez.no/doc

Bård Farstad

Tuesday 20 September 2005 5:32:26 am

OK, since I replied. Was it zip which was the problem?

--bård

Documentation: http://ez.no/doc

Tony Wood

Tuesday 20 September 2005 6:20:04 am

Interesting,

After testing I think the problem lies with the delivery. by removing
//eZDir::recursiveDelete( $this->OOExportDir );
//eZDir::recursiveDelete( $this->OOTemplateDir);
I can see that all the xml info is being created.

The problem is with the zip/chdir command in the file...

chdir( $this->OOExportDir ); just plain fails on a chroot environment (and appears to be the only time it has been used in eZP). So I hard coded for now.
Even with the hardcoded info the zip file is not being created.

I will keep digging, but would really prefer if you could use the zlib code rather than the exec zip command.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Gabriel Ambuehl

Tuesday 20 September 2005 6:40:51 am

AFAIK, zlib does gzip whereas zip does plain ZIP (as in the veneral pkzip).

But I agree, PHP should be able to do ZIP internally. Maybe someone got a PHP class to create ZIPs (will be fast, for sure ;) )

Visit http://triligon.org

Tony Wood

Tuesday 20 September 2005 6:42:25 am

Bard commented out some code.

        require_once('extension/oo/lib/pclzip.lib.php');
            $archive = new PclZip( $this->OORootDir . "ootest.odt" );
            eZDebug::writeError( "file " .$this->OORootDir . "ootest.odt");

            $archive->create( $this->OOExportDir,
                              PCLZIP_OPT_REMOVE_PATH, $this->OOExportDir );
        }

This works well for me :)

odt has a problem but at least I can get an .odt file :)

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

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 22:32:46
Script start
Timing: Jan 18 2025 22:32:46
Module start 'layout'
Timing: Jan 18 2025 22:32:46
Module start 'content'
Timing: Jan 18 2025 22:32:47
Module end 'content'
Timing: Jan 18 2025 22:32:47
Script end

Main resources:

Total runtime1.0297 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.9297152.6094
Module start 'layout' 0.00470.0029 741.539139.4297
Module start 'content' 0.00761.0207 780.9688632.4219
Module end 'content' 1.02820.0014 1,413.390620.1875
Script end 1.0296  1,433.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2920160.0002
Check MTime0.00120.1211160.0001
Mysql Total
Database connection0.00080.075710.0008
Mysqli_queries0.955692.8054710.0135
Looping result0.00070.0677690.0000
Template Total0.998597.020.4993
Template load0.00220.217820.0011
Template processing0.996396.757820.4981
Template load and register function0.00010.009410.0001
states
state_id_array0.00100.096510.0010
state_identifier_array0.00190.182420.0009
Override
Cache load0.00200.1961470.0000
Sytem overhead
Fetch class attribute can translate value0.00050.046230.0002
Fetch class attribute name0.00110.106490.0001
XML
Image XML parsing0.00140.133430.0005
class_abstraction
Instantiating content class attribute0.00000.0032130.0000
General
dbfile0.00090.0848230.0000
String conversion0.00000.000840.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs