Item5371: Irregular occurrence of unresolved plugin-specific variables and 'bogus' error messages about missing subroutines
Priority: Urgent
Current State: Closed
Released In:
Target Release: n/a
Sometimes plugin-specific variables don't get resolved or 'bogus' error messages like the following are shown (line number may differ):
Undefined subroutine &TWiki::Plugins::WorkflowPlugin::UserIsAllowed called at /home/httpd/twiki4/lib/TWiki/Plugins/WorkflowPlugin.pm line 421.
If you keep reloading the page in question, it will eventually work (and fail yet again after another page reload), regardless whether the user is administrator or not. Since the behaviour seems erratic, you may not encounter these errors during (very) brief tests.
My configuration: Linux, apache/2.2.6, perl 5.8.8
Currently activated Plugins:
GluePlugin,
IfDefinedPlugin,
SpreadSheetPlugin,
AliasPlugin,
AnyWikiDrawPlugin,
AttachContentPlugin,
BibtexPlugin,
BlogPlugin,
BreadCrumbsPlugin,
CommentPlugin,
CompareRevisionsAddonPlugin,
DBCachePlugin,
EditTablePlugin,
EmptyPlugin,
ExternalLinkPlugin,
FilterPlugin,
FlexWebListPlugin,
GenPDFLatexPlugin,
HeadlinesPlugin,
HistoryPlugin,
ImageGalleryPlugin,
ImagePlugin,
InterwikiPlugin,
LatexModePlugin,
MediaWikiTablePlugin,
PerlDocPlugin,
PreferencesPlugin,
RecursiveRenderPlugin,
RedDotPlugin,
RenderListPlugin,
RevCommentPlugin,
SlideShowPlugin,
SmiliesPlugin,
TablePlugin,
TagCloudPlugin,
TagMePlugin,
TimeSincePlugin,
TwistyPlugin,
UserInfoPlugin,
WebPermissionsPlugin,
WorkflowPlugin
(NB: This error seems unrelated to
Item5369; it probably hasn't been noticed before because
Item5369 prevented non-administrators from actually using the
WorkflowPlugin with TWiki 4.2 and not many administrators with current installations seem to use it regularly.)
--
TWiki:Main/MarkusUeberall - 15 Feb 2008
I get very similar errors (RHEL, Apache 2.2.6, Perl 5.8.5). No amount of refreshing will bring things to life. Here's what I see in the error log when I try to start the example topic "DefectOne" through its workflow (some info redacted). USERNAME is always the user currently logged in.
[Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] Can't locate object method "webDotWikiName" via package "{USERNAME}" (perhaps you forgot to load "{USERNAME}"?) at /twiki/lib/TWiki/Plugins/WorkflowPlugin.pm line 314., referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] at /twiki/lib/TWiki/Plugins/WorkflowPlugin.pm line 314, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::Plugins::WorkflowPlugin::changeWorkflowState('Initial', 'InitialForm') called at /twiki/lib/TWiki/Plugins/WorkflowPlugin.pm line 120, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::Plugins::WorkflowPlugin::commonTagsHandler('\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'DefectOne', 'Sandbox', 0, 'TWiki::Meta=HASH(0xa226674)') called at /twiki/lib/TWiki/Plugin.pm line 266, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::Plugin::invoke('TWiki::Plugin=HASH(0xa12c3ec)', 'commonTagsHandler', '\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'DefectOne', 'Sandbox', 0, 'TWiki::Meta=HASH(0xa226674)') called at /twiki/lib/TWiki/Plugins.pm line 344, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x9c138dc)', 'commonTagsHandler', '\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'DefectOne', 'Sandbox', 0, 'TWiki::Meta=HASH(0xa226674)') called at /twiki/lib/TWiki/Plugins.pm line 480, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::Plugins::commonTagsHandler('TWiki::Plugins=HASH(0x9c138dc)', '\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'DefectOne', 'Sandbox', 0, 'TWiki::Meta=HASH(0xa226674)') called at /fusion/htdocs/twiki/lib/TWiki.pm line 2864, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::handleCommonTags('TWiki=HASH(0x99018e0)', '\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'Sandbox', 'DefectOne', 'TWiki::Meta=HASH(0xa226674)') called at /twiki/lib/TWiki/UI/View.pm line 396, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::UI::View::_prepare('\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'TWiki=HASH(0x99018e0)', 'Sandbox', 'DefectOne', 'TWiki::Meta=HASH(0xa226674)', 0) called at /twiki/lib/TWiki/UI/View.pm line 357, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::UI::View::view('TWiki=HASH(0x99018e0)') called at /twiki/lib/TWiki/UI.pm line 159, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::UI::__ANON__() called at /usr/lib/perl5/site_perl/5.8.5/Error.pm line 415, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \teval {...} called at /usr/lib/perl5/site_perl/5.8.5/Error.pm line 407, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tError::subs::try('CODE(0x98eade8)', 'HASH(0xa220344)') called at /twiki/lib/TWiki/UI.pm line 197, referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne [Wed Feb 27 14:43:42 2008] [error] [client {IP ADDRESS}] \tTWiki::UI::run('CODE(0x9aa00a8)', 'view', 1) called at /fusion/htdocs/twiki/bin/view line 32., referer:
https://my.twiki.server/twiki/bin/view/Sandbox/DefectOne
My active plugins are:
SpreadSheetPlugin,
ActionTrackerPlugin,
CommentPlugin,
EditRowPlugin,
EditTablePlugin,
InterwikiPlugin,
PollPlugin,
PreferencesPlugin,
SablotronPlugin,
SlideShowPlugin,
SmiliesPlugin,
TablePlugin,
TinyMCEPlugin,
TwistyPlugin,
VotePlugin,
WorkflowPlugin,
WysiwygPlugin
--
TWiki:Main.AaronFuleki - 27 Feb 2008
This was the result of poor use of the Func API in the plugin. Fixed.
--
CrawfordCurrie - 05 Nov 2008 - 14:13