This question about Using an extension, Developing extensions (plugins skins etc.): Needs followup in Tasks

Undefined subroutine getTopicTitle

The Update to DBCachePlugin Version from 28 May 2018 added the TopicTitlePlugin to fosswiki wich crashed my natskin installation with following error:
Undefined subroutine &Foswiki::Plugins::DBCachePlugin::getTopicTitle called at /var/www/wiki/lib/Foswiki/Plugins/NatSkinPlugin/HtmlTitle.pm line 71.
 at /var/www/wiki/lib/Foswiki/Plugins/NatSkinPlugin/HtmlTitle.pm line 71.
        Foswiki::Plugins::NatSkinPlugin::HtmlTitle::getTopicTitle("Wiki", "GateAllgemein") called at /var/www/wiki/lib/Foswiki/Plugins/NatSkinPlugin/HtmlTitle.pm line 52
        Foswiki::Plugins::NatSkinPlugin::HtmlTitle::render(Foswiki=HASH(0x1dd9080), Foswiki::Attrs=HASH(0x322b690), "GateAllgemein", "Wiki", Foswiki::Meta=HASH(0x321a558)) called at /var/www/wiki/lib/Foswiki/Plugins/NatSkinPlugin.pm line 123
        Foswiki::Plugins::NatSkinPlugin::__ANON__(Foswiki=HASH(0x1dd9080), Foswiki::Attrs=HASH(0x322b690), "GateAllgemein", "Wiki", Foswiki::Meta=HASH(0x321a558)) called at /var/www/wiki/lib/Foswiki/Func.pm line 660
        Foswiki::Func::__ANON__(Foswiki=HASH(0x1dd9080), Foswiki::Attrs=HASH(0x322b690), Foswiki::Meta=HASH(0x321a558)) called at /var/www/wiki/lib/Foswiki.pm line 3555
        Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x1dd9080), "HTMLTITLE", "\x{a}  \"\$percntIF{\x{a}\x{9} \\\"'\$topic'!='WebHome' or '\$percntENCODE{\\\"\$t"..., Foswiki::Meta=HASH(0x321a558)) called at /var/www/wiki/lib/Foswiki.pm line 3417
        Foswiki::_processMacros(Foswiki=HASH(0x1dd9080), "<!DOCTYPE html>\x{a}<html class=\"natHtml\" xmlns=\"http://www.w3.or"..., CODE(0x1da7bf0), Foswiki::Meta=HASH(0x321a558), 16) called at /var/www/wiki/lib/Foswiki.pm line 3175
        Foswiki::innerExpandMacros(Foswiki=HASH(0x1dd9080), SCALAR(0x1da8898), Foswiki::Meta=HASH(0x321a558)) called at /var/www/wiki/lib/Foswiki.pm line 3740
        Foswiki::expandMacros(Foswiki=HASH(0x1dd9080), "<!DOCTYPE html>\x{a}<html class=\"natHtml\" xmlns=\"http://www.w3.or"..., Foswiki::Meta=HASH(0x321a558)) called at /var/www/wiki/lib/Foswiki/Meta.pm line 3359
        Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x321a558), "<!DOCTYPE html>\x{a}<html class=\"natHtml\" xmlns=\"http://www.w3.or"...) called at /var/www/wiki/lib/Foswiki/UI/View.pm line 481
        Foswiki::UI::View::_prepare("<!DOCTYPE html>\x{a}<html class=\"natHtml\" xmlns=\"http://www.w3.or"..., Foswiki::Meta=HASH(0x321a558), 0) called at /var/www/wiki/lib/Foswiki/UI/View.pm line 441
        Foswiki::UI::View::view(Foswiki=HASH(0x1dd9080)) called at /var/www/wiki/lib/Foswiki/UI.pm line 374
        Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 421
        eval {...} called at /usr/share/perl5/Error.pm line 413
        Error::subs::try(CODE(0x11b6b20), HASH(0x1dd8a98)) called at /var/www/wiki/lib/Foswiki/UI.pm line 500
        Foswiki::UI::_execute(Foswiki::Request=HASH(0x1ddb150), CODE(0x11b6c58), "view", 1) called at /var/www/wiki/lib/Foswiki/UI.pm line 326
        Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x1ddb150)) called at /var/www/wiki/lib/Foswiki/Engine/CGI.pm line 100
        Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x191e1e8)) called at /var/www/wiki/bin/view line 30.

Natskin its reachable after disableing DBCachePlugin and TopicTitlePlugin but shows some strange codefragments on my side.(%DBQUERY{ "total_likes>0" topic=)

Any help would be appreciated.

-- ReneBredow - 31 May 2018

A new NatSkin version will be released soon. We are currently in a transition phase where the TopicTitle feature is moved into a plugin of its own (TopicTitlePlugin) instead of implemented redundantly in a lot of separate plugins.

A quick fix for you is to fix the offending line 71 in lib/Foswiki/Plugins/NatSkinPlugin/HtmlTitle.pm by replacing

Foswiki::Plugins::DBCachePlugin::getTopicTitle

with

Foswiki::Func::getTopicTitle

See also Tasks.Item14693

-- MichaelDaum - 31 May 2018

Thank you for your quick response. Your fix solved that problem.

-- ReneBredow - 01 Jun 2018
 

QuestionForm edit

Subject Using an extension, Developing extensions (plugins skins etc.)
Extension DBCachePlugin, ListyPlugin, NatSkin
Version Foswiki 2.1.6
Status Needs followup in Tasks
Related Topics Tasks.Item14693
Topic revision: r4 - 10 Dec 2018, MichaelDaum
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