This question about Using an extension: Closed unanswered

Why %TOPDFBUTTON% macro doesn't become a button?

I've installed ToPDF plugin without any problems though Extensions section in config and changed topdf.php as stated in documentation, but %TOPDFBUTTON% is shown as plain text.

The server is Apache 2.2 + PHP 5 mod on Win XP.

Can the problem be in format of the mentioned path in topdf.php? I've used both forward and backward slashes but it didn't help. Path is initially "c:\program files\Foswiki\Foswiki\lib".

Also when trying to find out what's wrong I've noticed that ToPDF plugin isn't marked as installed in the list of extensions. Re-installing haven't fixed it. Is it pointing to another problem?


Did you remember to check the "enable plugin" checkbox in the bin/configure interface? What shows in the System/InstalledPlugins page? Does it show as enabled, and are any error messages reported?

-- GeorgeClark - 30 Oct 2009


Yes, George, I've enabled plugin through configure and installation finished without errors.

It is shown as enabled:

ToPDF_1.png

But in the Extensions/Find more extensions it is not marked as installed:

ToPDF_2.png

That's why I am a bit confused regarding what can be the reason for it smile

-- AndreyStoliarov - 03 Nov 2009

New details: ToPDFPlugin really reports erros in System/Installed Plugins - sorry that I've misunderstood what you've asked at once.

Here is how it fails:
Foswiki::Plugins::ToPDFPlugin could not be loaded.  Errors were:
Attempt to reload Foswiki/Plugins/ToPDFPlugin.pm aborted.
Compilation failed in require at (eval 741) line 2.
 at (eval 741) line 2
   Foswiki::Plugin::BEGIN() called at (eval 741) line 2
   eval {...} called at (eval 741) line 2
   eval 'use Foswiki::Plugins::ToPDFPlugin
;' called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/Plugin.pm line 133
   Foswiki::Plugin::load('Foswiki::Plugin=HASH(0x4b351e4)') called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/Plugins.pm line 174
   Foswiki::Plugins::load('Foswiki::Plugins=HASH(0x33a78dc)', undef) called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/Users.pm line 247
   Foswiki::Users::initialiseUser('Foswiki::Users=HASH(0x4b2626c)', 'admin') called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki.pm line 1571
   Foswiki::new('Foswiki', undef, 'Foswiki::Request=HASH(0x34200bc)', 'HASH(0x294de5c)') called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/UI.pm line 293
   Foswiki::UI::_execute('Foswiki::Request=HASH(0x34200bc)', 'CODE(0x3535034)', 'view', 1) called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/UI.pm line 275
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x34200bc)') called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/Engine/CGI.pm line 26
   Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x13a2734)') called at (eval 668) line 48
   ModPerl::ROOT::ModPerl::Registry::C_3a_Program_20Files_Foswiki_Foswiki_bin_view::handler('Apache2::RequestRec=SCALAR(0x46a55dc)') called at C:/strawberry/perl/site/lib/ModPerl/RegistryCooker.pm line 204
   eval {...} called at C:/strawberry/perl/site/lib/ModPerl/RegistryCooker.pm line 204
   ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x46a56ec)') called at C:/strawberry/perl/site/lib/ModPerl/RegistryCooker.pm line 170
   ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x46a56ec)') called at C:/strawberry/perl/site/lib/ModPerl/Registry.pm line 31
   ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x46a55dc)') called at (eval 741) line 2
   eval {...} called at (eval 741) line 2
BEGIN failed--compilation aborted at (eval 741) line 2.
 at (eval 741) line 2
   eval 'use Foswiki::Plugins::ToPDFPlugin
;' called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/Plugin.pm line 133
   Foswiki::Plugin::load('Foswiki::Plugin=HASH(0x4b351e4)') called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/Plugins.pm line 174
   Foswiki::Plugins::load('Foswiki::Plugins=HASH(0x33a78dc)', undef) called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/Users.pm line 247
   Foswiki::Users::initialiseUser('Foswiki::Users=HASH(0x4b2626c)', 'admin') called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki.pm line 1571
   Foswiki::new('Foswiki', undef, 'Foswiki::Request=HASH(0x34200bc)', 'HASH(0x294de5c)') called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/UI.pm line 293
   Foswiki::UI::_execute('Foswiki::Request=HASH(0x34200bc)', 'CODE(0x3535034)', 'view', 1) called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/UI.pm line 275
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x34200bc)') called at C:/Progra~1/Foswiki/Foswiki/lib/Foswiki/Engine/CGI.pm line 26
   Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x13a2734)') called at (eval 668) line 48
   ModPerl::ROOT::ModPerl::Registry::C_3a_Program_20Files_Foswiki_Foswiki_bin_view::handler('Apache2::RequestRec=SCALAR(0x46a55dc)') called at C:/strawberry/perl/site/lib/ModPerl/RegistryCooker.pm line 204
   eval {...} called at C:/strawberry/perl/site/lib/ModPerl/RegistryCooker.pm line 204
   ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x46a56ec)') called at C:/strawberry/perl/site/lib/ModPerl/RegistryCooker.pm line 170
   ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x46a56ec)') called at C:/strawberry/perl/site/lib/ModPerl/Registry.pm line 31
   ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x46a55dc)') called at (eval 741) line 2
   eval {...} called at (eval 741) line 2

-- AndreyStoliarov - 04 Nov 2009

sorry, this plugin seems to have been deprecated by its author, advising everyone to use one of the others.

-- SvenDowideit - 25 Feb 2012

QuestionForm edit

Subject Using an extension
Extension ToPDFPlugin
Version Foswiki 1.0.7
Status Closed unanswered
Related Topics
Topic attachments
I Attachment Action Size Date Who Comment
ToPDF_1.pngpng ToPDF_1.png manage 6 K 03 Nov 2009 - 08:28 AndreyStoliarov  
ToPDF_2.pngpng ToPDF_2.png manage 11 K 03 Nov 2009 - 08:30 AndreyStoliarov  
Topic revision: r7 - 25 Feb 2012, SvenDowideit - This page was cached on 18 Oct 2018 - 07:58.

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