Tags:
create new tag
view all tags

SID-00727: Submitting a Form gives errors

Status: Unanswered Unanswered TWiki version: 4.3.2 Perl version: Perl 5.10.0
Category: FormPlugin Server OS: Ubuntu 9.10 Last update: 16 years ago

I'm getting the following error when I submit even the most basic form:

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Can't use an undefined value as an ARRAY reference

In the apache logs I find the following:

[Fri Jan 22 11:26:33 2010] [error] Argument "REQUEST_URI" isn't numeric in array element at /var/www/twiki/lib/TWiki/Plugins/AnyWikiDrawPlugin.pm line 951., referer: https://server/wiki/bin/view/Main/IT-SurveyJan2010
[Fri Jan 22 11:26:34 2010] [error] Argument "REQUEST_URI" isn't numeric in array element at /var/www/twiki/lib/TWiki/Plugins/AnyWikiDrawPlugin.pm line 951., referer: https://server/wiki/bin/view/Main/IT-SurveyJan2010

[Fri Jan 22 11:26:34 2010] [error] Can't use an undefined value as an ARRAY reference at /var/www/twiki/lib/TWiki/Plugins/FormPlugin/Validate.pm line 254., referer: https://server/wiki/bin/view/Main/IT-SurveyJan2010
[Fri Jan 22 11:26:34 2010] [error]  at /var/www/twiki/lib/TWiki/Plugins/FormPlugin/Validate.pm line 254, referer: https://server/wiki/bin/view/Main/IT-SurveyJan2010
[Fri Jan 22 11:26:34 2010] [error] \tTWiki::Plugins::FormPlugin::Validate::GetFormData('Email3=s=2', 'SCALAR(0x8cb1360)', 'Email6=s=5', 'SCALAR(0x9038030)', 'Email7=s=6', 'SCALAR(0x9038050)', 'General1=s=7', 'SCALAR(0x9038080)', 'Email1=s=0', ...) called at /var/www/twiki/lib/TWiki/Plugins/FormPlugin.pm line 542, referer: https://server/wiki/bin/view/Main/IT-SurveyJan2010
[Fri Jan 22 11:26:34 2010] [error] \tTWiki::Plugins::FormPlugin::_validateFormFields('General1=s=7', 'SCALAR(0x9038080)', 'Email6=s=5', 'SCALAR(0x9038030)', 'Email3=s=2', 'SCALAR(0x8cb1360)', 'Email1=s=0', 'SCALAR(0x8cb1480)', 'Email7=s=6', ...) called at /var/www/twiki/lib/TWiki/Plugins/FormPlugin.pm line 485, referer: https://server/wiki/bin/view/Main/IT-SurveyJan2010
[Fri Jan 22 11:26:34 2010] [error] \tTWiki::Plugins::FormPlugin::_validateForm() called at /var/www/twiki/lib/TWiki/Plugins/FormPlugin.pm line 177, referer: https://server/wiki/bin/view/Main/IT-SurveyJan2010

Any ideas on what the issue is?

-- BerndKleyenstuber - 2010-01-22

Discussion and Answer

Hello Bernd,

i just want to say that I got the same problem today.

I found out that when I skip all "mandatory" parameters from my form the error is gone.

Any further help on this issue is really appreciated.

-- AndreasHeyden - 2010-01-22

Looks like an issue with AnyWikiDrawPlugin and FormPlugin, possibly by a version mismatch between TWiki and the plugins. Disable those plugin in configure to verify.

-- PeterThoeny - 2010-01-23

The problem definitely seems to be with the keyword "mandatory" as soon as it appears in any of the form elements I get the error: undefined value as an ARRAY reference

By disabling the AnyWikiDrawPlugin the first error in the log file disappears, but I still get the ARRAY reference error

-- BerndKleyenstuber - 2010-01-25

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 - 2010-03-04

      Change status to:
ALERT! 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.
SupportForm
Status Unanswered
Title Submitting a Form gives errors
SupportCategory FormPlugin
TWiki version 4.3.2
Server OS Ubuntu 9.10
Web server Apache2 2.2.12
Perl version Perl 5.10.0
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2010-03-04 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.