hesco has asked for the wisdom of the Perl Monks concerning the following question:
This is a module which has been working on the development server and is now being installed for the first time on a new server. I've never seen that error on the previous installation. And grep'ing through the CGI::FormBuilder code did not reveal anything. Following line numbers says every one of these errors was thrown by an invocation to the $form-> field() method. Here is a typical one.[FormBuilder] Warning: Possible field access via $form->weaken() - see + 'fieldsubs' option at /usr/local/share/perl/5.8.8/My/Latest/Project/ +WWW.pm line 923,
So my question is: What does this "$form->weaken()" error mean and how do I clean it out of my logs?$form->field( name => $fieldset . '_spoke_w_this_person', label => 'Spoke with this Person', fieldset => $fieldset, type => "checkbox", options => [qw(Yes)], comment => '<br>You must mark this checkbox, <br>to record thi +s data in the database', );
-- Hugh
Update:
Thank you to the Anonymous Monk who pointed me to the idea of adding 'fieldsubs => 0 | 1' to my constructor. That seems to have done the trick. And thank you Grandfather for your generosity as well. My logs are nearly clean again, with the help of fine Monks such as yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: puzzled by CGI::FormBuilder (?) errors?
by GrandFather (Saint) on Oct 08, 2008 at 04:28 UTC | |
by hesco (Deacon) on Oct 08, 2008 at 04:40 UTC | |
|
Re^2: puzzled by CGI::FormBuilder (?) errors?
by Anonymous Monk on Oct 08, 2008 at 04:43 UTC |