http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=1333 Summary: 2.2.8 - can't modify MinPasswordLength syspref Product: Koha Version: branch 2.2 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P3 Component: Database AssignedTo: chris@katipo.co.nz ReportedBy: dalgity@htl.net QAContact: koha-bugs@nongnu.org There's a problem in 2.2.8 that will prevent changing the MinPasswordLength in system preferences. In /scripts/updater/updatedatabase the following section makes the modifications to the database: { uniquefieldrequired => 'variable', variable => 'MinPasswordLength', value => '5', forceupdate => { 'explanation' => 1, 'type' => 1 }, explanation => "Minimum length for patron passwords", type => 'YesNo', value =>5, }, The bug is caused by the type being set to YesNo. If you try to change the value of this preference you'll get a 500 Internal Server Error and the following in the error log: [Sun Apr 29 11:11:38 2007] [error] [client 172.16.1.10] Premature end of script headers: /var/www/koha/intranet/cgi-bin/admin/systempreferences.pl The given value does not seem to be interpretable as a Boolean value at /var/www/koha/intranet/modules/C4/Boolean.pm line 104. I fixed it by changing and rerunning the update script. 1) In the section of /scripts/updater/updatedatabase quoted above change the line: type => 'YesNo', TO type => 'Integer', 2) Set environment variables export KOHA_CONF=/path/to/koha.conf export PERL5LIB=/path/to/koha/intranet/modules 3) Run the update script perl updatedatabase Mike D. ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.