Skip Menu |

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 53552
Status: resolved
Priority: 0/
Queue: OpenOffice-OODoc

People
Owner: jmgdoc [...] cpan.org
Requestors: support1 [...] thetabiz.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.109
Fixed in: 2.111



In man page it is explained that this works: use OpenOffice::OODoc; my $document = odfDocument(file => "MyFile.odt"); And that does work. For example: #!/usr/bin/perl -w use strict; use warnings; use OpenOffice::OODoc; my $document = odfDocument(file => "Template.odt"); But if I put full path instead of Template.odt, I get error: Can't call method "isa" without a package or object reference at /usr/local/share/perl/5.10.0/OpenOffice/OODoc/File.pm line 362.
Subject: Error opening file with path
Thanks for your report. The bug is now located and will be fixed ASAP. Knowing that the bug is in the OpenOffice::OODoc::File submodule, there is a possible temporary workaround in the mean time. This workaround consists of using the File.pm submodule of the previous version. To install it, follow the instructions below: 1) Locate your OpenOffice::OODoc installation path (using, for example, the oodoc_version command line utility) and look for "File.pm" (it's ID string should be "File.pm 2.201 2009-06-06"); 2) Download the previous version of this submodule at http://search.cpan.org/src/JMGDOC/OpenOffice-OODoc-2.108/OODoc/File.pm 3) Check the ID of the downloaded file, that should be "File.pm 2.118 2009-01-30"; 4) Replace the current File.pm (2.201) by the previous one (2.118); 5) Please let me know if it works. Le Sam 09 Jan 2010 15:05:34, JLouisBiz a écrit : Show quoted text
> In man page it is explained that this works: > use OpenOffice::OODoc; > my $document = odfDocument(file => "MyFile.odt"); > > And that does work. For example: > > #!/usr/bin/perl -w > use strict; > use warnings; > use OpenOffice::OODoc; > my $document = odfDocument(file => "Template.odt"); > > But if I put full path instead of Template.odt, I get error: > > Can't call method "isa" without a package or object reference at > /usr/local/share/perl/5.10.0/OpenOffice/OODoc/File.pm line 362.
*IMPORTANT* The workaround proposed in my previous message requires a small other change: Edit OOdoc.pm (in the directory just above the one that contains File.pm), get the line #10 and replace "2.201" by "2.118", in order to allow the use of a previous version of File.pm.
Fixed in release 2.111, coming soon.