This question about Using an extension: Answered
EditChapterPlugin doesn't work on Foswiki 1.1.4
--
NikosStylidis - 25 Jan 2012
EditChapterPlugin doesn't work on Foswiki 1.1.4. The error that is generated when trying to edit a chapter is below. Any ideas what is wrong?
responseText: <h1>Software error:</h1>
<pre>Can't locate object method "topicObject" via package "Foswiki::Prefs::HASH" at /var/www/qpm/lib/Foswiki/Prefs.pm line 311.
at /var/www/qpm/lib/Foswiki/Prefs.pm line 311
Foswiki::Prefs::popTopicContext('Foswiki::Prefs=HASH(0x87ae6c8)') called at /var/www/qpm/lib/Foswiki/Func.pm line 464
Foswiki::Func::popTopicContext('System', 'WebBottomBarExample') called at /var/www/qpm/lib/Foswiki/Plugins/WorkflowPlugin.pm line 96
Foswiki::Plugins::WorkflowPlugin::_initTOPIC('System', 'WebBottomBarExample') called at /var/www/qpm/lib/Foswiki/Plugins/WorkflowPlugin.pm line 514
Foswiki::Plugins::WorkflowPlugin::commonTagsHandler('<span class="foswikiRight"> <a href="http://www.ergoq.gr/"><i...', 'WebBottomBarExample', 'System', 1, 'Foswiki::Meta=HASH(0x98eec38)') called at /var/www/qpm/lib/Foswiki/Plugin.pm line 287
Foswiki::Plugin::invoke('Foswiki::Plugin=HASH(0x94bdbd0)', 'commonTagsHandler', '<span class="foswikiRight"> <a href="http://www.ergoq.gr/"><i...', 'WebBottomBarExample', 'System', 1, 'Foswiki::Meta=HASH(0x98eec38)') called at /var/www/qpm/lib/Foswiki/Plugins.pm line 331
Foswiki::Plugins::dispatch('Foswiki::Plugins=HASH(0x87ae658)', 'commonTagsHandler', '<span class="foswikiRight"> <a href="http://www.ergoq.gr/"><i...', 'WebBottomBarExample', 'System', 1, 'Foswiki::Meta=HASH(0x98eec38)') called at /var/www/qpm/lib/Foswiki/Macros/INCLUDE.pm line 299
Foswiki::__ANON__() called at /usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try('CODE(0x95fe330)', 'HASH(0x98eef68)') called at /var/www/qpm/lib/Foswiki/Macros/INCLUDE.pm line 343
Foswiki::INCLUDE('Foswiki=HASH(0x8766368)', 'Foswiki::Attrs=HASH(0x9692310)', 'Foswiki::Meta=HASH(0x964ff68)') called at /var/www/qpm/lib/Foswiki.pm line 3071
Foswiki::_expandMacroOnTopicRendering('Foswiki=HASH(0x8766368)', 'INCLUDE', '"System.WebBottomBarExample"', 'Foswiki::Meta=HASH(0x964ff68)') called at /var/www/qpm/lib/Foswiki.pm line 2947
Foswiki::_processMacros('Foswiki=HASH(0x8766368)', '%INCLUDE{"System.WebBottomBarExample"}%', 'CODE(0x870cd78)', 'Foswiki::Meta=HASH(0x964ff68)', 15) called at /var/www/qpm/lib/Foswiki.pm line 2965
Foswiki::_processMacros('Foswiki=HASH(0x8766368)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'CODE(0x870cd78)', 'Foswiki::Meta=HASH(0x964ff68)', 16) called at /var/www/qpm/lib/Foswiki.pm line 2744
Foswiki::innerExpandMacros('Foswiki=HASH(0x8766368)', 'SCALAR(0x859d2f8)', 'Foswiki::Meta=HASH(0x964ff68)') called at /var/www/qpm/lib/Foswiki.pm line 3253
Foswiki::expandMacros('Foswiki=HASH(0x8766368)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Foswiki::Meta=HASH(0x964ff68)') called at /var/www/qpm/lib/Foswiki/Meta.pm line 3129
Foswiki::Meta::expandMacros('Foswiki::Meta=HASH(0x964ff68)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...') called at /var/www/qpm/lib/Foswiki/UI/Oops.pm line 124
Foswiki::UI::Oops::oops('Foswiki=HASH(0x8766368)', '', 'WebPreferences', 'Foswiki::Request=HASH(0x8752da0)', 0) called at /var/www/qpm/lib/Foswiki/OopsException.pm line 222
Foswiki::OopsException::generate('Foswiki::OopsException=HASH(0x95fe6d0)', 'Foswiki=HASH(0x8766368)') called at /var/www/qpm/lib/Foswiki/UI.pm line 379
Foswiki::UI::__ANON__('Foswiki::OopsException=HASH(0x95fe6d0)', 'SCALAR(0x82dbf10)') called at /usr/share/perl5/Error.pm line 340
eval {...} called at /usr/share/perl5/Error.pm line 330
Error::subs::run_clauses('HASH(0x8766088)', 'Foswiki::OopsException=HASH(0x95fe6d0)', undef, 'ARRAY(0x82dc300)') called at /usr/share/perl5/Error.pm line 427
Error::subs::try('CODE(0x81f6948)', 'HASH(0x8766088)') called at /var/www/qpm/lib/Foswiki/UI.pm line 435
Foswiki::UI::_execute('Foswiki::Request=HASH(0x8752da0)', 'CODE(0x872ede8)', 'view', 1) called at /var/www/qpm/lib/Foswiki/UI.pm line 274
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x8752da0)') called at /var/www/qpm/lib/Foswiki/Engine/CGI.pm line 41
Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x83df388)') called at /var/www/qpm/bin/view line 24.
</pre>
<p>
For help, please send mail to the webmaster (<a href="mailto:webmaster@localhost">webmaster@localhost</a>), giving this error message
and the time and date of the error.
</p>
<h1>Software error:</h1>
<pre>[Wed Jan 25 12:46:21 2012] view: Can't locate object method "topicObject" via package "Foswiki::Prefs::HASH" at /var/www/qpm/lib/Foswiki/Prefs.pm line 311.
[Wed Jan 25 12:46:21 2012] view: at /var/www/qpm/lib/Foswiki/Prefs.pm line 311
[Wed Jan 25 12:46:21 2012] view: Foswiki::Prefs::popTopicContext('Foswiki::Prefs=HASH(0x87ae6c8)') called at /var/www/qpm/lib/Foswiki/Func.pm line 464
[Wed Jan 25 12:46:21 2012] view: Foswiki::Func::popTopicContext('System', 'WebBottomBarExample') called at /var/www/qpm/lib/Foswiki/Plugins/WorkflowPlugin.pm line 96
[Wed Jan 25 12:46:21 2012] view: Foswiki::Plugins::WorkflowPlugin::_initTOPIC('System', 'WebBottomBarExample') called at /var/www/qpm/lib/Foswiki/Plugins/WorkflowPlugin.pm line 514
[Wed Jan 25 12:46:21 2012] view: Foswiki::Plugins::WorkflowPlugin::commonTagsHandler('<span class="foswikiRight"> <a href="http://www.ergoq.gr/"><i...', 'WebBottomBarExample', 'System', 1, 'Foswiki::Meta=HASH(0x98eec38)') called at /var/www/qpm/lib/Foswiki/Plugin.pm line 287
[Wed Jan 25 12:46:21 2012] view: Foswiki::Plugin::invoke('Foswiki::Plugin=HASH(0x94bdbd0)', 'commonTagsHandler', '<span class="foswikiRight"> <a href="http://www.ergoq.gr/"><i...', 'WebBottomBarExample', 'System', 1, 'Foswiki::Meta=HASH(0x98eec38)') called at /var/www/qpm/lib/Foswiki/Plugins.pm line 331
[Wed Jan 25 12:46:21 2012] view: Foswiki::Plugins::dispatch('Foswiki::Plugins=HASH(0x87ae658)', 'commonTagsHandler', '<span class="foswikiRight"> <a href="http://www.ergoq.gr/"><i...', 'WebBottomBarExample', 'System', 1, 'Foswiki::Meta=HASH(0x98eec38)') called at /var/www/qpm/lib/Foswiki/Macros/INCLUDE.pm line 299
[Wed Jan 25 12:46:21 2012] view: Foswiki::__ANON__() called at /usr/share/perl5/Error.pm line 416
[Wed Jan 25 12:46:21 2012] view: eval {...} called at /usr/share/perl5/Error.pm line 408
[Wed Jan 25 12:46:21 2012] view: Error::subs::try('CODE(0x95fe330)', 'HASH(0x98eef68)') called at /var/www/qpm/lib/Foswiki/Macros/INCLUDE.pm line 343
[Wed Jan 25 12:46:21 2012] view: Foswiki::INCLUDE('Foswiki=HASH(0x8766368)', 'Foswiki::Attrs=HASH(0x9692310)', 'Foswiki::Meta=HASH(0x964ff68)') called at /var/www/qpm/lib/Foswiki.pm line 3071
[Wed Jan 25 12:46:21 2012] view: Foswiki::_expandMacroOnTopicRendering('Foswiki=HASH(0x8766368)', 'INCLUDE', '"System.WebBottomBarExample"', 'Foswiki::Meta=HASH(0x964ff68)') called at /var/www/qpm/lib/Foswiki.pm line 2947
[Wed Jan 25 12:46:21 2012] view: Foswiki::_processMacros('Foswiki=HASH(0x8766368)', '%INCLUDE{"System.WebBottomBarExample"}%', 'CODE(0x870cd78)', 'Foswiki::Meta=HASH(0x964ff68)', 15) called at /var/www/qpm/lib/Foswiki.pm line 2965
[Wed Jan 25 12:46:21 2012] view: Foswiki::_processMacros('Foswiki=HASH(0x8766368)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'CODE(0x870cd78)', 'Foswiki::Meta=HASH(0x964ff68)', 16) called at /var/www/qpm/lib/Foswiki.pm line 2744
[Wed Jan 25 12:46:21 2012] view: Foswiki::innerExpandMacros('Foswiki=HASH(0x8766368)', 'SCALAR(0x859d2f8)', 'Foswiki::Meta=HASH(0x964ff68)') called at /var/www/qpm/lib/Foswiki.pm line 3253
[Wed Jan 25 12:46:21 2012] view: Foswiki::expandMacros('Foswiki=HASH(0x8766368)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Foswiki::Meta=HASH(0x964ff68)') called at /var/www/qpm/lib/Foswiki/Meta.pm line 3129
[Wed Jan 25 12:46:21 2012] view: Foswiki::Meta::expandMacros('Foswiki::Meta=HASH(0x964ff68)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...') called at /var/www/qpm/lib/Foswiki/UI/Oops.pm line 124
[Wed Jan 25 12:46:21 2012] view: Foswiki::UI::Oops::oops('Foswiki=HASH(0x8766368)', '', 'WebPreferences', 'Foswiki::Request=HASH(0x8752da0)', 0) called at /var/www/qpm/lib/Foswiki/OopsException.pm line 222
[Wed Jan 25 12:46:21 2012] view: Foswiki::OopsException::generate('Foswiki::OopsException=HASH(0x95fe6d0)', 'Foswiki=HASH(0x8766368)') called at /var/www/qpm/lib/Foswiki/UI.pm line 379
[Wed Jan 25 12:46:21 2012] view: Foswiki::UI::__ANON__('Foswiki::OopsException=HASH(0x95fe6d0)', 'SCALAR(0x82dbf10)') called at /usr/share/perl5/Error.pm line 340
[Wed Jan 25 12:46:21 2012] view: eval {...} called at /usr/share/perl5/Error.pm line 330
[Wed Jan 25 12:46:21 2012] view: Error::subs::run_clauses('HASH(0x8766088)', 'Foswiki::OopsException=HASH(0x95fe6d0)', undef, 'ARRAY(0x82dc300)') called at /usr/share/perl5/Error.pm line 427
[Wed Jan 25 12:46:21 2012] view: Error::subs::try('CODE(0x81f6948)', 'HASH(0x8766088)') called at /var/www/qpm/lib/Foswiki/UI.pm line 435
[Wed Jan 25 12:46:21 2012] view: Foswiki::UI::_execute('Foswiki::Request=HASH(0x8752da0)', 'CODE(0x872ede8)', 'view', 1) called at /var/www/qpm/lib/Foswiki/UI.pm line 274
[Wed Jan 25 12:46:21 2012] view: Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x8752da0)') called at /var/www/qpm/lib/Foswiki/Engine/CGI.pm line 41
[Wed Jan 25 12:46:21 2012] view: Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x83df388)') called at /var/www/qpm/bin/view line 24.
at /usr/local/share/perl/5.10.1/CGI/Carp.pm line 379
CGI::Carp::realdie('[Wed Jan 25 12:46:21 2012] view: Can\'t locate object method ...') called at /usr/local/share/perl/5.10.1/CGI/Carp.pm line 475
CGI::Carp::die('Error::Simple=HASH(0x965bc80)') called at /usr/share/perl5/Error.pm line 184
Error::throw('Error::Simple=HASH(0x965bc80)') call
The above stack trace seems to indicate that the error is triggered via
WorkflowPlugin.
Try disabling it.
What exactly did you do to get this error?
Which plugin versions are you using?
--
MichaelDaum - 25 Jan 2012
Thanks for the quick reply. The error occurred when trying to edit a chapter. I'm using
NatSkin but the same happens when changing to
PatternSkin. List of installed Plugins and Contribs:
PLUGINS
TWikiCompatibilityPlugin (1.1.2, $Rev: 13315 (2011-12-06) $): Add TWiki personality to Foswiki
FormQueryPlugin (17 Nov 2009, $Rev: 5542 (2009-11-17) $): Provides query capabilities across a database defined using forms and embedded tables in Foswiki topics.
SpreadSheetPlugin (1.1.5, $Rev: 13683 (2012-01-17) $): Add spreadsheet calculations like "$SUM($ABOVE())" to Foswiki tables and other topic text
CommentPlugin (10 Apr 2011, $Rev: 11361 (2011-04-10) $): Quickly post comments to a page without an edit/save cycle
ActionTrackerPlugin (2.4.8, $Rev: 13327 (2011-12-08) $): Adds support for action tags in topics, and automatic notification of action statuses
AttachContentPlugin (2.3.3, $Rev: 8629 (2010-08-21) $): Saves dynamic topic text to an attachment
AttachmentListPlugin (1.5.0, $Rev: 12366 (2011-08-24) $): Displays a formattable list of topic attachments - from any topic - anywhere in a topic
AutoViewTemplatePlugin (10 Apr 2011, $Rev: 11364 (2011-04-10) $): Automatically sets VIEW_TEMPLATE and EDIT_TEMPLATE
BreadCrumbsPlugin (v2.42, $Rev: 4694 (2009-08-20) $): A flexible way to display breadcrumbs navigation
ChartPlugin (1.6.0, $Rev: 11481 (2011-04-17) $): Create area, bar, line and scatter charts to visualize table data
ChecklistPlugin (Cairo, Dakar, Edinburgh, ..., $Rev: 5335 (2009-10-21) $): Create simple checklists.
ChecklistTablePlugin (v1.006, $Rev: 3903 (2009-05-14) $): Create a checklist table
CompareRevisionsAddonPlugin (1.1.6, $Rev: 13317 (2011-12-06) $):
DBCachePlugin (3.40, $Rev: 6290 (2010-02-12) $): Lightweighted frontend to the DBCacheContrib
DateTimePlugin (1.2, 4740): Display date and time with formatting options, relative date parameters and localized dates
EditChapterPlugin (4.20, $Rev: 13577 (2012-01-10) $): An easy sectional edit facility
EditRowPlugin (3.0.0, $Rev: 13341 (2011-12-08) $): Inline edit for tables
EditTablePlugin (4.41, $Rev: 13315 (2011-12-06) $): Edit tables using edit fields, date pickers and drop down boxes
FilterPlugin (2.08, $Rev: 13591 (2012-01-10) $): Substitute and extract information from content by using regular expressions
FlexWebListPlugin (1.61, $Rev: 13583 (2012-01-10) $): Flexible way to display hierarchical weblists
FormPlugin (2.3.1, $Rev: 13563 (2012-01-08) $): Lets you create simple and advanced HTML forms
FullCalendarPlugin (1.0, $Rev: 8457 (2010-08-11) $): Web 2.0 calendar app
GluePlugin (2.20, $Rev: 4420 (2009-07-03) $): Enable markup to span multiple lines
HijaxPlugin (1.2, $Rev: 8534 (2010-08-18) $): AJAX integration
HistoryPlugin (1.10, $Rev: 13288 (2011-12-03) $): Shows a complete history of a topic
HomePagePlugin ($Date: 2008-12-15 04:49:56 +1100 (Mon, 15 Dec 2008) $, 1340): Allow User specified home pages - on login
IfDefinedPlugin (2.01, $Rev: 12392 (2011-08-26) $): Render content conditionally
ImagePlugin (2.41, $Rev: 13571 (2012-01-09) $):
InterwikiPlugin (1.1.2, $Rev: 12957 (2011-10-31) $): Link ExternalSite:Page text to external sites based on aliases defined in a rules topic
JQueryPlugin (4.32, $Rev: 13479 (2011-12-20) $): jQuery JavaScript library for Foswiki
MailerContribPlugin (9 Jul 2010, $Rev: 13315 (2011-12-06) $): Supports e-mail notification of changes
NatEditPlugin (5.20, $Rev: 13610 (2012-01-11) $): A Wikiwyg Editor
NatSkinPlugin (3.96, $Rev: 6287 (2010-02-12) $): Theming engine for NatSkin
ObjectPlugin (1.01, $Rev: 8478 (2010-08-12) $): Use a topic as an Object store.
PreferencesPlugin (1.1.2, $Rev: 13315 (2011-12-06) $): Allows editing of preferences using fields predefined in a form
RenderListPlugin (2.2.5, $Rev: 13315 (2011-12-06) $): Render bullet lists in a variety of formats
RenderPlugin (3.1, $Rev: 13580 (2012-01-10) $): Render WikiApplications asynchronously
RevCommentPlugin (22 Jan 2009, $Rev: 2125 (22 Jan 2009) $): Allows a short summary of changes to be entered for a new revision.
SetVariablePlugin (2.01, $Rev: 4287 (2009-06-23) $): Flexible handling of topic variables
SlideShowPlugin (2.1.4, $Rev: 12410 (2011-08-28) $): Create web based presentations based on topics with headings
SmiliesPlugin (05 Dec 2011, $Rev: 13315 (2011-12-06) $): Render smilies like as icons
SubscribePlugin (03 Dec 2008, $Rev: 13787 (18 May 2007) $): Subscribe to web notification
TablePlugin (1.138, $Rev: 13401 (2011-12-13) $): Control attributes of tables and sorting of table columns
TinyMCEPlugin (1.1.13, $Rev: 13498 (2011-12-22) $): Integration of the Tiny MCE WYSIWYG Editor
TopicCreatePlugin (1.6, $Rev: 11877 (2011-06-09) $): Automatically create a set of topics and attachments at topic save time
TopicDataHelperPlugin (1.1.4, $Rev: 13567 (2012-01-09) $): helper plugin for collecting, filtering and sorting data objects
TreeBrowserPlugin (v2.0, $Rev: 5479 (2009-11-10) $): Renders a list as a collapsable/expandable tree.
TreePlugin (1.9.1, $Rev: 6156 (2010-01-27) $): Renders topics' parent-child relationships as hierarchical tree view. Useful for dynamic site maps and threads.
TwistyPlugin (1.6.15, $Rev: 13315 (2011-12-06) $): Twisty section Javascript library to open/close content dynamically
UploadPlugin (1.11, $Rev: 4414 (2009-07-03) $): Attach multiple files to a topic in one go
WorkflowPlugin (1.12.4, $Rev: 13607 (2012-01-11) $): Associate a "state" with a topic and then control the work flow that the topic progresses through as content is added.
WysiwygPlugin (1.1.3, $Rev: 13315 (2011-12-06) $): Translator framework for WYSIWYG editors
ZonePlugin: (disabled)
CONTRIBS
CompareRevisionsAddOn
DBCacheContrib
FamFamFamContrib
JEditableContrib
JSCalendarContrib
JSUnitContrib
JsonRpcContrib
MailerContrib
TipsContrib
TopicUserMappingContrib
--
NikosStylidis - 26 Jan 2012
Disabling the
WorkflowPlugin didn't solve the problem.
--
NikosStylidis - 31 Jan 2012
I am experiencing a similar problem with the edit chapter plugin; but on our setup it doesn't throw any messages (error or otherwise). When you click on the pencil to edit a chapter it does nothing. You can tell something is going on because if you move the mouse cursor away from the pencil the mouse cursor takes about 7 seconds to change, and the pencil too takes about 7 seconds to go away. But nothing actually happens.
--
RobLeach - 03 Feb 2012
Hmm, a little more information. I tried to see if there would be different results depending on the browser I used. In FF and Chrome the results are the same, it looks like nothing is happening. In IE something does happen, but it is badly broken.
In IE you get an edit box, but there is no way to save the edits made because the
OK and
Cancel text which I assume should be links, aren't links. The only option is
Edit all.
--
RobLeach - 03 Feb 2012
On a slightly off topic question; it looks like the edit chapter plugin is trying to use the
rest script.
How can you configure the edit chapter plugin to not use
rest, but to use the standard foswiki edit (whether that's raw or wysiwyg)?
--
RobLeach - 03 Feb 2012
Ugh this is ugly. It looks like NatEdit is a dependency.
--
RobLeach - 03 Feb 2012
I'm having the same problem. I can copy and paste the links which are generated into the address bar and they work but clicking the pencil icon does nothing. Did anyone find a solution?
--
BenHall - 15 Feb 2012
Try adding
%JQREQUIRE{"ui::dialog"}%
to the page you are going to edit with EditChapter Plugin.
With that I can get the dialog to open.
But then I get "StrikeOne is not defined" in the firebug debugger on firefox when trying to save a topic. So it does not save.
I wish it would be possible to change the EditChapter Plugin editor to the current Foswiki standard editor.
--
VilleSalmela - 06 Mar 2012
Still working on the issue; no resolution yet...
--
RobLeach - 19 Mar 2012
I'm having a similar problem in 1.1.4. Nothing happens if I click on the icon.If I paste the link into a new tab it opens, but the page is a mess.There's a small edit box for the section, but also a button for adding a comment, and all the page comments are present but unformatted, without even line breaks.The comments are then completely messed up in the topic even without performing any saves.I don't understand why, but a screen refresh fixed the comments - the topic wasn't damaged.
--
JacobEtches - 12 Apr 2012
Please upgrade to the latest
EditChapterPlugin - released today.
Release:4.31 Version:14611 (2012-04-16)
It resolves several issues with dependencies and javascript that were preventing it from working when installed on a base Foswiki using
PatternSkin. This new version has been tested on a "default install" of 1.1.3, 1.1.4 and 1.1.5, with and without
NatEditPlugin.
Note. 1.1.3 users! The newer versions of
JQueryPlugin expose an error in Configure which will
prevent the configuration from being saved.
Tasks.Item11136. Install a new
lib/Foswiki/Configure/Valuer.pm to resolve.
--
GeorgeClark - 16 Apr 2012
Thanks. Worked like a charm.
--
JacobEtches - 16 Apr 2012
I am running Foswiki 1.1.5 and the
EditChapterPlugin 4.3.1 installs fine but fails to show in any way in either ff or chrome. Host OS is ubuntu if that makes any difference.
--
MilesDaffin - 20 Sep 2012