#1058 Need better error handling where templates not loaded

1.4
closed-fixed
Chris Travers
None
5
2014-02-10
2014-02-09
John Locke
No

On an upgraded database, go to any HTML or LaTeX template editing screen. You get the following error:

Attribute (format) is required at constructor LedgerSMB::Template::DB::new (defined at LedgerSMB/Template/DB.pm line 168) line 30
LedgerSMB::Template::DB::new('LedgerSMB::Template::DB') called at LedgerSMB/Template/DB.pm line 112 LedgerSMB::Template::DB::get('LedgerSMB::Template::DB', '_script_handle', 'LedgerSMB::Scripts::template', 'template_name', 'pick_list', 'session_id', 1, 'warn_expire', 0, 'have_latex', 1, 'dbversion', 1.4.0, 'stylesheet', 'ledgersmb.css', '_user', 'LedgerSMB::User=HASH(0x67ac170)', 'company', 'freelock14', 'module', 'template.pl', ...) called at LedgerSMB/Scripts/template.pm line 44 LedgerSMB::Scripts::template::display('LedgerSMB=HASH(0x3ccb170)') called at lsmb-request.pl line 108 LedgerSMB::Handler::ANON() called at /usr/share/perl5/Try/Tiny.pm line 76 eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x287eac0)', 'Try::Tiny::Catch=REF(0x4d0c928)') called at lsmb-request.pl line 120 LedgerSMB::Handler::call_script('template.pl', 'LedgerSMB=HASH(0x3ccb170)') called at lsmb-request.pl line 84 require lsmb-request.pl called at /usr/local/ledger/ledger14/template.pl line 8

Discussion

  • Chris Travers
    Chris Travers
    2014-02-09

    • summary: System Template Editing broken --> Need better error handling where templates not loaded
     
  • Chris Travers
    Chris Travers
    2014-02-10

    • status: open --> closed-fixed
    • assigned_to: Chris Travers
     
  • Chris Travers
    Chris Travers
    2014-02-10

    svn 6829