This question about Using an extension: Answered

PublishPlugin error - how to debug error message?

Hello,

I wish to publish my Foswiki content by means of Publish plugin:

sudo perl -T rest /PublishPlugin/publish web='*' exclusions='Web*' format=pdf

Unfortunately, I receive very general error message (in console and PublishPluginHistory):

ERROR htmldoc failed: 245// 
ERROR htmldoc failed: 58// 

What those number means? Are they lines of code? How can I check what goes wrong?

Generally speaking:
  • PDF has been created,
  • It looks like images are not contained within PDF
  • Part of topic text (in PDF) is not properly formatted
  • After publish I need to manually change 'PublishPluginHistory.txt' permissions - it is not writable


Before edit.

In the first version of my question, I asked about error message raised by Beautifier Plugin during publish:

rest: Can't locate package HFile for @Foswiki::Plugins::BeautifierPlugin::HFile::HFile_csharp::ISA at /var/lib/foswiki/lib/Foswiki/Plugins/BeautifierPlugin/HFile/HFile_csharp.pm line 16.
rest: Can't locate package HFile for @Foswiki::Plugins::BeautifierPlugin::HFile::HFile_csharp::ISA at /var/lib/foswiki/lib/Foswiki/Plugins/BeautifierPlugin/HFile/HFile_csharp.pm line 16.
rest: Can't locate package HFile for @Foswiki::Plugins::BeautifierPlugin::HFile::HFile_csharp::ISA at /var/lib/foswiki/lib/Foswiki/Plugins/BeautifierPlugin/HFile/HFile_csharp.pm line 16.

Should I install any missing dependency?
I've tried to reinstall mentioned plugin, but I still receive an error message.

-- MateuszKDzior - 22 Apr 2015

A couple of questions:

-- LynnwoodBrown - 27 Apr 2015

Thank you for valuable questions:
  • It seems that sometimes I used BeautifierPlugin syntax incorrectly, so this might caused mentioned error. Topic was displayed without errors, but no formatting has been applied in such cases,,
  • Following your idea, I removed BeautifierPlugin and replace all code instructions to verbatim provided by Jquery Chili Plugin
  • I still receive an error message:
     ERROR htmldoc failed: 245// 
    . How can I receive more details, debug this? In PublishPluginHistory there's no additional information.

-- MateuszKDzior - 28 Apr 2015

Doing a bit of research regarding HTMLDOC, it appears that the error message simply is reporting that htmldoc produced 245 errors. It may have still completed the publishing process. Htmldoc outputs errors to the apache error log so you may look there to get more information about what the 245 errors were.

-- LynnwoodBrown - 28 Apr 2015

Thank you for advise. Unfortunately, within Apache log, I don't see anything which helps me to resolve issue.

Following lines are repeated:


[Mon May 04 08:41:05 2015] [error] [client myIP] NATIVE $VAR1 = {
[Mon May 04 08:41:05 2015] [error] [client myIP]           'TopicName1' => [
[Mon May 04 08:41:05 2015] [error] [client myIP]                                                  undef
[Mon May 04 08:41:05 2015] [error] [client myIP]                                                ],
[Mon May 04 08:41:05 2015] [error] [client myIP]           'TopicName2' => [
[Mon May 04 08:41:05 2015] [error] [client myIP]                                               undef
[Mon May 04 08:41:05 2015] [error] [client myIP]                                             ],
[Mon May 04 08:41:05 2015] [error] [client myIP]           'TopicName3' => [
[Mon May 04 08:41:05 2015] [error] [client myIP]                                           undef
[Mon May 04 08:41:05 2015] [error] [client myIP]                                         ],
[Mon May 04 08:41:05 2015] [error] [client myIP]           'TopicName4' => [
[Mon May 04 08:41:05 2015] [error] [client myIP]                                  undef
[Mon May 04 08:41:05 2015] [error] [client myIP]                                ]
[Mon May 04 08:41:05 2015] [error] [client myIP]         };
[Mon May 04 08:41:05 2015] [error] [client myIP] 
[Mon May 04 08:41:05 2015] [error] [client myIP] NATIVE $VAR1 = {
[Mon May 04 08:41:05 2015] [error] [client myIP]           'TopicName' => [
[Mon May 04 08:41:05 2015] [error] [client myIP]                                          undef
[Mon May 04 08:41:05 2015] [error] [client myIP]                                        ]
[Mon May 04 08:41:05 2015] [error] [client myIP]         };
[Mon May 04 08:41:05 2015] [error] [client myIP] 
[Mon May 04 08:41:05 2015] [error] [client myIP] NATIVE $VAR1 = {
[Mon May 04 08:41:05 2015] [error] [client myIP]           'AnotherTopicName' => [
[Mon May 04 08:41:05 2015] [error] [client myIP]                                        undef
[Mon May 04 08:41:05 2015] [error] [client myIP]                                      ]
[Mon May 04 08:41:05 2015] [error] [client myIP]         };
[Mon May 04 08:41:05 2015] [error] [client myIP] 
[Mon May 04 08:41:16 2015] [error] [client myIP] [Mon May  4 08:41:16 2015] view: Subroutine title redefined at /var/lib/foswiki/lib/Foswiki/Plugins/LdapGuiPlugin/Renderer.pm line 122., referer: http://my-wiki-web.com/bin/view/FAQ
[Mon May 04 08:41:17 2015] [error] [client myIP] NATIVE $VAR1 = {};, referer: http://my-wiki-web.com/bin/view/FAQ
[Mon May 04 08:41:17 2015] [error] [client myIP] , referer: http://my-wiki-web.com/bin/view/FAQ
[Mon May 04 08:41:18 2015] [error] [client myIP] NATIVE $VAR1 = {};, referer: http://my-wiki-web.com/bin/view/FAQ
[Mon May 04 08:41:18 2015] [error] [client myIP] , referer: http://my-wiki-web.com/bin/view/FAQ
[Mon May 04 08:41:18 2015] [error] [client myIP] NATIVE $VAR1 = {};, referer: http://my-wiki-web.com/bin/view/FAQ

I removed LdapGuiPlugin

-- MateuszKDzior - 06 May 2015

The best way to debug (which is the original question) is to generate file format output.

-- Main.CrawfordCurrie - 07 May 2017 - 08:54

 

QuestionForm edit

Subject Using an extension
Extension PublishPlugin
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r8 - 07 May 2017, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy