SID-00249: Form Plugin Validation + Hash Error
| Status: |
Answered |
TWiki version: |
4.3.0 |
Perl version: |
5.8 |
| Category: |
FormPlugin |
Server OS: |
Ubuntu Server 8.4 |
Last update: |
16 years ago |
Hi, using
FormPlugin, I'm getting the following errors on the apache log and I just can't figure them out:
- Use of uninitialized value in hash element at /var/www/lib/TWiki/Plugins/FormPlugin.pm line 318.
- Use of uninitialized value in concatenation (.) or string at /var/www/lib/TWiki/Plugins/FormPlugin.pm line 1367.
and on the Sandbox.FormPluginExamples if I run the validate form I get:
- Can't use an undefined value as an ARRAY reference at /var/www/lib/TWiki/Plugins/FormPlugin/Validate.pm line 255.
at /var/www/lib/TWiki/Plugins/FormPlugin/Validate.pm line 255,
- \tTWiki::Plugins::FormPlugin::Validate::GetFormData('Your salary=f=1', 'SCALAR(0x8ea8f78)', 'Checkname=s=2', 'ARRAY(0x8a71154)', 'Name=s=0', 'SCALAR(0x8a71160)') called at /var/www/lib/TWiki/Plugins/FormPlugin.pm line 542,
- \tTWiki::Plugins::FormPlugin::_validateFormFields('Your salary=f=1', 'SCALAR(0x8ea8f78)', 'Checkname=s=2', 'ARRAY(0x8a71154)', 'Name=s=0', 'SCALAR(0x8a71160)') called at /var/www/lib/TWiki/Plugins/FormPlugin.pm line 485,
- \tTWiki::Plugins::FormPlugin::_validateForm() called at /var/www/lib/TWiki/Plugins/FormPlugin.pm line 177,
- \tTWiki::Plugins::FormPlugin::beforeCommonTagsHandler('\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'FormPluginExamples', 'Sandbox', 'TWiki::Meta=HASH(0x8d5fc0c)') called at /var/www/lib/TWiki/Plugin.pm line 266,
- \tTWiki::Plugin::invoke('TWiki::Plugin=HASH(0x8a2e8d0)', 'beforeCommonTagsHandler', '\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'FormPluginExamples', 'Sandbox', 'TWiki::Meta=HASH(0x8d5fc0c)') called at /var/www/lib/TWiki/Plugins.pm line 344,
- \tTWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x84c1fd8)', 'beforeCommonTagsHandler', '\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'FormPluginExamples', 'Sandbox', 'TWiki::Meta=HASH(0x8d5fc0c)') called at /var/www/lib/TWiki/Plugins.pm line 466
- \tTWiki::Plugins::beforeCommonTagsHandler('TWiki::Plugins=HASH(0x84c1fd8)', '\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'FormPluginExamples', 'Sandbox', 'TWiki::Meta=HASH(0x8d5fc0c)') called at /var/www/lib/TWiki.pm line 2896
- \tTWiki::handleCommonTags('TWiki=HASH(0x84c73b0)', '\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'Sandbox', 'FormPluginExamples', 'TWiki::Meta=HASH(0x8d5fc0c)') called at /var/www/lib/TWiki/UI/View.pm line 392,
- \tTWiki::UI::View::_prepare('\\x{a}\\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'TWiki=HASH(0x84c73b0)', 'Sandbox', 'FormPluginExamples', 'TWiki::Meta=HASH(0x8d5fc0c)', 0) called at /var/www/lib/TWiki/UI/View.pm line 353,
- \tTWiki::UI::View::view('TWiki=HASH(0x84c73b0)') called at /var/www/lib/TWiki/UI.pm line 159,
- \tTWiki::UI::__ANON__() called at /usr/local/share/perl/5.8.8/Error.pm line 415,
- \teval {...} called at /usr/local/share/perl/5.8.8/Error.pm line 407,
- \tError::subs::try('CODE(0x81545c4)', 'HASH(0x8e404e4)') called at /var/www/lib/TWiki/UI.pm line 197,
- \tTWiki::UI::run('CODE(0x846bcc4)', 'view', 1) called at /var/www/bin/view line 32.
I'm using Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.5 with Suhosin-Patch mod_ssl/2.2.8
OpenSSL/0.9.8g
Perl 5.0.8
Thanks in Advance
Hugo
--
HugoDeLaCerda - 2009-04-07
Discussion and Answer
The first error was because I was mixing html forms and twiki forms, the second error I have no idea yet. please help
--
HugoDeLaCerda - 2009-04-07
I've made an exact duplicate and tested it on a different Ubuntu installation (desktop 8.4) and it works flawlessly, so I believe the difference would be on the server installation. I'm not a perl programmer so I don't know what scripts are called when validation occurs, and it has to be outside twiki (maybe perl? CPAN?) but as far as I can tell both systems have the same perl version and CPAN modules.
I just need a pointer in the right direction, what perl modules could be at fault? or is it the perl installation?
Thanks
Hugo
--
HugoDeLaCerda - 2009-04-08
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2009-06-02
Upgraded Ubuntu Server to 8.10 and error went away.
--
HugoDeLaCerda - 2009-07-21
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.