https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32442
Bug ID: 32442
Summary: Invalid Template Toolkit in notices can cause broader
errors
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Notices
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
I have been noticing something while testing notices lately that I wanted to
point out and see if anyone else can recreate, this is happening for me in KTD:
To recreate:
1. Go to any notice and create some invalid Template Toolkit:
[% IF ( 1 == 1 %]
test
[% END %]
2. Save and continue
3. Notice the Template Toolkit error:
This is good.
3. Correct the error:
[% IF ( 1 == 1 ) %]
test
[% END %]
4. Now save again. This time I see the Template Toolkit error like:
DBIx::Class::Storage::DBI::mysql::_exec_svp_rollback(): DBI Exception:
DBD::mysql::db do failed: SAVEPOINT savepoint_0 does not exist at
/kohadevbox/koha/C4/Letters.pm line 1624
5. Save anyways
6. Logout of Koha and attempt to log back in:
It explodes with this error:
{UNKNOWN}: Transaction aborted:
DBIx::Class::Storage::DBI::mysql::_exec_svp_release(): DBI Exception:
DBD::mysql::db do failed: SAVEPOINT savepoint_4 does not exist at
/kohadevbox/koha/Koha/Object.pm line 170
. Rollback failed: DBIx::Class::Storage::DBI::mysql::_exec_svp_rollback(): DBI
Exception: DBD::mysql::db do failed: SAVEPOINT savepoint_3 does not exist at
/kohadevbox/koha/Koha/Patron.pm line 363 at /kohadevbox/koha/Koha/Patron.pm
line 363
at /usr/share/perl5/DBIx/Class/Exception.pm line 77
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/