Hello, My Koha installation suddenly will no longer allow me to create patron accounts. The first prompt I receive is: "Something went wrong when creating the patron. Check the logs." When I open the plack-intranet-log I see this: [2022/01/04 20:42:19] [WARN] Patron creation failed! - {UNKNOWN}: DBIC result _type isn't of the _type Category at /usr/share/perl5/DBIx/Class/Storage/BlockRunner.pm line 130. at /usr/share/koha/lib/Koha/Patron.pm line 354 I am honestly stumped, I was not having this problem before and I haven't changed any settings that would have caused this. Thankfully, I can use the self-registration feature as a workaround right now until this can get fixed. I can provide additional details if needed.
Hi Jeremiah, what is your exact Koha version? Were there any problems/errors shown during the update?
Works for me on 21.11.01.
Just to make sure, when did it happen and did you run update that caused this? Which was the previous version? As Joubu said it works in new installations, so we need to dig a bit deeper here.
I was originally running 21.05, currently, I am running 21.11.01.000. During the update, I was not seeing any errors. Also, I was experiencing this right before I updated to the new version.
Did you make any local changes, including *UserJs?
You should see more info in the log files, can you post the full stacktrace? Also, do you see the problem with other patron's category? Did you try to create a new category and a patron using it? Does it work if you edit an existing patron?
I did not make any changes to the internal files. Sure I will post more: [2022/01/05 07:16:49] [WARN] Patron creation failed! - {UNKNOWN}: DBIC result _type isn't of the _type Category at /usr/share/perl5/DBIx/Class/Storage/BlockRunner.pm line 130. at /usr/share/koha/lib/Koha/Patron.pm line 354 [2022/01/05 07:17:11] [WARN] Subroutine CORE::GLOBAL::time redefined at /usr/share/perl5/Test/MockTime.pm line 20, <DATA> line 755. [2022/01/05 07:17:11] [WARN] Prototype mismatch: sub CORE::GLOBAL::time () vs none at /usr/share/perl5/Test/MockTime.pm line 20, <DATA> line 755. [2022/01/05 07:17:11] [WARN] Subroutine CORE::GLOBAL::localtime redefined at /usr/share/perl5/Test/MockTime.pm line 21, <DATA> line 755. [2022/01/05 07:17:11] [WARN] Prototype mismatch: sub CORE::GLOBAL::localtime (;$) vs none at /usr/share/perl5/Test/MockTime.pm line 21, <DATA> line 755. [2022/01/05 07:17:11] [WARN] Subroutine CORE::GLOBAL::gmtime redefined at /usr/share/perl5/Test/MockTime.pm line 22, <DATA> line 755. [2022/01/05 07:17:11] [WARN] Prototype mismatch: sub CORE::GLOBAL::gmtime (;$) vs none at /usr/share/perl5/Test/MockTime.pm line 22, <DATA> line 755. [2022/01/05 07:31:19] [WARN] Patron creation failed! - {UNKNOWN}: DBIC result _type isn't of the _type Category at /usr/share/perl5/DBIx/Class/Storage/BlockRunner.pm line 130. at /usr/share/koha/lib/Koha/Patron.pm line 354 [2022/01/04 14:10:09] [WARN] Patron creation failed! - {UNKNOWN}: DBIC result _type isn't of the _type Category at /usr/share/perl5/DBIx/Class/Storage/BlockRunner.pm line 130. at /usr/share/koha/lib/Koha/Patron.pm line 346 [2022/01/04 14:10:09] [WARN] Use of uninitialized value $newdata{"emailpro"} in pattern match (m//) at /usr/share/koha/intranet/cgi-bin/members/memberentry.pl line 479. [2022/01/04 14:10:09] [WARN] Use of uninitialized value $newdata{"B_email"} in pattern match (m//) at /usr/share/koha/intranet/cgi-bin/members/memberentry.pl line 482. [2022/01/04 14:11:02] [WARN] Patron creation failed! - {UNKNOWN}: DBIC result _type isn't of the _type Category at /usr/share/perl5/DBIx/Class/Storage/BlockRunner.pm line 130. at /usr/share/koha/lib/Koha/Patron.pm line 346 [2022/01/04 14:11:02] [WARN] Use of uninitialized value $newdata{"emailpro"} in pattern match (m//) at /usr/share/koha/intranet/cgi-bin/members/memberentry.pl line 479. [2022/01/04 14:11:02] [WARN] Use of uninitialized value $newdata{"B_email"} in pattern match (m//) at /usr/share/koha/intranet/cgi-bin/members/memberentry.pl line 482. [2022/01/04 14:12:22] [WARN] Patron creation failed! - {UNKNOWN}: DBIC result _type isn't of the _type Category at /usr/share/perl5/DBIx/Class/Storage/BlockRunner.pm line 130. at /usr/share/koha/lib/Koha/Patron.pm line 346 [2022/01/04 14:12:22] [WARN] Use of uninitialized value $newdata{"emailpro"} in pattern match (m//) at /usr/share/koha/intranet/cgi-bin/members/memberentry.pl line 479. [2022/01/04 14:12:22] [WARN] Use of uninitialized value $newdata{"B_email"} in pattern match (m//) at /usr/share/koha/intranet/cgi-bin/members/memberentry.pl line 482. [2022/01/04 15:23:29] [WARN] Patron creation failed! - {UNKNOWN}: DBIC result _type isn't of the _type Category at /usr/share/perl5/DBIx/Class/Storage/BlockRunner.pm line 130. at /usr/share/koha/lib/Koha/Patron.pm line 346 [2022/01/04 15:23:29] [WARN] Use of uninitialized value $newdata{"emailpro"} in pattern match (m//) at /usr/share/koha/intranet/cgi-bin/members/memberentry.pl line 479. [2022/01/04 15:23:29] [WARN] Use of uninitialized value $newdata{"B_email"} in pattern match (m//) at /usr/share/koha/intranet/cgi-bin/members/memberentry.pl line 482. [2022/01/04 15:26:19] [WARN] Patron creation failed! - {UNKNOWN}: DBIC result _type isn't of the _type Category at /usr/share/perl5/DBIx/Class/Storage/BlockRunner.pm line 130. at /usr/share/koha/lib/Koha/Patron.pm line 346 [2022/01/04 15:26:22] [WARN] error at after DATA: 5.2.252 SendAsDenied; xxxxxx@xxxx.org not allowed to send as root@localhost; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:97610000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:7C1C0000, 1.36674:0E000000, 1.61250:00000000, 1.45378:811C0000,
Hi Jeremiah, could you please also make these tests as Jonathan suggests? > Also, do you see the problem with other patron's category? Did you try to > create a new category and a patron using it? Does it work if you edit an > existing patron?
Is this still a problem?