Tags:
create new tag
view all tags

Question

I installed PublishContrib and it works find in producing HTML files and also to produce a zip file with them. But when I try to produce a PDF, I get the following error in the Browers (at the end of the page after the "[topic name]: published" messages):

Content-type: text/plain TWiki detected an internal error - please check your TWiki logs and webserver logs for more information. Can't use string ("TWiki::Contrib::PublishContrib::") as a HASH ref while "strict refs" in use

In the apache-logfiles/error.log I see the following:

[Sat Jan 27 17:37:40 2007] [error] [client 192.168.139.1] [Sat Jan 27 17:37:40 2007] publish: Use of uninitialized value in substitution (s///) at /home/httpd/twiki/lib/TWiki/Contrib/Publish.pm line 214., referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives
[Sat Jan 27 17:37:41 2007] [error] [client 192.168.139.1] Can't use string ("TWiki::Contrib::PublishContrib::") as a HASH ref while "strict refs" in use at /home/httpd/twiki/lib/TWiki/Contrib/PublishContrib/PDFWriter.pm line 31., referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives
[Sat Jan 27 17:37:41 2007] [error] [client 192.168.139.1] \tTWiki::Contrib::PublishContrib::PDFWriter::writePdf('TWiki::Contrib::PublishContrib::PDFWriter', '/home/httpd/twiki/export//Mettenmeier.pdf', 'ARRAY(0x8cec954)') called at /home/httpd/twiki/lib/TWiki/Contrib/PublishContrib/pdf.pm line 54, referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives
[Sat Jan 27 17:37:41 2007] [error] [client 192.168.139.1] \tTWiki::Contrib::PublishContrib::pdf::close('TWiki::Contrib::PublishContrib::pdf=HASH(0x8c8fc20)') called at /home/httpd/twiki/lib/TWiki/Contrib/Publish.pm line 248, referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives
[Sat Jan 27 17:37:41 2007] [error] [client 192.168.139.1] \tTWiki::Contrib::Publish::publish('TWiki=HASH(0x88bc018)') called at /home/httpd/twiki/lib/TWiki/UI.pm line 109, referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives
[Sat Jan 27 17:37:41 2007] [error] [client 192.168.139.1] \tTWiki::UI::__ANON__() called at /home/httpd/twiki/lib/CPAN/lib///Error.pm line 379, referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives
[Sat Jan 27 17:37:41 2007] [error] [client 192.168.139.1] \teval {...} called at /home/httpd/twiki/lib/CPAN/lib///Error.pm line 371, referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives
[Sat Jan 27 17:37:41 2007] [error] [client 192.168.139.1] \tError::subs::try('CODE(0x8bcb530)', 'HASH(0x8a6fa18)') called at /home/httpd/twiki/lib/TWiki/UI.pm line 158, referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives
[Sat Jan 27 17:37:41 2007] [error] [client 192.168.139.1] \tTWiki::UI::run('CODE(0x8307674)') called, referer: http://twiki-vm/twiki/bin/view/Mettenmeier/MagikDevelopmentDirectives

I use the TWikiVMDebianStable installation as the basis for TWiki. I insatlled HTMLDoc and it works fine from the prompt.

Is there an error in the PublishContrib or did I something wrong in the config?

Here the lines in LocalSite.cfg:

$TWiki::cfg{PublishContrib}{Dir} = "/home/httpd/twiki/export/";
$TWiki::cfg{PublishContrib}{URL} = "http://twiki-vm/twiki/export";
$TWiki::cfg{PublishContrib}{PDFCmd} = 'htmldoc --webpage --links --linkstyle plain --outfile %FILE|F% %EXTRAS|U% %FILES|F%';

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- MarkusHesse - 27 Jan 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Same initial error message as in Bugs:Item3515, not sure though if the same bug.

-- PeterThoeny - 28 Jan 2007

Hi Peter. I installed the changes from Crawford but I still get the same error. It seems, that the change fixes a security problem but not the initial error.

-- MarkusHesse - 02 Feb 2007

The problem is fixed with the version from Feb 10th 2007. After installing the latest version, the problem did not occure any more.

-- MarkusHesse - 12 Feb 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-02-12 - MarkusHesse
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.