Item2191: Bulkregistration fails
Priority: Low
Current State: Closed
Released In: 1.1.0
Target Release: minor
Bulkregistration fails with:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
Can't use an undefined value as an ARRAY reference
In errorlog you see:
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] [Thu Oct 1 13:28:25 2009] manage: Use of uninitialized value in pattern match (m//) at /mnt/wiki/Foswiki/lib/Foswiki/UI/Register.pm line 1364., referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] [Thu Oct 1 13:28:25 2009] manage: Use of uninitialized value in substitution (s///) at /mnt/wiki/Foswiki/lib/Foswiki/OopsException.pm line 160., referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] Can't use an undefined value as an ARRAY reference at /mnt/wiki/Foswiki/lib/Foswiki/UI/Register.pm line 245., referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] at /mnt/wiki/Foswiki/lib/Foswiki/UI/Register.pm line 245, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tFoswiki::UI::Register::_registerSingleBulkUser('Foswiki=HASH(0x988c8f4)', 'ARRAY(0xa144b34)', 'HASH(0xa144c0c)', 'HASH(0xa13c088)') called at /mnt/wiki/Foswiki/lib/Foswiki/UI/Register.pm line 197, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tFoswiki::UI::Register::bulkRegister('Foswiki=HASH(0x988c8f4)') called at /mnt/wiki/Foswiki/lib/Foswiki/UI/Manage.pm line 74, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tFoswiki::UI::Manage::_action_bulkRegister('Foswiki=HASH(0x988c8f4)') called at /mnt/wiki/Foswiki/lib/Foswiki/UI/Manage.pm line 44, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tFoswiki::UI::Manage::manage('Foswiki=HASH(0x988c8f4)') called at /mnt/wiki/Foswiki/lib/Foswiki/UI.pm line 304, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tFoswiki::UI::__ANON__() called at /mnt/wiki/Foswiki/lib/CPAN/lib//Error.pm line 379, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \teval {...} called at /mnt/wiki/Foswiki/lib/CPAN/lib//Error.pm line 371, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tError::subs::try('CODE(0x9637aec)', 'HASH(0xa13be6c)') called at /mnt/wiki/Foswiki/lib/Foswiki/UI.pm line 391, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tFoswiki::UI::_execute('Foswiki::Request=HASH(0x988cc78)', 'CODE(0x988ca50)', 'manage', 1) called at /mnt/wiki/Foswiki/lib/Foswiki/UI.pm line 275, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tFoswiki::UI::handleRequest('Foswiki::Request=HASH(0x988cc78)') called at /mnt/wiki/Foswiki/lib/Foswiki/Engine/CGI.pm line 26, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
[Thu Oct 01 13:28:25 2009] [error] [client 134.109.200.234] \tFoswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x973c87c)') called, referer: https://twiki.tu-chemnitz.de/bin/view/FWsystem/BulkRegistration
Who can help?
--
GuentherFischer - 01 Oct 2009
What is the table that you used to register new users?
--
ArthurClemens - 01 Oct 2009
With the same table structure I've added users in 1.0.6
--
GuentherFischer - 01 Oct 2009
Well, it doesn't work with "Vorname", "Nachname". These should be english. Could it be that you where viewing BulkRegistration in German, and copied the table stub with german headers?
--
ArthurClemens - 01 Oct 2009
You are right - I change this and it works. I send a sample table to a new Wiki-User (webadmin) to get a table to adding users.
And I changed the Headernames for better understanding. Than I copied te full table with copy/paste
But the error handling is a little bit small ... thank you for your help.
--
GuentherFischer - 01 Oct 2009
lets see if I can make the error handleing a little more useful for 1.1
--
SvenDowideit - 04 Oct 2009
turns out the crash you've reported isn't due to poor error checking (though that is also the case) but rather die to a bug in the logging code that should report that there are missing fields..
I've removed the crash, but tbh, this code could do with um, some actual unit tests and then some fixing.
fix only commited to trunk.
--
SvenDowideit - 07 Oct 2009