This question about Using an extension: Task closed

Error installing Form Plugin: "Could not create field of type text"

On installation of Form plugin , when i click on Formplugin home page i get following
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Foswiki::Plugins::FormPlugin::Renderer::Html::FieldFactory : Could not create field of type text.

Was checking plugin dependancies it mentions JQuery 4.04 as mandatory requirement. Can find Jquery 4.03 as highest version available through configure interface as well as manual install.

does it have something to do with above problem


These are unrelated issues. What is written in your webserver error log?

-- ArthurClemens - 11 May 2011

Here is the dump from web server error log
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] Foswiki::Plugins::FormPlugin::Renderer::Html::FieldFactory : Could not create field of type text., referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101]  at C:/strawberry/perl/lib/CGI/Carp.pm line 354, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tCGI::Carp::realdie('Foswiki::Plugins::FormPlugin::Renderer::Html::FieldFactory : ...') called at C:/strawberry/perl/lib/CGI/Carp.pm line 439, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tCGI::Carp::die('Foswiki::Plugins::FormPlugin::Renderer::Html::FieldFactory : ...') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Plugins/FormPlugin/Renderer/Html/FieldFactory.pm line 22, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::Plugins::FormPlugin::Renderer::Html::FieldFactory::getField('text') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Plugins/FormPlugin/Renderer/Html/FieldRenderer.pm line 41, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::Plugins::FormPlugin::Renderer::Html::FieldRenderer::render('Foswiki::Plugins::FormPlugin::Renderer::Html::FieldRenderer=H...', 'Foswiki::Plugins::FormPlugin::FieldData=HASH(0x1bfbf94)', 'Foswiki::Plugins::FormPlugin::FormData=HASH(0x1bfc064)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Plugins/FormPlugin.pm line 303, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::Plugins::FormPlugin::_formElement('Foswiki=HASH(0xebdb7c)', 'Foswiki::Attrs=HASH(0x1c1a4cc)', 'FormPlugin', 'System', 'Foswiki::Meta=HASH(0x18f5bbc)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Func.pm line 570, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::Func::__ANON__('Foswiki=HASH(0xebdb7c)', 'Foswiki::Attrs=HASH(0x1c1a4cc)', 'Foswiki::Meta=HASH(0x18f5bbc)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki.pm line 3033, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::_expandMacroOnTopicRendering('Foswiki=HASH(0xebdb7c)', 'FORMELEMENT', '\\x{a}\\x{9}name="Name"\\x{a}\\x{9}type="text"\\x{a}\\x{9}title="Your name:"\\x{a}\\x{9}mandatory="on"\\x{a}', 'Foswiki::Meta=HASH(0x18f5bbc)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki.pm line 2923, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::_processMacros('Foswiki=HASH(0xebdb7c)', '%IF{"defined Name and $ Name != \\'\\'" then="---+!! Hello %URL...', 'CODE(0xe5584c)', 'Foswiki::Meta=HASH(0x18f5bbc)', 16) called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki.pm line 2720, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::innerExpandMacros('Foswiki=HASH(0xebdb7c)', 'SCALAR(0xe560dc)', 'Foswiki::Meta=HASH(0x18f5bbc)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki.pm line 3210, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::expandMacros('Foswiki=HASH(0xebdb7c)', '%IF{"defined Name and $ Name != \\'\\'" then="---+!! Hello %URL...', 'Foswiki::Meta=HASH(0x18f5bbc)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Meta.pm line 3016, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::Meta::expandMacros('Foswiki::Meta=HASH(0x18f5bbc)', '%IF{"defined Name and $ Name != \\'\\'" then="---+!! Hello %URL...') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI/View.pm line 400, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::UI::View::_prepare('%IF{"defined Name and $ Name != \\'\\'" then="---+!! Hello %URL...', 'Foswiki::Meta=HASH(0x18f5bbc)', 0) called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI/View.pm line 380, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::UI::View::view('Foswiki=HASH(0xebdb7c)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI.pm line 316, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::UI::__ANON__() called at C:/Program Files/Foswiki/Foswiki/lib/CPAN/lib/Error.pm line 379, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \teval {...} called at C:/Program Files/Foswiki/Foswiki/lib/CPAN/lib/Error.pm line 371, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tError::subs::try('CODE(0x3f903c)', 'HASH(0xebd8bc)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI.pm line 435, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::UI::_execute('Foswiki::Request=HASH(0xeae96c)', 'CODE(0xeae68c)', 'view', 1) called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI.pm line 277, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::UI::handleRequest('Foswiki::Request=HASH(0xeae96c)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Engine/CGI.pm line 37, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins
[Wed May 11 17:31:25 2011] [error] [client 172.18.225.101] \tFoswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x9d499c)') called at C:/Program Files/Foswiki/Foswiki/bin/view line 24, referer: http://172.18.26.33/foswiki/bin/view/System/InstalledPlugins


I cannot see what is wrong. Could you check if you have the file Text.pm in folder FormPlugin/Renderer/Html/Field/?

-- ArthurClemens - 11 May 2011

Yes. it exists. I tried manual reinstall of the plugin. still same result.

Could you try to use this file in FormPlugin/Renderer/Html/: FieldFactory.pm. Then point to System.InstalledPlugins to see any error output.

-- ArthurClemens - 12 May 2011


Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Foswiki::Plugins::FormPlugin::RendererFactory : Could not create field renderer of type html and field class FieldRenderer.

Different error

That does not provide more info, unless more is written to your webserver error log.

Similarly, perhaps this RendererFactory.pm in dir FormPlugin could provide additional info.

-- ArthurClemens - 12 May 2011

In the meantime I have updated the plugin, version 2.0.1.

-- ArthurClemens - 12 May 2011


With the new file The page form plugin has started appearing. But the plugin is now showing disabled in installed plugins list. In the Plugin Diagnostics section there is large dump of code against the form plugin. Will try to install 2.1 version and revert


The Error returns .... wink

With the new install it is showing the original error again.


The attached files are for diagnostics. You can still use these to get a better error report.

-- ArthurClemens - 13 May 2011

Related Task: Tasks.Item10730



-- PhilippLeufke - 17 May 2011

The cause was a missing dependency List::MoreUtils. If you install that the error should go away. The dependency is now listed in Form Plugin version 2.0.2.

-- ArthurClemens - 31 May 2011

QuestionForm edit

Subject Using an extension
Extension FormPlugin
Version Foswiki 1.1.2
Status Task closed
I Attachment Action Size Date Who Comment
FieldFactory.pmpm FieldFactory.pm manage 2 K 12 May 2011 - 08:19 ArthurClemens  
RendererFactory.pmpm RendererFactory.pm manage 2 K 12 May 2011 - 11:24 ArthurClemens  
Topic revision: r13 - 31 May 2011, ArthurClemens
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