Item13115: Log is noisy, reporting "ERROR: can't load plugin for Theme"

Priority: Normal
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: JQueryPlugin, SubscribePlugin, EditRowPlugin
Branches: master
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
-- GeorgeClark - 25 Nov 2014

Enabled trace in JQuery:

ERROR: can't load plugin for Theme
Trace begun at /var/www/foswiki/distro/core/lib/Foswiki/Plugins/JQueryPlugin/ line 134
Foswiki::Plugins::JQueryPlugin::Plugin::init('Foswiki::Plugins::SubscribePlugin::JQuery=HASH(0x923d5d0)') called at /var/www/foswiki/distro/core/lib/Foswiki/Plugins/JQueryPlugin/ line 151
Foswiki::Plugins::JQueryPlugin::Plugins::createPlugin('Subscribe', 'Foswiki=HASH(0x87ec7a0)') called at /var/www/foswiki/distro/core/lib/Foswiki/Plugins/ line 99
Foswiki::Plugins::JQueryPlugin::createPlugin('Subscribe', 'Foswiki=HASH(0x87ec7a0)') called at /var/www/foswiki/distro/core/lib/Foswiki/Plugins/ line 122
Foswiki::Plugins::SubscribePlugin::_SUBSCRIBE('Foswiki=HASH(0x87ec7a0)', 'Foswiki::Attrs=HASH(0x8fc9688)', 'WebHome', 'Usersweb', 'Foswiki::Meta=HASH(0x8d95fe8)') called at /var/www/foswiki/distro/core/lib/Foswiki/ line 648

-- GeorgeClark - 25 Nov 2014

I suspect that this is because SubscribePlugin calls out a dependency on Theme
./SubscribePlugin/lib/Foswiki/Plugins/SubscribePlugin/        dependencies  => [ 'UI', "Theme" ]

Additional print debug shows:
createPlugin UI
createPlugin Theme
ERROR: can't load plugin for Theme

-- GeorgeClark - 25 Nov 2014

I've checked in a fix, removing the dependency on Theme. Not sure if that's correct, but the the message no longer appears. There is still something wrong though as I cannot use the subscribe button to subscribe/unsubscribe from topics.

Crawford, I've left this open so you can review. Please close if the fix is okay.

-- GeorgeClark - 25 Nov 2014

Fine; I have no idea why it was there. Probably a copy-paste issue.

-- CrawfordCurrie - 25 Nov 2014

Topic revision: r3 - 12 Dec 2014, GeorgeClark
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