[Koha-bugs] [Bug 32057] Add optional stack trace to action logs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 20 23:00:05 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32057

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA

--- Comment #9 from David Nind <david at davidnind.com> ---
After applying the patch, updating the database, and adding a value to
ActionLogsTraceDepth, I am now unable to change system preferences.

I tried with UseCaseRegisters and under Logs - enabling logging for an item
that was currently disabled (such as IssueLog).

I get an "Internal Server Error, please reload the page" in the staff
interface.

In the plack-error.log this is the start of the message:

291 DBIx::Class::Row::store_column(): No such column 'trace' on
Koha::Schema::Result::ActionLog at /kohadevbox/koha/Koha/Object.pm line 79
292  at /usr/share/perl5/DBIx/Class/Exception.pm line 77
293     DBIx::Class::Exception::throw('DBIx::Class::Exception', 'No such column
\'trace\' on Koha::Schema::Result::ActionLog') called at
/usr/share/perl5/DBIx/Class/ResultSourc    e.pm line 2380
294    
DBIx::Class::ResultSource::throw_exception('DBIx::Class::ResultSource::Table=HASH(0x55a3fd102ef8)',
'No such column \'trace\' on Koha::Schema::Result::ActionLog') calle    d at
/usr/share/perl5/DBIx/Class/Row.pm line 1569
295    
DBIx::Class::Row::throw_exception('Koha::Schema::Result::ActionLog=HASH(0x55a400de53c8)',
'No such column \'trace\' on Koha::Schema::Result::ActionLog') called at /usr/ 
  share/perl5/DBIx/Class/Row.pm line 1215
296    
DBIx::Class::Row::store_column('Koha::Schema::Result::ActionLog=HASH(0x55a400de53c8)',
'trace', '[^J   {^J      "package" : "Koha::Config::SysPref",^J      "line" :
77,    ^J      "subroutine" : "C4::Log::logaction",^J      "filename" :
"/kohadevbox/koha/Koha/Config/SysPref.pm"^J   },^J   {^J      "filename" :
"/kohadevbox/koha/C4/Context.pm"    ,^J      "line" : 431,^J      "subroutine"
: "Koha::Config::SysPref::store",^J      "package" : "C4::Context"^J   },^J  
{^J      "subroutine" : "C4::Context::set_preferenc    e",^J      "line" :
103,^J      "package" :
"CGI::Compile::ROOT::kohadevbox_koha_svc_config_systempreferences",^J     
"filename" : "/kohadevbox/koha/svc/config/systemprefe    rences"^J   }^J]^J')
called at /usr/share/perl5/DBIx/Class/Row.pm line 270

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list